[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[OpenTAL-checkins] opental/PlacelessTranslationService GettextMess...
From: |
Fernando Lalo Martins |
Subject: |
[OpenTAL-checkins] opental/PlacelessTranslationService GettextMess... |
Date: |
Fri, 14 Feb 2003 11:09:36 -0500 |
CVSROOT: /cvsroot/opental
Module name: opental
Changes by: Fernando Lalo Martins <address@hidden> 03/02/14 11:09:36
Modified files:
PlacelessTranslationService: GettextMessageCatalog.py
Log message:
open .mo files as binary on dos-based systems; patch contributed by
Joachim Bauch <address@hidden>
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/opental/opental/PlacelessTranslationService/GettextMessageCatalog.py.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
Patches:
Index: opental/PlacelessTranslationService/GettextMessageCatalog.py
diff -u opental/PlacelessTranslationService/GettextMessageCatalog.py:1.3
opental/PlacelessTranslationService/GettextMessageCatalog.py:1.4
--- opental/PlacelessTranslationService/GettextMessageCatalog.py:1.3 Wed Jan
29 17:40:24 2003
+++ opental/PlacelessTranslationService/GettextMessageCatalog.py Fri Feb
14 11:09:35 2003
@@ -17,7 +17,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
"""A simple implementation of a Message Catalog.
-$Id: GettextMessageCatalog.py,v 1.3 2003/01/29 22:40:24 lalo Exp $
+$Id: GettextMessageCatalog.py,v 1.4 2003/02/14 16:09:35 lalo Exp $
"""
from gettext import GNUTranslations
@@ -49,7 +49,7 @@
def _prepareTranslations(self):
""" """
if self.__translation_object is None:
- file = open(self._path_to_file, 'r')
+ file = open(self._path_to_file, 'rb')
tro = GNUTranslations(file)
file.close()
self._language = (tro._info.get('language-code', None) # new way
- [OpenTAL-checkins] opental/PlacelessTranslationService GettextMess...,
Fernando Lalo Martins <=