Langues
aka languages
Tout sur les langues et concrete5
sudo apt-get install gettext cd {root} && touch messages.po find ./ -iname '*.php' -exec xgettext --default-domain=messages --from-code=utf-8 --keyword=t --language=PHP -p ./ -j {} \; apt-get install poedit
extrait de
2e méthode
mkdir -p languages/fr_FR/LC_MESSAGES find . -name "*.php" > FileList xgettext --default-domain=messages --output-dir=languages/fr_FR/LC_MESSAGES --output=messages.pot --language=PHP --from-code=UTF-8 --add-comments=i18n --keyword --keyword=t:1 --keyword=t2:1,2 --keyword=tc:1c,2 --no-escape --add-location --no-wrap --files-from=FileList cd languages/fr_FR/LC_MESSAGES msginit --input=messages.pot --output=messages.po --locale=fr_FR --no-wrap #edit with poedit and make changes, save msgfmt --output-file=messages.mo --check-format --check-header --check-domain messages.po
source (adaptée): https://www.concrete5.org/documentation/how-tos/developers/translate-your-package/