-
Notifications
You must be signed in to change notification settings - Fork 698
i18n in 2.3 allow Brazilian to be selected again #2216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i18n in 2.3 allow Brazilian to be selected again #2216
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## simplesamlphp-2.3 #2216 +/- ##
=======================================================
- Coverage 44.94% 44.93% -0.01%
Complexity 3893 3893
=======================================================
Files 162 162
Lines 12975 12974 -1
=======================================================
- Hits 5831 5830 -1
Misses 7144 7144 |
|
Thanks @monkeyiq for diving into this.. I think in this case we could just remove the strotolower-line.. |
|
That CI test that is failing is checking if language.parameter.name value is transformed to lower case. So if folks were using things like |
|
I guess that's OK.. I really doubt people are adding values to the list, they only remove what is not needed. |
|
I wonder if the Brazilian translations ever worked, because it is now just using |
|
I see what you mean in I think in this case we might want to rename the pt-br directory to pt_BR and try that full path first before falling back to the first two chars only. IIRC there are locale choices where the language is the same but the customs of the locale might want a different translation or other arangement. |
* i18n in 2.3 allow Brazilian to be selected again * This is a more special case * break the CI again but with simpler code * Allow CI to complete with no implicit lower case on lang * One more case of strtolower --------- Co-authored-by: Tim van Dijen <tvdijen@gmail.com>
|
Yeah, I did that (renaming pt-br directory to pt_BR and test that one before falling back to Can you see if you can restore BC on the admin-password issue? Maybe I can release 2.3.1 by the end of this week then |
|
This should not have been merged with broken tests by the way.. Fixed in b46c8da |
Changing this line allows Portuguese (Brazil) to be selectable from the language menu again in 2.3.
Note that setLanguageCookie() and getLanguageCookie() also contain forced lower casing which is worth investigating too in order to make sure things do not fall through the cracks there.