Skip to content

Commit

Permalink
po: More i18n fixes
Browse files Browse the repository at this point in the history
 * Add more files to POTFILES
 * Update the POT and PO files
 * Add a README file so we document the process
  • Loading branch information
ebassi committed Dec 5, 2016
1 parent 3a78ea3 commit 2824b06
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 3 deletions.
3 changes: 3 additions & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
src/tools/com.endlessm.EmeusEditor.desktop.in.in
src/tools/editor-window.ui
src/tools/emeus-edit-constraints.c
src/tools/view-list-row.ui
30 changes: 30 additions & 0 deletions po/README.i18n
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# How to add a translation for Emeus

In order to add a translation, you need to take the `emeus.pot` file and
turn it into the `.po` file for your locale; the most direct way is to
just copy it, e.g.

# For the Italian (it) translation
cp po/emeus.pot po/it.po

In order for the build to pick the new file up, you'll have to modify
the `po/meson.build` file, and add your language to the list of available
ones, for instance:

langs = [
'en_GB',
+ 'it'',
]

Now edit the newly added translation file and commit it to the repository
when done.

# Regenerating the POT file

Run the `ninja emeus-pot` command, which will re-scan all the files
listed in the POTFILES file for translatable strings.

# Updating existing translations

Run the `ninja emeus-update-po` command, which will update the PO files
for all the listed languages with the contents of the POT file.
44 changes: 42 additions & 2 deletions po/emeus.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,55 @@ msgid ""
msgstr ""
"Project-Id-Version: emeus\n"
"Report-Msgid-Bugs-To: https://github.com/ebassi/emeus/issues/new\n"
"POT-Creation-Date: 2016-11-30 17:29+0000\n"
"POT-Creation-Date: 2016-11-30 17:41+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: src/tools/com.endlessm.EmeusEditor.desktop.in.in:3
msgid "Emeus Editor"
msgstr ""

#: src/tools/com.endlessm.EmeusEditor.desktop.in.in:4
msgid "Editor for Emeus constraints"
msgstr ""

#: src/tools/com.endlessm.EmeusEditor.desktop.in.in:10
msgid "view-fullscreen-symbolic"
msgstr ""

#: src/tools/com.endlessm.EmeusEditor.desktop.in.in:11
msgid "Build;Develop;Editor;"
msgstr ""

#: src/tools/editor-window.ui:11
msgid "Constraints Editor"
msgstr ""

#: src/tools/editor-window.ui:41
msgid "Views"
msgstr ""

#: src/tools/editor-window.ui:51
msgid "Metrics"
msgstr ""

#: src/tools/editor-window.ui:161
msgid "Visual Format"
msgstr ""

#: src/tools/editor-window.ui:178
msgid "Log"
msgstr ""

#: src/tools/emeus-edit-constraints.c:406
msgid "Visual format parsed successfully\n"
msgstr ""

#: src/tools/view-list-row.ui:28
msgid "Enter the view name…"
msgstr ""
42 changes: 41 additions & 1 deletion po/en_GB.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: emeus\n"
"Report-Msgid-Bugs-To: https://github.com/ebassi/emeus/issues/new\n"
"POT-Creation-Date: 2016-11-30 17:29+0000\n"
"POT-Creation-Date: 2016-11-30 17:41+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -17,6 +17,46 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: src/tools/com.endlessm.EmeusEditor.desktop.in.in:3
msgid "Emeus Editor"
msgstr ""

#: src/tools/com.endlessm.EmeusEditor.desktop.in.in:4
msgid "Editor for Emeus constraints"
msgstr ""

#: src/tools/com.endlessm.EmeusEditor.desktop.in.in:10
msgid "view-fullscreen-symbolic"
msgstr ""

#: src/tools/com.endlessm.EmeusEditor.desktop.in.in:11
msgid "Build;Develop;Editor;"
msgstr ""

#: src/tools/editor-window.ui:11
msgid "Constraints Editor"
msgstr ""

#: src/tools/editor-window.ui:41
msgid "Views"
msgstr ""

#: src/tools/editor-window.ui:51
msgid "Metrics"
msgstr ""

#: src/tools/editor-window.ui:161
msgid "Visual Format"
msgstr ""

#: src/tools/editor-window.ui:178
msgid "Log"
msgstr ""

#: src/tools/emeus-edit-constraints.c:406
msgid "Visual format parsed successfully\n"
msgstr ""

#: src/tools/view-list-row.ui:28
msgid "Enter the view name…"
msgstr ""

0 comments on commit 2824b06

Please sign in to comment.