When I set my user language to french I have several problems with the backend. For example I can't save any stylesheets or scripts.
I discovered that the problem come from literals that contains single quotes.
An example editing Sylesheets: /umbraco/settings/stylesheet/editStylesheet.aspx
$(document).ready(function () { var editor = new Umbraco.Editors.EditStyleSheet({ nameTxtBox: $('#body_NameTxt'), originalFileName: 'ddsmoothmenu', cssId: '1083', saveButton: $("#body_save"), editorSourceElement: $('#body_editorSource'), text: { cssErrorHeader: 'Impossible d'enregistrer la feuille de style', cssSavedHeader: 'La feuille de style a été enregistrée', cssSavedText: 'La feuille de style a été enregistrée sans erreurs.', cssErrorText: 'Please make sure that you have permissions set correctly', } }); editor.init();
//bind save shortcut UmbClientMgr.appActions().bindSaveShortCut(); });
You can file bug reports at http://issues.umbraco.org/issues - When you have done so please post the link to it in here so others who may come across this post can jump right to the bug and vote it up.
Hope this answers your question - and good catch by the way! :)
I just voted this bug up - If you make other findings of bugs/errors or think some areas of Umbraco can be improved please don't hesitate to file issues on the tracker or of course discuss it whith others here on our.
Javascript error with single quotes in literals
When I set my user language to french I have several problems with the backend.
For example I can't save any stylesheets or scripts.
I discovered that the problem come from literals that contains single quotes.
An example editing Sylesheets: /umbraco/settings/stylesheet/editStylesheet.aspx
How can I open an issue for this problem?
Thanks
Hi Cédric
You can file bug reports at http://issues.umbraco.org/issues - When you have done so please post the link to it in here so others who may come across this post can jump right to the bug and vote it up.
Hope this answers your question - and good catch by the way! :)
/Jan
Hi Cédric
Yes, the single quote (apostrophe) probably need to be replaced with \' or \\' before sent to javascript..
so for cssErrorHeader it would look like:
so the value sent to the literal could use .Replace() method to escape the quote characters in the string..
/Bjarne
I reported the issue: http://issues.umbraco.org/issue/U4-4455
Thanks guys!
For the moment I let my user language set to english and no problem
I just voted this bug up - If you make other findings of bugs/errors or think some areas of Umbraco can be improved please don't hesitate to file issues on the tracker or of course discuss it whith others here on our.
Cheers,
Jan
Has been resolved in Umbraco 7.1.0
is working on a reply...