29-11-2017, 14:55
(This post was last modified: 11-12-2017, 12:52 by arnoud.
Edit Reason: Free version of POEdit suffices
)
To make the ScanCircle website, scan program and mailings multi-lingual, the international GNU gettext standard (see https://gnu.org/software/gettext/manual/gettext.html) has been adopted. This works with the following file types:
Translation tips:
If you want to contribute and translate ScanCircle to your local language, please reply to this post or send me an email or Private Message using the buttons below.
*) A phrase can be 1 word, 1 line or a number of lines.
- .pot: the translation template containing all keywords (msgid) including instructions for the translator. There is only 1 .pot file for each domain and it is used by ScanCircle to create and update the .po files before distributing it to the translator;
- .po: the translation file containing all translations (msgstr) including comments by the translator. There is 1 .po file per language for each .pot file and it is updated by the translator using a .po file editor and sent back to ScanCircle when completed;
- .mo: the compiled translation file. There is 1 .mo file for each .po file, it is created by ScanCircle from the .po file and used by the applications to retrieve the translations for specific keywords within a specific domain in a specific language.
- Scanner: minimal definitions for the scan program (about 50 phrases*);
- Global: the global definitions, mainly for the website (about 450 phrases*);
- Results: definitions for scan results, registrations and end-user mailings (about 650 phrases*);
- Partner: definitions for partner program, partner mailings and invoices (400-450 phrases*). Since this is only for interaction with partners, translation is optional (defaults to English).
- a lot of the output (e.g. menus, pages, lists, advices, mailings, invoices) is generated programmatically which means that the keyword should not be free text;
- the MVC implementation on the website does not allow special characters in parameters;
- the original English text may need corrections (would require changing the msgid).
Translation tips:
- Download POEdit from www.poedit.net (the free version suffices) or use another .po file editor;
- When ScanCircle creates a .xlt.po file for a new language, machine translations will be used to prefill the msgstr fields. Although this helps with about 90% of the translation, it may be in the completely incorrect context. Therefore all machine translations will be marked “fuzzy” meaning that they require your attention so please check this carefully and update the translation or turn off the “Needs work” option;
- During the creation of the .xlt.po file, some special characters in the original text are counted. If the translated text contains less or more of these characters, this is logged as a “translator comment” (shown as a text balloon icon in POEdit). Please note that these comments may be incorrect, so optionally adjust the translation and remove the comment when handled;
- If the language has a formal and informal version (e.g. French vous/toi, German Sie/du), then use the formal version but it should not be over-polite;
- Try and keep the translations about the same length as the original, especially if it concerns headers or labels, unless it negatively affects the translation;
- Leave the *bold*, _italics_, [links], %s parameters and newlines (\n) in the translation and don’t use double quotes (");
- Please pay special attention to singular/plural translations (date/time units in the global domain) and make sure you check both translations (shown in separate tabs in POEdit);
- If in doubt about a certain translation, please check with ScanCircle or add a translator comment. Also please inform ScanCircle about any errors in the original English text;
- If any updates are required to the original English text, the .xlt.pot file will be updated by ScanCircle and the original English text will be included as the “previous untranslated string”. The .xlt.pot file will then be used to update the .xlt.po files, causing the previous translation to be marked “Needs work”. The original English text is also shown to the translator until he/she updates the translation or turns off the “Needs work” indicator;
- Before returning the .xlt.po file to ScanCircle, first save your changes. In POEdit, this will perform some extra checks (warnings shown as a yellow triangle icon in the left margin). Enable “View > Input with errors first”, but note that these warnings may be incorrect;
- Next, use the “Validate” function of the .po file editor, to make sure there are no other errors and no more translations that require your attention. Also check if all translator comments (text balloons in the left margin in POEdit) have been accounted for;
- Do not manually edit the .xlt.po file and certainly do not change the msgctxt or the order within the .xlt.po file (it is okay to view the .xlt.po file in a different order in a .po file editor);
- If you have manually edited the .xlt.po file and cannot open it anymore using the .po file editor, the file may contain non-UTF8 characters. Please replace these by their UFT-8 equivalents.
If you want to contribute and translate ScanCircle to your local language, please reply to this post or send me an email or Private Message using the buttons below.
*) A phrase can be 1 word, 1 line or a number of lines.