grouper-dev - [grouper-dev] french translations and javascript problem
Subject: Grouper Developers Forum
List archive
- From: Francis Bouchard-Boulianne <>
- To: "" <>
- Cc: Yoann Delattre <>
- Subject: [grouper-dev] french translations and javascript problem
- Date: Wed, 14 Feb 2018 15:01:54 +0000
- Accept-language: fr-CA, en-CA, en-US
- Ironport-phdr: 9a23:EW12pxMJq8vPZH2Nw5wl6mtUPXoX/o7sNwtQ0KIMzox0I/r+rarrMEGX3/hxlliBBdydt6odzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlViDanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0vRz+s87lkRwPpiCcfNj427mfXitBrjKlGpB6tvgFzz5LIbI2QMvd1Y6HTcs4ARWdZXshfSTFPAp+yYYUMDuoOIelXopLnqFcSsRezHxWgCP/yxjJOm3T43bc60+MkEQze3AIgBcgBsHLIo9X0L6cZTP24zK7VzTrfb/NZwy3955XRfh08pvGMQLZwccvLxkkpEQPKkEibpIvlMTOPzOsNtXSU7+t7Ve61lmMnrBxxrSSvxsg2kInGm5sZx03D9SVkxIY1JMe3SEh9YdG6C5ZfuTyUN4toTcM4WG5ooiE6yroFuZGlZiQF1I4oygfZZveacIaI+gruWPufLDtmnn5pZq+ziwqo/US+xODxV9O43EtXoiZdj9XBuG4B2wbN5sSaVvdx5EWs1SyS2wzN5exJJ10/m7DBJJ472LEwk4IesUTdES/yn0X7lLSWdkA4+uiw6uTrfK/qpoKHN490lA7+KL8hmta4AeQ/MQgBQXKX9vim27H7/E35RqtFjuEun6XEvp3WO94XqrCkDwNJyIov9RiyAja83NgFgHULNFdFdwiGj4jtNVHOOvf4DfKnjlqsijdk3fbGMaHgApXWNHTOjbDhfath5E5c0gUz181Q64tJB7EGPfLzXk7xu8beDh8/LQO52PvnCM591owAQ2KAGbWZMKTVsV+L+O0jOfWDa5UNtDbnN/cl/+LujWM+mVIFcqmpx5wXaG2gHvt4OUWVeGfjjckfEWoRugo+TffqiEGZUTJNfXqyXqQ85i0lB4K8C4fMWJytjKKb0CilA5JWezMONlfZW3jycJicVu1JZC+MCs5njjEeU7W9Ecks2Qzk/Fv10b16NufOvyEVq7ri0sR4/eveiUt0+DBpWZezyWaIGk9ul2UDRiR+9qdiqkx00FvG+69lh/1RE9per6dnSA48Pp/HicZ9FtvyUxjNO/2OVVKnS9OgDBkMddI82dUUZEF+FpOph0aQjGKRH7YJmunTV9QP+aXG0i20fp4lxg==
Hi, I added a lot of french translations recently. I discovered that a few of them introduced bugs in the UI. Some translations use quotes ( ' ) like « l’attribut ». This is ok most of the time, but some dialogs or toolips will make the _javascript_ code break. An example is the property simpleAttributeUpdate.editPanelDeleteConfirm « simpleAttributeUpdate.editPanelDeleteConfirm = Ceci supprimera la d\u00E9finition d'attribut, tous les noms de d\u00E9finition d\'attribut associ\u00E9s, et toutes les affectations et les valeurs. \u00CAtes-vous
s\u00FBr de vouloir le supprimer? » I tried to \-escape \\-escape. Only the double escape works. The generated _javascript_ is the following. If I remove the quote, it works again. This is weird though since you translate you can’t always know
where this string will be used and if it is used in JS AND normal text. With no escape or simple escape in the properties: <input class="redButton" _onclick_="if (confirm('Ceci supprimera la définition *d'attribut*, tous les attributs associés, et toutes les affectations et les valeurs. Êtes-vous sûr de vouloir le supprimer?')) {ajax('../app/SimpleAttributeUpdate.attributeEditPanelDelete',
{formIds: 'attributeEditFormId'}); } return false;" value="Supprimer" style="margin-top: 2px" type="submit"> With double escape : <input class="redButton" _onclick_="if (confirm('Ceci supprimera la définition *d\'attribut*, tous les attributs associés, et toutes les affectations et les valeurs. Êtes-vous sûr de vouloir le supprimer?')) {ajax('../app/SimpleAttributeUpdate.attributeEditPanelDelete',
{formIds: 'attributeEditFormId'}); } return false;" value="Supprimer" style="margin-top: 2px" type="submit"> You can test this property : ·
Go in the simple interface ·
Attribute and permission ·
Attribute def ·
Select an attribute definition ·
Modify the attribute def ·
Try to delete it.
o
The dialog will not appear if there is a quote. Is this a bug or should I log one. ___________________________________________ Francis Bouchard B.
M. Sc. Analyste – Analyse et assurance qualité - division Systèmes d’information.
Service des technologies de l’information Université de Sherbrooke Tél. : 819 821-8000, poste 63465 Courriel : |
- [grouper-dev] french translations and javascript problem, Francis Bouchard-Boulianne, 02/14/2018
- [grouper-dev] Re: french translations and javascript problem, Yoann Delattre, 02/15/2018
- [grouper-dev] RE: french translations and javascript problem, Francis Bouchard-Boulianne, 02/15/2018
- [grouper-dev] RE: french translations and javascript problem, Hyzer, Chris, 02/15/2018
- [grouper-dev] RE: french translations and javascript problem, Francis Bouchard-Boulianne, 02/16/2018
- [grouper-dev] Re: french translations and javascript problem, Yoann Delattre, 02/15/2018
- [grouper-dev] RE: french translations and javascript problem, Hyzer, Chris, 02/15/2018
- [grouper-dev] RE: french translations and javascript problem, Francis Bouchard-Boulianne, 02/15/2018
- [grouper-dev] Re: french translations and javascript problem, Yoann Delattre, 02/15/2018
Archive powered by MHonArc 2.6.19.