gandres / pwm

Automatically exported from code.google.com/p/pwm
0 stars 0 forks source link

locale parameter is hard coded in JS #465

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Change the default value of paramName.locale in PwmConstants.properties to a 
custom value (i.e. mylang)
2. Build PWM
3. Open up any PWM page and try to switch the language via the footer.

What is the expected output? What do you see instead?
Expected output is that the interface would swap to the target translations. 
Instead the language remains unchanged, because the Javascript function 
initLocaleSelectorMenu contains the hardcoded parameter "locale". Also 
RestAppDataServer does not provide the paramName.locale.

Atttached a proposed patch to fix this issue.

Original issue reported on code.google.com by sebastia...@gmail.com on 29 Aug 2013 at 6:08

Attachments:

GoogleCodeExporter commented 9 years ago
Added in revision 607.

Original comment by jrivard on 6 Sep 2013 at 12:24