Commit Graph

62 Commits

Author SHA1 Message Date
Sam Manzi
3f86dd3e25
Editorial changes & Fixes from QuLogic 2016-04-19 09:15:05 +10:00
Sam Manzi
5dc5615bfd
Prefer with context manager to open files 2016-04-19 09:08:21 +10:00
Sam Manzi
001a95fcf8 Fix typo as per ~47490 2016-04-17 06:09:43 +10:00
Sam Manzi
8694c7fcc7 7921 Move holidays.xml.in to data [refactor] 2016-04-16 16:38:43 +10:00
Nick Hall
e82148677d Replace tabs with spaces 2015-12-31 21:17:49 +00:00
elderamevans
c9e23628d7 Fix 'python' filename under Windows
executable named 'python.exe' whatever major python version (2 or 3)
2015-07-29 11:06:46 +02:00
Jérôme Rapinat
dc90fd866d 'update_po.py' should use python3
Revert temp workaround for el, vi, zh* translations
2015-07-28 20:56:23 +02:00
Jérôme Rapinat
99d38a539e Remove --no-wrap option from merging
Consistency with most translation files
2015-03-25 19:53:20 +01:00
Jérôme Rapinat
1e0d34dc4f tweak, polish argument for encoding 2015-03-20 09:13:24 +01:00
Jérôme Rapinat
727d96cc22 Improve TipsParse for python3 support 2015-03-20 09:06:06 +01:00
Jérôme Rapinat
b324e0fb80 workaround before python3 support 2015-03-19 17:39:55 +01:00
Anthony Fok
92610bf486 enable python3 to run po/update_po.py 2015-03-01 09:00:38 -08:00
Malcom Lewis
86303f6116 Update FSF address to current location. 2014-08-08 19:39:45 -07:00
Jérôme Rapinat
15206590e7 sort translations output by file location for easier diff 2014-04-17 16:43:46 +02:00
Nick Hall
f6be31eb39 Remove subversion substitution variables 2014-04-15 14:10:18 +01:00
Jérôme Rapinat
6e1b7476b2 support comments 2014-04-12 17:49:12 +02:00
Jérôme Rapinat
38fc41fbb7 7110: Add AppData file
svn: r23260
2013-10-07 09:42:01 +00:00
Jérôme Rapinat
3c4db9ea0e 7110: Add AppData file
svn: r23256
2013-10-07 09:07:40 +00:00
Jérôme Rapinat
3555289c39 6595, 5621: temp workaround for xgettext bug (not yet fixed on GNU gettext 0.18.2), see https://savannah.gnu.org/bugs/index.php?29216
svn: r22204
2013-05-08 09:25:10 +00:00
Paul Franklin
612b893956 better PEP-0008 (trans_text_ ==> trans_text)
PEP-0008 reserves the use of a trailing underscore for names
which conflict with Python keywords, which this doesn't.

The goal is to have a permanent name which is unique across
the gramps namespace, since it is defined (in po/genpot.sh
and po/update_po.py) as a keyword to flag strings to be put
into the translation "catalog" file (gramps.pot).

The new keyword "trans_text" is still unique.  (Also "_T_".)


svn: r22201
2013-05-07 18:59:43 +00:00
Paul Franklin
6930887aa1 "_ngettext" is no longer used as a gramps translation keyword
svn: r22199
2013-05-07 18:12:41 +00:00
Paul Franklin
b2b693ae19 add new keywords to po/genpot.sh, comment both scripts, and add "Id" lines
svn: r22183
2013-05-05 19:41:13 +00:00
Jérôme Rapinat
ecdc91160f 6595: add new keywords for xgettext (textual reports and L10N/I18N)
svn: r22167
2013-05-04 17:34:35 +00:00
Jérôme Rapinat
dc89736d4a 6595: create a new template every time we are extracting strings from python modules
svn: r22164
2013-05-04 15:54:14 +00:00
John Ralls
2f77462320 Fix platform detection on OSX
'darwin' is returned by sys.platform, not os.name.

svn: r21180
2013-01-20 19:35:35 +00:00
Jérôme Rapinat
d5870ff1f4 new location for tips.xml
svn: r21005
2013-01-05 14:41:54 +00:00
Jérôme Rapinat
c2443c74d4 update and add more comments
svn: r20782
2012-12-13 20:43:32 +00:00
Jérôme Rapinat
01676a58a4 only use one -letter as flag (3 characters) when use choice list; sys.argv[2:] issue
svn: r20748
2012-12-02 17:29:13 +00:00
Jérôme Rapinat
6f6c3845f0 add "all" argument for check and update flag (maintenance and tests)
svn: r20747
2012-12-02 17:22:40 +00:00
Jérôme Rapinat
870f54c733 typo
svn: r20745
2012-12-02 14:09:44 +00:00
Jérôme Rapinat
fbac0193af upgrade deprecated "optparse" module to "argparse" for a python2.7/3.2 support; skip fuzzy by default because it is ignored on .mo generation and not yet reviewed by translators; only check and print a summary
svn: r20742
2012-12-02 13:52:37 +00:00
Jérôme Rapinat
bbcb1dd406 better print statement (if need)
svn: r20718
2012-12-01 10:36:36 +00:00
Jérôme Rapinat
3845dfb304 po files selector for displaying content of translation file
svn: r20717
2012-12-01 10:16:44 +00:00
Jérôme Rapinat
2ca04af319 start to use choice lists (argsparser)
svn: r20716
2012-12-01 10:10:44 +00:00
Jérôme Rapinat
f4abcb7f66 check defaults
svn: r20715
2012-12-01 09:45:14 +00:00
Jérôme Rapinat
9e381f2ad5 start to upgrade deprecated "optparse" module to "argparse" (python 2.7/3.2)
svn: r20713
2012-11-30 20:33:44 +00:00
Jérôme Rapinat
1a7862e848 6096: update POTFILES.in, try to handle entries on python script
svn: r20567
2012-10-16 18:39:40 +00:00
Jérôme Rapinat
1445ea7f0d 6086 6096: add comments about usage
svn: r20560
2012-10-16 08:51:05 +00:00
Jérôme Rapinat
a9bf135c65 6096: check missing references; ignore "python" comments for translation (update_po)
svn: r20534
2012-10-08 09:17:33 +00:00
Jérôme Rapinat
98d91fc626 #6086: do not need work around for some tips anymore
svn: r20532
2012-10-07 16:45:58 +00:00
Jérôme Rapinat
5ac9aaa3f4 get rid of intltool (in progress...)
svn: r20522
2012-10-04 18:35:40 +00:00
Benny Malengier
e97bf17488 update_po: do po correct for glade files
svn: r20511
2012-10-03 15:55:36 +00:00
Benny Malengier
c754eb02f2 remove tmp file used for translation
svn: r20508
2012-10-03 15:38:42 +00:00
Benny Malengier
c87343eb61 update_po: automatically determine py and glade files to translate
svn: r20507
2012-10-03 15:37:44 +00:00
Benny Malengier
54f78b6358 update_po allow comment in the list of files to translate
svn: r20502
2012-10-03 12:33:32 +00:00
Benny Malengier
2411f22310 update_po, correctly see pt_PT type of languages
svn: r20501
2012-10-03 12:23:31 +00:00
Benny Malengier
6fc289a956 Update po generating file, make sure py.in is present
svn: r20500
2012-10-03 12:16:06 +00:00
Jérôme Rapinat
adac46441d try to support python 2.7 for iteration with ElementTree
svn: r20477
2012-10-01 09:51:47 +00:00
Jérôme Rapinat
bc06218642 update alternate script for handling template and translations (from 'src' to 'gramps')
svn: r20476
2012-10-01 09:30:35 +00:00
Jérôme Rapinat
da29ed5238 5621: cleanup
svn: r19170
2012-03-29 09:19:54 +00:00