Commit Graph

51 Commits

Author SHA1 Message Date
Jérôme Rapinat
a9cc79d9fd sort translations output by file location for easier diff 2014-04-17 16:34:20 +02:00
Jérôme Rapinat
98834658b3 support comments 2014-04-12 17:50:53 +02:00
Jérôme Rapinat
df8ec14bcf either fix apostrophe into 'data/tips.xml.in' to avoid message like 'byte 0xd0 in position 7', or remove unicode_literals from po/update_po.py
svn: r23304
2013-10-11 08:31:40 +00:00
Jérôme Rapinat
8149b4fe72 7110: alternate possessive form, which will limit issues on parsing
svn: r23303
2013-10-11 08:26:07 +00:00
Jérôme Rapinat
13eeb38282 7110: Add AppData file
svn: r23259
2013-10-07 09:38:29 +00:00
Jérôme Rapinat
8f43a5ae44 7110: Add AppData file
svn: r23257
2013-10-07 09:12:16 +00:00
Jérôme Rapinat
fc8f750338 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: r22202
2013-05-08 09:09:53 +00:00
Paul Franklin
454180dcec 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: r22200
2013-05-07 18:59:15 +00:00
Paul Franklin
f31c22cdaa "_ngettext" is no longer used as a gramps translation keyword
svn: r22198
2013-05-07 18:12:23 +00:00
Paul Franklin
757a6a721b add new keywords to po/genpot.sh, comment both scripts, and add "Id" lines
svn: r22182
2013-05-05 19:40:56 +00:00
Jérôme Rapinat
1fb9773e16 6595: add new keywords for xgettext (textual reports and L10N/I18N)
svn: r22166
2013-05-04 17:26:52 +00:00
Jérôme Rapinat
8afb1e4c29 6595: create a new template every time we are extracting strings from python modules
svn: r22165
2013-05-04 16:10:26 +00:00
John Ralls
df1157e9d4 [r21180]Fix platform detection on OSX
'darwin' is returned by sys.platform, not os.name.

svn: r21407
2013-02-24 00:54:18 +00:00
Jérôme Rapinat
d60bbe812b new location for tips.xml, typo on path
svn: r21004
2013-01-05 14:36:49 +00:00
Jérôme Rapinat
eee79d223b new location for tips.xml
svn: r21003
2013-01-05 14:24:51 +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
Jérôme Rapinat
ac5875c38f 5621: alternative to use of 'intltool-extract'
svn: r19168
2012-03-29 06:29:55 +00:00
Jérôme Rapinat
c0acdd678d 5621: add a comment about getiterator if python version > 2.6
svn: r19152
2012-03-25 15:24:14 +00:00
Jérôme Rapinat
1722a36829 5621: minor change
svn: r19104
2012-03-20 11:13:39 +00:00
Jérôme Rapinat
30a25b7b7f 5621: add '--skip-fuzzy' flag with check_po; try to get correct path for win32 (Peter contribution)
svn: r19098
2012-03-19 18:46:50 +00:00
Jérôme Rapinat
8161e7a5ff 5621: wrong name for msgattrib under Windows OS
svn: r19097
2012-03-19 16:08:47 +00:00
Jérôme Rapinat
ab781b635f 5621: quick XML parsing and tool displays more informations
svn: r19093
2012-03-19 16:00:19 +00:00
Jérôme Rapinat
516f94fdd8 5621: os.unlink sounds better than 'rm' command
svn: r19074
2012-03-17 06:00:16 +00:00
Jérôme Rapinat
8ced6ca00a 5621: cleanup on 'update_po.py'
svn: r19072
2012-03-16 18:35:35 +00:00
Jérôme Rapinat
c094b007e0 5621: start an alternative tool for translation stuff
svn: r19067
2012-03-15 17:11:31 +00:00
Jérôme Rapinat
6645dee5dd 5621: improve update_po.py
svn: r19062
2012-03-14 14:10:21 +00:00
Jérôme Rapinat
17b27c8f2d start to test Rob's command for updating without Makefile and specific class for distutils
svn: r19061
2012-03-14 11:28:40 +00:00