[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14206875#comment-14206875
 ] 

ASF subversion and git services commented on CLOUDSTACK-7645:
-------------------------------------------------------------

Commit 901c243ed1bdd5c118af65a79f33a2386543e756 in cloudstack's branch 
refs/heads/master from [~mihaelas]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=901c243 ]

CLOUDSTACK-7645: [UI] Fixed incorrect label issues caused the dictionary split

In some cases the UI does not display the correct text, displaying 'label.xyz' 
instead of the localized string.
This appears to be due to the dictionary split: entries in dictionary2.jsp are 
not found because the dictionary has not been extended with dictionary2 as 
expected.

In this fix:
- Instead of extending the dictionary, we leave it as it is and change the 
localization function to look in the dictionary first and, if the item is not 
found there, then look in dictionary2.
- This way we are not depending on the extent() function to be called at the 
'right' time; In turn, the localization function will be aware of both 
dictionaries.
- In the future, when we add another dictionary, we will have to modify this 
function only.


> Many instances of "???label.*???"
> ---------------------------------
>
>                 Key: CLOUDSTACK-7645
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7645
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: UI
>    Affects Versions: 4.5.0
>            Reporter: Stephen Turner
>            Assignee: Mihaela Stoica
>            Priority: Critical
>             Fix For: 4.5.0
>
>         Attachments: label.app.name.png
>
>
> We have many instances of "\?\?\?label.*\?\?\?" in the UI, including strings 
> I know were correct recently. (For example, I saw it on the certificate 
> upload UI, which was recently rewritten).
> I think something is wrong with the mechanism rather than individual 
> translations, so rather than creating a bug for each one, I have bundled them 
> together in this ticket. Individual tickets are linked from here.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to