Annotation, customize annotation widgets labels
The repository should be able to change the concordance annotation UI strings
concordance UI Strings and keys are:
- start annotation button title = (annotate) Messages.Messages.ConcordancesEditor_75
- stop annotation button title = (cancel) Messages.ConcordancesEditor_101
- action combo values = (affect) Messages.ConcordancesEditor_22, (remove) Messages.ConcordancesEditor_24
- affectation combo values = (selected lines) Messages.ConcordancesEditor_35, (current page lines) Messages.ConcordancesEditor_42, (all lines) Messages.ConcordancesEditor_49
- with label = (with categorie) Messages.ConcordancesEditor_83
- value label (expert) = (value=) Messages.ConcordancesEditor_80
dialogs messages and keys are:
- ConcordancesEditor_110=New value {0} for category {1}
- ConcordancesEditor_112=The value {0} is not associated with the category {1}. Associate it ?
- ConcordancesEditor_100: Available values for {0}
Concordance table widget:
- annotation column title ! Category/Catégorie
Which gives, in simple mode:
Set|Delete Selected lines|Page lines|All lines with the category OK Cancel
and in advanced mode:
Set|Delete Selected lines|Page lines|All lines with the category = and the value = OK Cancel
and in advanced mode and SyMoGIH mode:
Set|Delete Selected lines|Page lines|All lines with the type = and the id = OK Cancel
Solution
add the element to the element and a value element per String to translate
The key attribute value is one from the following list:
- Messages.ConcordancesEditor_22: affect
- Messages.ConcordancesEditor_24: remove
- ConcordancesEditor_83: with category
- ConcordancesEditor_80: value =
Example of scripts element with en and fr messages:
<strings lang="en">
<string key="ConcordancesEditor_22">Affect</string>
<string key="ConcordancesEditor_24">Delete</string>
<string key="ConcordancesEditor_83">with the category</string>
<string key="ConcordancesEditor_80">value=</string>
<string key="ConcordancesEditor_110">New value {0} for category {1}</string>
<string key="ConcordancesEditor_112">The value {0} is not associated with the category {1}. Associate it ?</string>
<string key="ConcordancesEditor_100">Available values for {0}</string>
</strings>
<strings lang="fr">
<string key="ConcordancesEditor_22">Annoter</string>
<string key="ConcordancesEditor_24">Retirer</string>
<string key="ConcordancesEditor_83">avec la catégorie</string>
<string key="ConcordancesEditor_80">valeur=</string>
<string key="ConcordancesEditor_110">Nouvelle valeur {0} pour la catégorie {1}</string>
<string key="ConcordancesEditor_112">La valeur {0} n'est pas encore associée à la catégorie : {1}. Créer l'association ?</string>
<string key="ConcordancesEditor_100">Valeurs disponibles pour {0}</string>
</strings>
(from redmine: issue id 1903, created on 2016/10/17 by Matthieu Decorde)