Skip to content

Localization

Guy Davis edited this page Feb 28, 2022 · 25 revisions

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!

  • de: German
  • en: English
  • fr: French
  • it: Italian
  • pt: Portuguese
  • zh: Chinese

More locales are coming... please request yours.

Translations

Work in Progress

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, edit the messages.po files for your locale, then commit them and send me a Pull Request.

Number Formats

Work in Progress

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.

Clone this wiki locally