cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milamber (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-465) French language file quotes are dropping javascript syntax errors
Date Tue, 05 Mar 2013 11:27:12 GMT

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

Milamber commented on CLOUDSTACK-465:
-------------------------------------

This problem has been solved only on the login page. 
When you choose French and you're connecting on the cloudstack console, the dashboard doesn't
display, only displaying a blank page with two vertical lines.
The javascript console says :


Error: missing } after property list
Source File: http://cloudmgr1.milamberspace.net:8080/client/
Line: 1643, Column: 55
Source Code:
'message.action.enable.physical.network': 'Confirmer l'activation de ce réseau physique.',


=====

The error seems come from the quote in "l'activation". (A lot of sentences have a quote on
French translation file).

=====

To have the French dashboard on current branch 4.1, you must:

in file: ./client/WEB-INF/classes/resources/messages_fr_FR.properties

1/ Changes all backslash+quote "\'" by "\\'" (double-backslash+quote)

2/ Remove the "\n" at the end of this line in messages_fr_FR.properties
message.basic.mode.desc=Choisissez ce modèle de réseau si vous  <b>*<u>ne voulez
pas</u>*</b> activer le support des VLANs. Toutes les instances créées avec
ce modèle de réseau se verront assignées une adresse IP et les groupes de sécurité seront
utilisés pour fournir l\\'isolation entre les VMs.\n


With this fixes, the dashboard displays correctly in French (but on the login page, the value
"Username" in field login shows "Nom d\'utilisateur").




                
> French language file quotes are dropping javascript syntax errors
> -----------------------------------------------------------------
>
>                 Key: CLOUDSTACK-465
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-465
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: UI
>    Affects Versions: 4.0.0
>         Environment: Ubuntu Server
>            Reporter: Gaetan Allart
>            Assignee: David Nalley
>            Priority: Critical
>              Labels: javascript, language
>             Fix For: 4.0.1
>
>
> If you have, for example, a French enabled browser, you get a blank page after login
on ..:8080/client/.
> This is because of quotes in language files : 
> 'message.action.enable.physical.network': 'Confirmer l'activation de ce
> réseau physique.',Uncaught SyntaxError: Unexpected identifier
> This is due to french language. "quotes" are not protected.
> (l'activation).
> rm
> /usr/share/cloud/management/webapps/client/WEB-INF/classes/resource/message
> s_fr_FR.properties
> Did solve this issue. Page is not blank anymore. I think languages files
> need reviewing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message