Closed GoogleCodeExporter closed 8 years ago
I think the first patch is OK, but the second and third requires more work.
Specifically, we need to handle the case where the user already has a cookie
with the wrong "casing". Also, just changing the dictionary like that is a bit
intrusive, and means that anyone that may have their own dictionary using
subtags may have to update it.
I will need to discuss how we going to handle this in the translation portal
with Andreas here at UNINETT.
Original comment by olavmrk@gmail.com
on 12 Dec 2011 at 1:40
Hm, could we then just add 'pt-br' => 'pt-BR' in
SimpleSAML_XHTML_Template::$defaultLanguageMap, and left everything else as is?
Original comment by Andjelko...@gmail.com
on 13 Dec 2011 at 8:39
If someone uses custom subtags, we could move $defaultLanguageMap in
configuration?
Original comment by Andjelko...@gmail.com
on 13 Dec 2011 at 8:45
Adding the language tag to the language map could work, and so could making it
configurable, but I would still like to discuss this with Andreas.
Unfortunately, he is not back until Thursday.
Original comment by olavmrk@gmail.com
on 13 Dec 2011 at 10:02
What I though may be an issue wrt. the translation portal turned out to not be
a problem. I therefore think that you can commit these patches.
I do not think it very likely that someone has custom dictionaries using this
kind of language tag, but we may want to add a note to the upgrade notes.
Could you also update the code that reads the cookie and the code that checks
the query string parameter so that they lowercase the string?
Original comment by olavmrk@gmail.com
on 19 Dec 2011 at 10:02
OK, committed this in r3001 and r3002.
Original comment by comel...@gmail.com
on 19 Dec 2011 at 1:09
Original issue reported on code.google.com by
comel...@gmail.com
on 9 Dec 2011 at 10:01Attachments: