/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/__init__.py
ViewVC logotype

Annotation of /branches/WIP-pyshapelib-bramz/Thuban/__init__.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 671 - (hide annotations)
Tue Apr 15 18:09:47 2003 UTC (21 years, 10 months ago) by bh
Original Path: trunk/thuban/Thuban/__init__.py
File MIME type: text/x-python
File size: 663 byte(s)
* 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    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26