mix gettext.export_csv (game_server_web v1.0.941)

Copy Markdown

Exports all PO translations and theme JSON config for a locale to CSV.

Usage

mix gettext.export_csv LOCALE [--output FILE] [--config BASE_PATH]

Examples

mix gettext.export_csv es
mix gettext.export_csv es --output translations/es.csv
mix gettext.export_csv es --config modules/example_config.json

The CSV has columns: domain, msgid, source, translation, fuzzy.

  • For PO messages: source is empty (the msgid itself is the English source text), translation is the msgstr value.
  • fuzzy is "yes" when the entry is marked fuzzy, otherwise empty.
  • For JSON config: domain is _config, msgid is the JSON key path, source is the English reference text from the base config, translation is the locale text. Edit translation to change.

Empty translation cells indicate untranslated strings that need work.