Page to collect plans for a translation revamp, to be discussed and started at TikiFest Virtual 2021
Aims
Add context to translatable strings
As discussed on the dev list here
Current plan is to add an underscore and parentheses wrapped string to indicate context, e.g.:
// "edit_(verb)" => "edit", // "edit_(noun)" => "edit", // "D_(abbrev-day)" => "D", // "D_(abbrev-month)" => "D", // "Location_(map)" => "Location", // "Rent_(verb)" => "Rent",
"edit_(verb)" => "modifier", "edit_(noun)" => "modification", "D_(abbrev-day)" => "J", // "D_(abbrev-month)" => "D", "Location_(map)" => "Lieu", "Rent_(verb)" => "Location",
Make the Smarty block work for RTL Languages
Apparently using numbers as the parameters in smarty cases trouble in right to left languages, e.g.
{tr _0=$report_site _1=$report_user}Report on %0 for %1{/tr}
{tr a=$report_site b=$report_user}Report on %0 for %1{/tr}
{tr $report_site $report_user}Report on %0 for %1{/tr}
Add JavaScript Translation Collecting to the Get Strings Command
Adapt php console.php translation:getstrings
to populate all the missing tr()
to the language.js
files.