Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révisionLes deux révisions suivantes | ||
traduction [2014/02/07 22:54] – [GETTEXT] dany | traduction [2014/02/14 15:57] – [tutoriel et documentation] dany | ||
---|---|---|---|
Ligne 11: | Ligne 11: | ||
- | Plus d'info ici [[http:// | + | Ici une discussion avec un fichier |
- | ====== tutoriel ====== | + | |
- | [[http:// | + | ====== Les scripts ====== |
+ | dans dev/ | ||
+ | ===== extract_text.sh ===== | ||
+ | Retrouve toutes les chaînes de caractères à traduire et les place dans html/ | ||
+ | <code bash> | ||
+ | # | ||
+ | # Brief : extract strings from the file, in order to update a | ||
+ | # po file. It is used for the translation | ||
+ | # | ||
+ | # | ||
+ | # This file is a part of NOALYSS under GPL | ||
+ | # Author D. DE BONTRIDDER danydb@aevalys.eu | ||
+ | echo " | ||
+ | cd .. | ||
+ | xgettext -L PHP -j --from-code=UTF-8 -p html/ | ||
+ | xgettext -L PHP -j --from-code=UTF-8 -p html/ | ||
+ | </ | ||
+ | ===== get_menu.sh ===== | ||
+ | Retrouve les menus et les inscrit dans un fichier afin de pouvoir être traités par extract_text.sh | ||
+ | <code bash> | ||
+ | # | ||
+ | |||
+ | export PGUSER=dany | ||
+ | export PGPASSWORD=dany | ||
+ | export PGHOST=localhost | ||
+ | export PGDATABASE=trunkdossier25 | ||
+ | export PGPORT=5000 | ||
+ | |||
+ | |||
+ | ( | ||
+ | echo "<? | ||
+ | psql -A -F" | ||
+ | echo "?>" | ||
+ | </ | ||
+ | ===== compile_text.sh ===== | ||
+ | Compile le fichier afin que les traductions soient disponibles | ||
+ | <code bash> | ||
+ | # | ||
+ | # Brief : compite | ||
+ | # It is used for the translation | ||
+ | # | ||
+ | # | ||
+ | # This file is a part of NOALYSS under GPL | ||
+ | # Author D. DE BONTRIDDER danydb@aevalys.eu | ||
+ | cd ../ | ||
+ | cd en_US/ | ||
+ | msgfmt -c -v messages.po | ||
+ | cd ../.. | ||
+ | cd nl_NL/ | ||
+ | msgfmt -c -v messages.po | ||
+ | </ | ||
+ | ====== Traduction avec Google ====== | ||
+ | |||
+ | http:// | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ====== tutoriel et documentation ====== | ||
+ | |||
+ | - [[http:// | ||
+ | - [[https:// | ||
+ | - [[https:// | ||
+ | - [[http:// | ||
+ | - [[http:// |