Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-6063

When there is a doble quote inside of an i18n key, it is impossible to acces to the CMS

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.LATER
    • 3.7, 4.1.4
    • None
    • None
    • 1 - Middle term
    • 4 - Structuring

      How to reproduce :

      • surcharge an i18n key in WEB-INF/i18n/plugins/multimedia/message_fr.xml like this :
        <?xml version="1.0" encoding="UTF-8"?>
        <!--
           Copyright 2010 Anyware Services
        
           Licensed under the Apache License, Version 2.0 (the "License");
           you may not use this file except in compliance with the License.
           You may obtain a copy of the License at
        
               http://www.apache.org/licenses/LICENSE-2.0
        
           Unless required by applicable law or agreed to in writing, software
           distributed under the License is distributed on an "AS IS" BASIS,
           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
           See the License for the specific language governing permissions and
           limitations under the License.
           -->
        <catalogue xml:lang="fr">
        	<message key="CONTENT_PHOTOS_GALLERY_DESCRIPTION">Galerie de photos : cliquez sur l'icône pour activer l'onglet "Contenu" afin d'accéder à "Modifier le contenu".</message>
        </catalogue>
      • Then restart and try to acces to the cms
        > a JS error occured : SyntaxError: missing } after property list
        http://localhost:8113/cms/locations/index.html
        Line 541
        This line begins by : org.ametys.ribbon.RibbonManager.getInstance().getControls()["org.ametys.web.addcontent"] = new org.ametys.web.content.ZoneMenu

            Unassigned Unassigned
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: