[Ap-python-commits] python/po pygettext.py,1.1,1.2
Status: Beta
Brought to you by:
sjah
From: <sj...@us...> - 2002-08-21 05:32:34
|
Update of /cvsroot/ap-python/python/po In directory usw-pr-cvs1:/tmp/cvs-serv23343 Modified Files: pygettext.py Log Message: Make pygettext.py more compatibly with xgettext. Index: pygettext.py =================================================================== RCS file: /cvsroot/ap-python/python/po/pygettext.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pygettext.py 19 Aug 2002 16:45:37 -0000 1.1 --- pygettext.py 21 Aug 2002 05:32:29 -0000 1.2 *************** *** 4,8 **** # Minimally patched to make it even more xgettext compatible # by Peter Funk <pf...@ar...> ! # Modified by Evgeny Chukreev <co...@ec...> """pygettext -- Python equivalent of xgettext(1) --- 4,8 ---- # Minimally patched to make it even more xgettext compatible # by Peter Funk <pf...@ar...> ! # Patched a bit by Evgeny Chukreev <co...@ec...> """pygettext -- Python equivalent of xgettext(1) *************** *** 153,157 **** def _(s): return s ! __version__ = '1.4' default_keywords = ['_'] --- 153,157 ---- def _(s): return s ! __version__ = '1.5' default_keywords = ['_'] *************** *** 166,170 **** pot_header = _('''\ # SOME DESCRIPTIVE TITLE. ! # Copyright (C) YEAR ORGANIZATION # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # --- 166,170 ---- pot_header = _('''\ # SOME DESCRIPTIVE TITLE. ! # Copyright (C) YEAR Free Software Foundation, Inc. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # *************** *** 332,338 **** def write(self, fp): options = self.__options ! timestamp = time.ctime(time.time()) ! # The time stamp in the header doesn't have the same format as that ! # generated by xgettext... print >> fp, pot_header % {'time': timestamp, 'version': __version__} # Sort the entries. First sort each particular entry's keys, then --- 332,338 ---- def write(self, fp): options = self.__options ! tz = time.daylight and -time.altzone/36 or 0 ! loct = time.localtime () ! timestamp = "%u-%02u-%02u %02u:%02u%+05d" % (loct [:5] + (tz,)) print >> fp, pot_header % {'time': timestamp, 'version': __version__} # Sort the entries. First sort each particular entry's keys, then |