README 755 B

1234567891011121314151617181920212223
  1. Add a "localization.pot" to this directory, and one folder per translated language, containing the po a LC_MESSAGE directory (with the .mo)
  2. See: https://github.com/YunoHost/admin_v1/tree/master/i18n
  3. ## Example
  4. The next command generates the pot file from templates files
  5. ```
  6. xgettext views/* -o i18n/localization.pot
  7. ```
  8. The template must use directly the function ```gettext``` or its alias ```_```.
  9. The following command generate the .po file for the language fr_FR with UTF-8 as enconding:
  10. ```
  11. msginit --locale=fr_FR.UTF-8 -i i18n/localization.pot -o i18n/fr_FR/localization.po
  12. ```
  13. Once the po file fullfilled, you can generate the .mo file used by the system.
  14. ```
  15. msgfmt i18n/fr_FR/localization.po -o i18n/fr_FR/LC_MESSAGES/localization.mo
  16. ```