Parent Directory
|
Revision Log
* Thuban/__init__.py (_): Implement the translation function for real using the python gettext module. * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't translate empty strings. * Thuban/UI/application.py (ThubanApplication.read_startup_files): Add a missing space to a warning message * po/README: New. Notes about the management of the translation files. * po/Makefile: New. Makefile to help manage the translation files. * po/es.po: New. Spanish translation by Daniel Calvelo Aros * MANIFEST.in: Include the *.mo files in Resources/Locale and the translations and support files in po/ * setup.py (data_files): Add the *.mo files to the data_files too * README: Add note about the translations when building from CVS
1 | bh | 671 | # Copyright (c) 2001, 2003 by Intevation GmbH |
2 | bh | 6 | # Authors: |
3 | # Bernhard Herzog <[email protected]> | ||
4 | jan | 373 | # Jan-Oliver Wagner <[email protected]> |
5 | bh | 6 | # |
6 | # This program is free software under the GPL (>=v2) | ||
7 | # Read the file COPYING coming with Thuban for details. | ||
8 | jan | 373 | |
9 | bh | 671 | import os |
10 | from gettext import translation | ||
11 | |||
12 | # Initialize localization. | ||
13 | # | ||
14 | # The actual translation function is bound to _ in this module and | ||
15 | # should be imported with something like | ||
16 | # from Thuban import _ | ||
17 | # | ||
18 | _message_dir = os.path.join(os.path.dirname(__file__), os.pardir, "Resources", | ||
19 | "Locale") | ||
20 | _translation = translation("thuban", _message_dir, fallback = 1) | ||
21 | |||
22 | _ = _translation.gettext | ||
23 |
Name | Value |
---|---|
svn:eol-style | native |
svn:keywords | Author Date Id Revision |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |