[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r18018: {projects} Reflect latest changes to the .po/.mo file setup in the READ (projects/gettor)
Author: kaner
Date: 2009-01-08 06:24:36 -0500 (Thu, 08 Jan 2009)
New Revision: 18018
Modified:
projects/gettor/README
Log:
Reflect latest changes to the .po/.mo file setup in the README
Modified: projects/gettor/README
===================================================================
--- projects/gettor/README 2009-01-08 06:00:42 UTC (rev 18017)
+++ projects/gettor/README 2009-01-08 11:24:36 UTC (rev 18018)
@@ -63,15 +63,12 @@
TRANSLATION FILES
-----------------
-Currently, .mo files have to be build out of .po files by hand:
+Provided there is a working locale environment, gettor will compile and setup
+locale files for you as follows:
- msgfmt -v gettor_en.po -o gettor.mo
+ gettor@moria:~/bin$ ./gettor.py -r
+ 2009-01-08 12:18:09,041 (19287) Installing translation files done.
-This will probably change in the near future. The .mo files are expected in the
-proper location, e.g. in
-
- /usr/share/locale/en/LC_MESSAGES/gettor.mo
-
You can also configure the .mo files to live in another place by telling gettor
so in the config file, for example:
@@ -81,6 +78,16 @@
/home/gettor/gettor/i18n/en/LC_MESSAGES/gettor.mo
+Also, in case your .po files for some reason live in a different directory
+than i18n/ (relative to gettor.py, as provided by gettor), you can tell this
+to gettor as follows:
+
+ gettor@moria:~/bin$ ./gettor.py -r -d /path/to/my/mofiles/directory
+
+Note that gettor will expect the same directory structure as provided under
+i18n/ in the gettor source package, e.g. 'i18n/en/gettor_en.po',
+'i18n/de/gettor_de.po' and so on.
+
CONFIGURATION
-------------
A proper gettor configuration file is expected in the user's home directory