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 23:03] – [GETTEXT] dany | traduction [2014/02/14 15:57] – [tutoriel et documentation] dany | ||
---|---|---|---|
Ligne 17: | Ligne 17: | ||
===== extract_text.sh ===== | ===== extract_text.sh ===== | ||
Retrouve toutes les chaînes de caractères à traduire et les place dans html/ | Retrouve toutes les chaînes de caractères à traduire et les place dans html/ | ||
+ | <code bash> | ||
#!/bin/bash | #!/bin/bash | ||
# Brief : extract strings from the file, in order to update a | # Brief : extract strings from the file, in order to update a | ||
Ligne 28: | Ligne 29: | ||
xgettext -L PHP -j --from-code=UTF-8 -p html/ | xgettext -L PHP -j --from-code=UTF-8 -p html/ | ||
xgettext -L PHP -j --from-code=UTF-8 -p html/ | xgettext -L PHP -j --from-code=UTF-8 -p html/ | ||
+ | </ | ||
===== get_menu.sh ===== | ===== get_menu.sh ===== | ||
Retrouve les menus et les inscrit dans un fichier afin de pouvoir être traités par extract_text.sh | Retrouve les menus et les inscrit dans un fichier afin de pouvoir être traités par extract_text.sh | ||
+ | <code bash> | ||
# | # | ||
Ligne 44: | Ligne 46: | ||
psql -A -F" | psql -A -F" | ||
echo "?>" | echo "?>" | ||
+ | </ | ||
===== compile_text.sh ===== | ===== compile_text.sh ===== | ||
Compile le fichier afin que les traductions soient disponibles | Compile le fichier afin que les traductions soient disponibles | ||
+ | <code bash> | ||
+ | #!/bin/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 ====== | ||
- | #!/bin/bash | + | http://barry.coffeesprout.com/translating-po-files-using-google-translate/ |
- | # 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/LC_MESSAGES | + | |
- | | + | |
- | cd ../.. | + | |
- | cd nl_NL/ | + | |
- | | + | |
- | + | ||
| | ||
Ligne 69: | Ligne 73: | ||
- | ====== tutoriel ====== | + | ====== tutoriel |
- | [[http:// | + | - [[http:// |
+ | - [[https:// | ||
+ | - [[https:// | ||
+ | - [[http:// | ||
+ | - [[http:// |