Commit Graph

74 Commits

Author SHA1 Message Date
Nick Hall
2319e04d95 Add header to XML fragments file
A header containing a charset is required by xgettext.
2023-07-26 17:32:16 +01:00
Nick Hall
d88bb36ba7 Fix for renamed gramps.xml.in file
The file was renamed as part of PR #1143.
2022-02-14 17:44:19 +00:00
André Apitzsch
11f268b981 Use reverse-DNS scheme for appdata + desktop 2022-02-13 18:17:29 +00:00
Nick Hall
c9e032795b Only extract comments with the "Translator" tag
Previously all comments before a translated string were extracted.
This change prevents translators from seeing unnecessary or misleading
comments.
2021-06-01 14:10:58 +01:00
Nick Hall
cc7ca7ff99 Support msgctxt in po files instead of a vertical bar in the msgid
For developers, an extra optional context parameter has been
added to the gettext functions. For example, _('point size|pt')
should now be written as _('pt', 'point size').

For translators this would appear in the message catalog as:

msgctxt "point size"
msgid "pt"
msgstr "pt"

Implements #3416.
2020-09-21 22:03:43 +01:00
Nick Hall
60f1866292 Replace intltool with gettext tools
The build now requires gettext v0.19.7 or above.

Removed obsolete files:
  * gramps.applications
  * gramps.keys
  * gramps.mime

Created ITS rules for holidays.xml and tips.xml files.

Included ITS files for shared-mime-info from a gettext v0.20.2
installation.
2020-09-02 21:22:04 +01:00
prculley
1f778e8ce1 Fix Language updoate_po.py to scan for XML fragments in Python files
Fixes #11151
2019-06-15 17:32:29 +01:00
prculley
7131eec356 Fix update_po.py to run on Windows 2019-01-01 11:33:52 -06:00
romjerome
03c26cb83c Limit creation of extra files 2017-03-04 14:55:11 +01:00
romjerome
69456b34e5 9328: enable debug flag on 'xgettext' for python files 2016-10-23 15:52:23 +02:00
Elliott Sales de Andrade
28b722b92d Clean up trailing whitespace. 2016-05-18 20:31:49 -04:00
romjerome
82f60dcb2b Update template for appdata stuff 2016-05-16 12:09:30 +02:00
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