[neon] Login page fails to show for french [message #1741731] |
Mon, 29 August 2016 06:35 |
Urs Beeli Messages: 573 Registered: October 2012 Location: Bern, Switzerland |
Senior Member |
|
|
We've encountered a problem with NLS support in Scout Neon.
Our login.html File looks as follows:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CISI Angebot</title>
<scout:include template="head.html" />
<scout:stylesheet src="res/scout-login-module.css" />
<scout:script src="res/jquery-all-macro.js" />
<scout:script src="res/cisi-login-module.js" />
<script>
$(document).ready(function() {
scout.login.init({texts: <scout:message style="javascript" key="ui.Login" key="ui.LoginFailed" key="ui.User" key="ui.Password" /> });
});
</script>
</head>
<body>
<scout:include template="no-script.html" />
<!--
<p>This is plain text</p>
<p>Generated text: <scout:message key="ui.BrowserTooOld" /></p>
-->
</body>
</html>
While using German or English as languages, it worked perfectly.
After switching browser language to French, all we get is a blank page. The firebug console shows the following error:
Quote:SyntaxError: missing } after property list
...ailed': 'Echec de l'identification', 'ui.User': 'Utilisateur', 'ui.Password': '
And looking at the HTML source I see the following (excerpt only):
<script>
$(document).ready(function() {
scout.login.init({texts: {'ui.Login': 'Identification', 'ui.LoginFailed': 'Echec de l'identification', 'ui.User': 'Utilisateur', 'ui.Password': 'Mot de passe'} });
});
</script>
I assume that the problem is the apostrophe in "Echec de l'identification" which prematurely terminates the string. If I'm not mistaken, this text is one provided by the scout runtime, as is the login.html file.
So I am wondering, has anyone else seen this issue and if so, how did you solve it? I would assume that the BSI CRM application which runs under Scout Neon is also used in French, do you not see this issue? Can we do something to escape such characters?
On a related note: Even though I have switched my browser language back to English or German (and have totally remove french from it), I still get the broken, french login page, even when using a different browser, and other users have the same problem. Is the language somehow stored somewhere on the server side? Restarting it did not help. How can we get back to a non-french login page?
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03314 seconds