Learn how to use Localazy CLI for app and software localization with translations in PO/POT files.
Gettext PO/POT format is fully supported including plurals and context information.
See the full specification for more details.
Context information 🔗
These comments are parsed and processed:
#- general comment
#.- extracted comment
The standard format for single and multi-line line strings is fully supported.
# Single line msgctxt "Context" msgid "Input text" msgstr "Translation" # Multiple lines msgid "" "The input text\n" "splitted to several\n" "lines" msgstr "Translation\n" "can also be splitted."
Plurals are fully supported in the standard form described below.
msgid "" msgstr "" "..." "Plural-Forms: nplurals=2; plural=(n > 1);\n" "..." msgid "Just one user online" msgid_plural "There are %d users online" msgstr "Un seul utilisateur en ligne" msgstr "Il y a %d utilisateurs en ligne"
Plural-Forms field in the header from the latest CLDR data, so the formula may be a bit different. However, it should be accurate and recent.
Use key for missing texts 🔗
Enable use_key_for_content in features in the upload section to use the msgid as a content where msgstr is empty.
POT format support 🔗
Use pot as the type or enable force_key_for_content for the po type in the upload section to use msgid as the content.
Working with empty translations 🔗
If you, for some reason, need to preserve empty translations, you will need two options that you can use in features in the upload section.
||By default, empty translations in the input file are considered a valid empty translation. There are many reasons when using empty translation is a valid case. With this option enabled, empty translations are filtered out and the string is considered untranslated.|
||This feature tells Localazy to output untranslated strings as empty translation.|
Filtering untranslated strings 🔗
By default, when the output file is generated, Localazy uses texts from the source languages when the translation in the exported language is missing.
This approach is safeguarding you from missing keys that can lead to crashes in some solutions/frameworks.
This feature can be disable by adding
filter_untranslated to features in the upload section and reuploading your source language file.