aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJosé Carlos Nieto <xiam@menteslibres.org>2012-10-06 16:34:31 -0500
committerJosé Carlos Nieto <xiam@menteslibres.org>2012-10-06 16:34:31 -0500
commitf343c09195ec763e43ba897884f51e902ea03585 (patch)
tree4579f1725e44cc9164312afd64686be2fa1515bb /README.md
parentAdditional data on xgettext. (diff)
downloadgotext-f343c09195ec763e43ba897884f51e902ea03585.tar.gz
gotext-f343c09195ec763e43ba897884f51e902ea03585.tar.xz
Typo.
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index ab836f0..97b3581 100644
--- a/README.md
+++ b/README.md
@@ -47,24 +47,24 @@ You can use ``os.Setenv`` to set the ``LANGUAGE`` environment variable or set it
Note that ``xgettext`` does not officially support Go syntax yet, however, you can generate a valid ``.pot`` file by forcing
``xgettest`` to use the C++ syntax:
-``sh
+```sh
% xgettext -d example -s gettext_test.go -o example.pot -L c++ -i --keyword=NGettext:1,2 --keyword=Gettext
-``
+```
This will generate a ``example.pot`` file.
After translating the .pot file, you must generate .po and .mo files and remember to set the UTF-8 charset.
-``sh
+```sh
% msginit -l es_MX -o example.po -i example.pot
% msgfmt -c -v -o example.mo example.po
-``
+```
Finally, move the .mo file to an appropriate location.
-``sh
+```sh
% mv example.mo examples/es_MX.utf8/LC_MESSAGES/example.mo
-``
+```
## Documentation