Skip to content

Commit

Permalink
Make Commit localizable
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Aug 11, 2021
1 parent f99b31d commit 87dca1a
Show file tree
Hide file tree
Showing 16 changed files with 359 additions and 59 deletions.
1 change: 0 additions & 1 deletion .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
trailingComma: all
xmlWhitespaceSensitivity: "ignore"
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,37 @@ make test

Flathub builds https://flathub.org/builds/#/apps/re.sonny.Commit

## Maintainer

<details>

<summary>i18n</summary>

```sh
# To update the pot file
xgettext -f po/POTFILES -o po/re.sonny.Commit.pot -cTRANSLATORS --from-code=UTF-8

# To create a translation
msginit -i po/re.sonny.Commit.pot -o po/fr.po -l fr_FR.UTF-8

# To update translations
msgmerge -U po/*.po po/Commit.pot
```

See https://github.com/sonnyp/Commit/pull/14#issuecomment-894070878

</details>

<details>

<summary>Publish new version</summary>

- Update version in `meson.build`
- git tag
- flathub

</details>

## Building

<details>
Expand Down
2 changes: 1 addition & 1 deletion data/re.sonny.Commit.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<component type="desktop">
<id>re.sonny.Commit</id>
<launchable type="desktop-id">re.sonny.Commit.desktop</launchable>
<name>Commit</name>
<name translatable="no">Commit</name>
<developer_name>Sonny Piers</developer_name>
<update_contact>sonny@fastmail.net</update_contact>
<metadata_license>CC0-1.0</metadata_license>
Expand Down
2 changes: 2 additions & 0 deletions data/re.sonny.Commit.desktop
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[Desktop Entry]
# TRANSLATORS: Don't translate
Name=Commit
Comment=Commit message editor
Exec=re.sonny.Commit
Expand All @@ -7,4 +8,5 @@ Type=Application
Categories=Development;Utility;RevisionControl;TextEditor;GNOME;GTK;
StartupNotify=true
Icon=re.sonny.Commit
# TRANSLATORS: Don't translate
Keywords=git;mercurial;hg;scm;
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"devDependencies": {
"@prettier/plugin-xml": "^0.13.1",
"@prettier/plugin-xml": "^1.0.2",
"eslint": "^7.17.0",
"eslint-plugin-import": "^2.22.1",
"husky": "^6.0.0",
Expand Down
4 changes: 4 additions & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
data/re.sonny.Commit.desktop
data/re.sonny.Commit.appdata.xml
data/re.sonny.Commit.gschema.xml
src/about.js
src/window.ui
src/preferences.ui
src/welcome.js
src/welcome.ui
2 changes: 1 addition & 1 deletion po/meson.build
Original file line number Diff line number Diff line change
@@ -1 +1 @@
i18n.gettext('Commit', preset: 'glib')
i18n.gettext('re.sonny.Commit', preset: 'glib')
Loading

0 comments on commit 87dca1a

Please sign in to comment.