====== Procédure de traduction des chaînes de caractères présentes dans le code source ======
Dans le code source, les chaînes de caractères sont écrites en anglais. Lors de l'exécution d'**Actionaz** pour que l'interface apparaisse dans votre langue, il faut traduire chaque chaîne de caractères.
Voici le mode opératoire :
Dans le répertoire contenant les sources exécuter le script locale_update.sh :
$ ./locale_update.sh 2>/dev/null
//La redirection des erreurs facilite la lecture du résultat.//
Repérez les fichiers contenant des nouveaux messages :
$ ./locale_update.sh 2>/dev/null
Updating 'locale/tools_fr_FR.ts'...
Found 5 source text(s) (0 new and 5 already existing)
Updating 'locale/actiontools_fr_FR.ts'...
Found 214 source text(s) (0 new and 214 already existing)
Updating 'locale/executer_fr_FR.ts'...
Found 24 source text(s) (0 new and 24 already existing)
Updating 'locale/actexecuter_fr_FR.ts'...
Found 31 source text(s) (0 new and 31 already existing)
Updating 'locale/gui_fr_FR.ts'...
Found 395 source text(s) (0 new and 395 already existing)
Updating 'locale/actionpackinternal_fr_FR.ts'...
Found 103 source text(s) (0 new and 103 already existing)
Updating 'locale/actionpackwindows_fr_FR.ts'...
Found 134 source text(s) (0 new and 134 already existing)
Updating 'locale/actionpackdevice_fr_FR.ts'...
Found 89 source text(s) (4 new and 85 already existing)
Updating 'locale/actionpacksystem_fr_FR.ts'...
Found 186 source text(s) (0 new and 186 already existing)
Updating 'locale/actionpackdata_fr_FR.ts'...
Found 215 source text(s) (0 new and 215 already existing)
Dans notre cas il va falloir ouvrirle fichier ''locale/actionpackdevice_fr_FR.ts'' avec **Qt Linguist** (obtenu lors de l'installation du package QtCreator).
Dans Qt Linguist, ouvrez le fichier, traduisez les chaînes (repérées par un point d'interrogation) et sauvez le fichier.
{{ :wiki:qt_linguist.png?300 |}}
Pour regénérer les messages pour qu'ils soient prêt à l'emploi pour l'exécutable actionaz, il faut lancer :
$ make locale_release
----
Retour à la page : [[fr:devel|Développer et Contribuer]]
Autres langues pour cette page : [[en:devel:translate|(en)]]