Localization - guydavis/machinaris GitHub Wiki

Machinaris in v0.7+ supports internationalization (i18n) through the efforts of volunteers contributing their local translations to the application. The following locales are currently supported, though additional translations will be needed. Please contribute!

  • en: English
  • fr-FR: French -> Please help improve it!
  • de-DE: German
  • it-IT: Italian
  • nl-NL: Dutch
  • pt-PT: Portuguese

More locales are coming... please request yours. Top-priorities include:

  • zh: Chinese

Translations

Each browser request sends an 'Accept-Language' weighted list of accepted languages. Machinaris will find the best match between the browser's requested language and the supported locales (above). The fallback default is en (English). For those interested, Machinaris uses Flask-Babel for i18n.

Contributing

First, check if your locale is listed above. If not, let me know in via an Issue, Discussion, or Discord. I'll generate a set of messages.po files for your locale, which you can then translate. The translation files are found here:

Following the contribution guidelines, please fork the Machinaris repository, switch to the development branch, then edit the messages.po files for your locale.

If you want to test compile your changes, please optionally follow these steps. Finally commit the updated messages.po files and send me a Pull Request.

Number Formats

Machinaris uses Babel to support locale-dependent number and currency formatting.

Date Formats

There is only one true date format: ISO8601. Seriously though, this allows easy sorting in tables by date column.