mix gettext.import_csv (gamend_web v1.0.1216)

Copy Markdown View Source

Imports reviewed translations from a CSV back into the PO files.

Usage

mix gettext.import_csv LOCALE FILE [--dry-run]

Examples

mix gettext.import_csv es translations/es.csv
mix gettext.import_csv es translations/es.csv --dry-run

The CSV must have at minimum the columns: domain, msgid, translation. Optional columns: source, fuzzy.

Rows are matched by (domain, msgid) and only the msgstr is updated; a filled-in translation also clears the fuzzy flag. New msgids are never added — those come from mix gettext.extract --merge.

Both gettext trees are searched, so a msgid that renders from the host (priv/gettext) and from the library (apps/gamend_web/priv/gettext) is updated in both.

Use --dry-run to preview changes without writing files.