-
-
Notifications
You must be signed in to change notification settings - Fork 3
Info for translators
The Light Portal uses CLDR plural forms to output some sentences.
For example, English has 2 forms: 1 month, 2-10-1.5 months
:
File /Themes/default/languages/LightPortal/.english.php:
$txt['lp_months_set'] = '{months, plural, one {a month} other {# months}}';
Spanish also has 2 forms: 1 mes, 2-10-1.5 meses
:
File /Themes/default/languages/LightPortal/.spanish_es.php:
$txt['lp_months_set'] = '{months, plural, one {un mes} other {# meses}}';
Polish has 4 forms 1 miesiąc, 2 miesiące, 10 miesięcy, 1.5 miesiąca
:
File /Themes/default/languages/LightPortal/.polish.php:
$txt['lp_months_set'] = '{months, plural, one {1 miesiąc} few {# miesiące} many {# miesięcy} other {# miesiąca}}';
In Crowdin, to translate such strings, you should copy the source string, then translate words in angle brackets {}
:
Do not translate reserved words! Crowdin system will alert you about syntax errors in your translations:
In addition, a preview is available at the bottom of the translation window for your convenience:
Please, do not translate array keys within language arrays!
Plugins may have own language strings. Look into /Sources/LightPortal/addons/PluginName/langs