[MAGNOLIA-2736] User locale should be parsed (country specification is ignored) - chinese translations, amongst others, are thus ignored Created: 20/May/09  Updated: 23/Jan/13  Resolved: 20/May/09

Status: Closed
Project: Magnolia
Component/s: admininterface
Affects Version/s: 4.0.1
Fix Version/s: 4.1, 4.0.2

Type: Bug Priority: Major
Reporter: xiaohua.ding Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: i18n
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-2837 Country-specific locales ignored when... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

when i create a new user ,and set the language with chinese zh_CN
I login again,but the all of the navigations are also english.
I try to copy the message_zh_CN.propertis's code to message_ja.properties ,
then the language display correct.



 Comments   
Comment by Magnolia International [ 20/May/09 ]

Hi, thanks for reporting. The file itself seems correct, I'll investigate.

Comment by Magnolia International [ 20/May/09 ]

This is in fact the case for all country-specific locales (zh_*, pt_BR, ...)

Comment by Magnolia International [ 20/May/09 ]

Fix on trunk and 4.0 branch, thanks again !

Comment by xiaohua.ding [ 21/May/09 ]

I found the changed code and I change my code with the new file UserContextImpl.java.
I use magnolia 4.0.1 and change the class to the core jar,
I run again I'm find the content in right of the AdminCentral the language display correct,
but the navigations is also english.
I don't know it's fine.

Comment by Magnolia International [ 21/May/09 ]

That's because, unfortunately, not everything has been translated to chinese. Feel free to send patches our way if you want to translate more
(compare with the english version to check what could be missing - also some lines in the chinese message files are still in plain english)

Comment by xiaohua.ding [ 22/May/09 ]

thanks your help.

I know not every properties translate to chinese, but i try to translate some one and test the navigate,
I also try the ja properties every thing is ok,and I try to copy the chinese properties code to ja properties ,the chinese is display fine.

when the page is render to html ,i checked the source code,they create the javascript like this

function configureNavigation() {
mgnlNavigation.addNode ("715606b0-20d8-43e0-a806-00b94e29855e", "Website", "MgnlAdminCentral.showTree('website')", contextPath + "/.resources/icons/24/earth.gif");

....
}
in this code every words is English,
I have translate the website to '网站'

if i choice ja
this code display fine.

sorry to disturb you again.

Comment by Magnolia International [ 07/Aug/09 ]

Hi,

After some testing, I figured this issue out: MAGNOLIA-2837 - is this what you're experiencing ?

Generated at Mon Feb 12 03:39:35 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.