PKP Bugzilla – Bug 6752
iBrowser fail using pt_br language
Last modified: 2012-01-11 14:14:01 PST
I've installed the latest version of ojs (2.3.6) in my server. I've no problems during this process, but, when I try to use the ibrowser (clicking in the image button on tiny), it returns this message (new window): "invalid language set" If I set another language (en, es), there's no problem. The "pt_br" is the only one that has a "_", but I really don't if it makes any difference.
Any news on that matter?
Set default iBrowser language to English and fix Portuguese translation https://github.com/pkp/pkp-lib/commit/178b0642c0cea0b9d7b094a5a02f501150f2f75d
Set default iBrowser language to English and fix Portuguese translation https://github.com/pkp/pkp-lib/commit/b052b5ad617a21ee063593ab178e70b87ce3377d
Created attachment 3691 [details] Patch against pkp-lib stable Must be applied to the lib/pkp/ subdirectory of OJS (or other PKP application).
Matt, this will add an extra step that's likely to be forgotten when updating iBrowser from upstream. I'd rather we added instead an associative map linking OJS languages to iBrowser languages, i.e.: $map = array('en_US' => 'en', 'fr_CA' => 'fr', 'pt_BR' => 'pt_br');
Updated iBrowser language handling https://github.com/pkp/pkp-lib/commit/35273f9cc304b6483ca3f2275299f1673e27d787
Updated iBrowser language handling https://github.com/pkp/pkp-lib/commit/19a34110960631c1745d26195413cd571d02cfba
Created attachment 3692 [details] Patch against pkp-lib stable
Thanks, Matt -- looks good.