Skip to content

Commit

Permalink
Support gettext. Current translations: de. --require
Browse files Browse the repository at this point in the history
  • Loading branch information
vaeth committed Apr 21, 2018
1 parent 2f83793 commit fcfbf97
Show file tree
Hide file tree
Showing 10 changed files with 741 additions and 104 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/po/*~
/*/
!/bin/
!/po/
!/zsh/

6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# ChangeLog for replacer

*replacer-3.0
Martin Väth <martin at mvath.de>:
- Support translations (gettext)
- Provide translation for de
- Support --require

*replacer-2.2
Martin Väth <martin at mvath.de>:
- Provide --colors style
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ To install this script, just copy the content of bin/ into your `$PATH`.
To get zsh completion, copy the content of zsh/ to your zsh's `$fpath`,
perhaps `/usr/share/zsh/site-functions/`.

If you have gettext installed, you can also install translations:
To install the translation catalogue use the command `po/install-mo ""`
(omit the `""` to get help about the command).
For testing, you can set REPLACER_NLS or NLS to the catalogue path.
For installation, it is recommended to adapt the line
localedir = '' in bin/replacer appropriately.

The script executes just `python` and is tested with python2.7 and python3.6,
but it should work with all flavors of python3 and probably also some older
versions of python2. Some details on codings and regular expressions might
Expand Down
Loading

0 comments on commit fcfbf97

Please sign in to comment.