sprintf function problems with pluralrule
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Richard Mansfield |
Bug Description
sprintf function, used by smarty has problems with pluralrule which contains percent (%) sign.
I've used quite some time to find out that I need to use double percent sign to make this work.
If pluralrule string is translated via launchpad Mahara Translations, than there should be note, warning people of that, but if it is created programmatically than single percent signs in pluralrule string should be replaced with dobule percent signs.
This musn't be confused with the string that appears in plural function though!!!
'Original' string (for Slovenian) as it appears in Launchpad Slovenian Language Details page (https:/
$string[
'Corrected' string (single % replaced with double %% - which sprintf can "digest")
$string[
AFAIK the affected languages could be:
- Arabic
- Croatian
- Romanian
- Russian
- Slovenian
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Thanks for tracking this down Gregor, I need to fix it in the scripts which create the language pack tarballs from the launchpad po files. Once it's done, people will need to download fixed language packs and reinstall them :(