-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add more files to POTFILES * Update the POT and PO files * Add a README file so we document the process
- Loading branch information
Showing
4 changed files
with
116 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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 "" |