Skip to Content.
Sympa Menu

grouper-dev - [grouper-dev] RE: french translations and javascript problem

Subject: Grouper Developers Forum

List archive

[grouper-dev] RE: french translations and javascript problem


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: Francis Bouchard-Boulianne <>, Yoann Delattre <>, "" <>
  • Subject: [grouper-dev] RE: french translations and javascript problem
  • Date: Thu, 15 Feb 2018 15:36:59 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:ZhRvfRItpk7gwqsEgdmcpTZWNBhigK39O0sv0rFitYgXKvj9rarrMEGX3/hxlliBBdydt6ofzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlGiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0vRz+s87lkRwPpiCcfNj427mfXitBrjKlGpB6tvgFzz5LIbI2QMvd1Y6HTcs4ARWdZXshfSTFPAp+yYYUMAeoOP+dYoJXyqFYVtxSyGRWgCfnzxjNUhHL727Ax3eQ7EQHB2QwtB9wCvnbUrdT0KqgSS/i5x7TWwDXDdfNW2Cz95IbVeR0mpPGDQbJwcMrQyEYxDQPIlVSQqZf5MD+Py+QNq3aU7+xmVe61lWEothxxryGpy8wxiYfJnpoYxk7Y+Sh72oo4Kty1RFRmbdOlHpZcrSGXOoVuTs8/TWxkpDw2x7kbtZKhYiQG1ZAqywTCZ/GFcoWE+hzjW/iSLDtkgX9ofa+ziAux/EWvz+DzSNO73EpPoydGjNbAqHQA2hnI5cWHRPty4kGs0iuV2Q/J8OFLO0U0mLLbK5E/xr4wkYIev1zfEyHxhEn6kraae1sm9eS18ujnZa7pqYGGO49zlwH+Lr8hmsuiAeQ+LwcCRXCb+f671L3/40L2XKlKjvwxkqnfqpzaItkbprK9Aw9S1YYj6AyzACuh0NQdhXUHLVRFdwybj4XxJV3CPPL1Ae2wjlmtijtn2vHLM7P7DpjNIHXPiLLhcqx8605Yxgoz19df55dMB7EEPP3zWk/wtd3GAR8jKAG0wv3nB8ln2oMDQWKAHKmZMKXIvVCW++0vPvGAZJUJtzblN/gl+/nugGc2mV8HeqmpwIMXZ26iHvh/PkqWf2Tsj8wFEWcLpQo+UPfqhEOYXT5SYXayQ7wz5is9CI24EYfPWJqhj6Kc0yemTdVqYTVoEFmKGnbzP6+DRvwMYTieZ+VmjzgFXL6nRsd1+wunsgT70PxNKfff+iQCudfJ08Vx5uTVkxwayAd0At6XyWaKTGwylWpeA3cH26l5pwRRx1OKzbRijrQMBNta4fUPXgo+PILA1eFSAtu3XgPFetrPRkzwBp3sDis2U8o82ZoCblhVGtO+gwrF0jbwRbIZivbDUJMu9b/E0mK0K8tj43fAyKQ7iVQ6GI1COXDw1YBl8A2GTa7YgUiD0+6Bdb4dx2SFoGKIzXucsVtwURV7F7jdUHYZIEbasIKqtQv5U7ayBOF/YUN6wsmYJ/4PM4WxgA==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

So you want a program where you input the grouper text file, and the translated one, and it creates a new file with the translations there, and the new properties blank so you can add the translations?  And print out which ones it needs?

 

Thanks

Chris

 

From: [mailto:] On Behalf Of Francis Bouchard-Boulianne
Sent: Thursday, February 15, 2018 10:16 AM
To: Yoann Delattre <>;
Subject: [grouper-dev] RE: french translations and _javascript_ problem

 

Ok that works, but with much more translations !! J

 

Working on them and a pull request will follow.

 

Yoann, you might want to review the pull request once it is done to ensure consistency.

 

At one point I would like to ask someone to write a script to take the english base file, strip the values and insert the french values to the keys in order to synch the attributes. If someone has such a script, please let me know. I don’t have time to work on that.

 

Francis

 

De : Yoann Delattre []
Envoyé : 15 février 2018 05:41
À : Francis Bouchard-Boulianne <>;
Objet : Re: french translations and _javascript_ problem

 

Hello Francis,

Test with the latest patch for the UI : you can create/view/edit attribut def and attribute def name in the New UI.

Yoann

 

Le 14/02/2018 à 16:01, Francis Bouchard-Boulianne a écrit :

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 :

 

 




Archive powered by MHonArc 2.6.19.

Top of Page