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 9d4ea43
Show file tree
Hide file tree
Showing 16 changed files with 355 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"
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,33 @@ 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>

</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')
219 changes: 219 additions & 0 deletions po/re.sonny.Commit.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-08-11 11:59+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#. TRANSLATORS: Don't translate
#: data/re.sonny.Commit.desktop:4 src/window.ui:18
msgid "Commit"
msgstr ""

#: data/re.sonny.Commit.desktop:5 data/re.sonny.Commit.appdata.xml:10
#: src/about.js:9
msgid "Commit message editor"
msgstr ""

#. TRANSLATORS: Don't translate
#: data/re.sonny.Commit.desktop:13
msgid "git;mercurial;hg;scm;"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:6
msgid "Sonny Piers"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:12
msgid ""
"Commit is an editor that helps you write better Git and Mercurial commit "
"messages."
msgstr ""

#: data/re.sonny.Commit.appdata.xml:16
msgid ""
"After installing make sure to launch the application and follow the "
"instructions."
msgstr ""

#: data/re.sonny.Commit.appdata.xml:20
msgid "Features:"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:22
msgid ""
"Highlights overflow of title when it exceeds 50 characters (customizable)"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:26
msgid "Inserts blank line between title and description"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:27
msgid "Spell checking"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:28
msgid "Comments are readonly and excluded from \"Select All\""
msgstr ""

#: data/re.sonny.Commit.appdata.xml:29
msgid "Displays project folder and branch in window header"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:30
msgid ""
"Dark theme support: the overflow highlight is adjusted according to your "
"theme"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:34
msgid ""
"Supports git commit messages, merge messages, tag messages, add -p messages, "
"and rebase -i messages"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:38
msgid "Supports Mercurial commit messages"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:39
msgid "Shows a welcome window when launched from desktop"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:49
msgid "Commit main window"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:55
msgid "Commit main window - dark mode"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:61
msgid "Commit welcome window"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:67
msgid "Commit welcome window - dark mode"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:75
msgid "Add a Preferences window"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:76
msgid "Set default title length hint to 50 characters"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:77
msgid "Fix reading commits with special characters"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:78
msgid "Fix git rebase not recognized"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:79
msgid "Make windows bottom corners rounded"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:80
msgid "Add 6px margin to editor"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:86
msgid ""
"⚠️ Action required. After updating, please launch the application and follow "
"the instructions."
msgstr ""

#: data/re.sonny.Commit.appdata.xml:91
msgid "Show a welcome window when launched from desktop"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:92
msgid "Add support for Mercurial"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:93
msgid "Remove filesystem permission"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:99
msgid "Initial release. Forked from Gnomit 2.0."
msgstr ""

#: data/re.sonny.Commit.appdata.xml:101
msgid "Support \"#\" in commit message"
msgstr ""

#: data/re.sonny.Commit.appdata.xml:102
msgid "Properly recognize executable path"
msgstr ""

#: data/re.sonny.Commit.gschema.xml:7 src/preferences.ui:19
#: src/preferences.ui:28
msgid "Message title length hint"
msgstr ""

#. TRANSLATORS: eg. 'Translator Name <your.email@domain.com>' or 'Translator Name <https://website.example>'
#: src/about.js:19
msgid "translator-credits"
msgstr ""

#: src/window.ui:21
msgid "Cancel"
msgstr ""

#: src/preferences.ui:6 src/welcome.ui:207
msgid "Preferences"
msgstr ""

#: src/welcome.ui:58
msgid ""
"To set Commit as default editor for Git run the following command in Terminal"
msgstr ""

#: src/welcome.ui:90 src/welcome.ui:172
msgid "Copy to Clipboard"
msgstr ""

#: src/welcome.ui:104 src/welcome.ui:181
msgid "Documentation"
msgstr ""

#: src/welcome.ui:108
msgid ""
"https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_core_editor"
msgstr ""

#. TRANSLATORS: Don't translate <tt>hgrc</tt>
#: src/welcome.ui:139
msgid ""
"To set Commit as default editor for Mercurial, set the following in your "
"<tt>hgrc</tt>"
msgstr ""

#: src/welcome.ui:185
msgid "https://www.mercurial-scm.org/wiki/editor"
msgstr ""

#: src/welcome.ui:214
msgid "About Commit"
msgstr ""

#: src/welcome.ui:221
msgid "Quit"
msgstr ""
Loading

0 comments on commit 9d4ea43

Please sign in to comment.