diff --git a/po/POTFILES b/po/POTFILES index 1f3a841..670a515 100644 --- a/po/POTFILES +++ b/po/POTFILES @@ -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 diff --git a/po/README.i18n b/po/README.i18n new file mode 100644 index 0000000..af75077 --- /dev/null +++ b/po/README.i18n @@ -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. diff --git a/po/emeus.pot b/po/emeus.pot index 59c0f81..2663625 100644 --- a/po/emeus.pot +++ b/po/emeus.pot @@ -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 \n" "Language-Team: LANGUAGE \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 "" diff --git a/po/en_GB.po b/po/en_GB.po index 4452239..2663625 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -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 \n" "Language-Team: LANGUAGE \n" @@ -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 ""