GettextCheck is a tool to check for missing translations in
GNU gettext po
and pot
files.
Designed to work with the elixir gettext package,
your files must be saved in the gettext directory structure
e.g. priv/gettext/LOCALE/LC_MESSAGES/DOMAIN.po
.
Read the documentation for the GettextCheck
module for more information on backend functions.
mix gettext_check [OPTIONS]
--locale
or-l
- the locale to check- Will be used with priv to find the locale files (e.g.
{priv}/{locale}/LC_MESSAGES
) - This can also be set under the config
- Required either here or under the config
- Will be used with priv to find the locale files (e.g.
--priv
or-p
- the path to the priv directory- Defaults to
priv/gettext
- This can also be set under the config
- Defaults to
You need to specify the locale but the priv directory is optional
(default to priv/gettext
).
GettextCheck
can be configured in two ways:
mix gettext_check --locale ja --priv priv/gettext
config :gettext_check,
locale: "ja",
priv: "priv/gettext"
- Fork it!
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request