8000 GitHub - daeddy/gettext_check
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

daeddy/gettext_check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GettextCheck

hex.pm badge Documentation badge CI badge

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.

Usage

mix gettext_check [OPTIONS]

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
  • --priv or -p - the path to the priv directory
    • Defaults to priv/gettext
    • This can also be set under the config

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/gettext

2. Mix config

  config :gettext_check,
    locale: "ja",
    priv: "priv/gettext"

Contributing

  1. Fork it!
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0