GettextCheck
GettextCheck is a tool to check for missing translations in
GNU gettextpo 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.
Usage
mix gettext_check [OPTIONS]#### Options
--localeor-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.
--privor-p- the path to the priv directory-
Defaults to
priv/gettext - This can also be set under the config
-
Defaults to
Configuration
You need to specify the locale but the priv directory is optional
(default to priv/gettext).
GettextCheck can be configured in two ways:
1. Command line options
mix gettext_check --locale ja --priv priv/gettext2. Mix config
config :gettext_check,
locale: "ja",
priv: "priv/gettext"Contributing
- 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