Commit Graph

8 Commits

Author SHA1 Message Date
Sergey Sharybin
a92cfcd74e i18n: fixed mistage in message generator which lead to some messages disappeared.
Also, cleaned up po files from unused messages.
2011-09-30 09:25:53 +00:00
Campbell Barton
9a0776c54a improvements to translation message generator
- for rna stringsinclude the path as comment, eg:
  #~ bpy.types.VertexGroup.name

- skip strings like %dx%d or -X.

- for strings extracted from python scripts include file:line reference as with C files.

- have messages in order they appear in the file, files and classes sorted so it reads more logically.

- extract these comments from the messages.txt file into the pot file.
2011-09-29 17:15:58 +00:00
Dalai Felinto
9701a58fec making PO/POT/... update scripts py3.2 compatible + making it almost win compatible
Adding from codecs import open + the encoding in update_pot.py so it works for python 3.2.
Now it should be easier to replace the executable folders in the first lines of the file.
It now also works if you are in the same folder as the .po files (i.e. os.path.dirname(__FILE__) is empty)

It's still not working for me on Mingw because I need gettext 1.8 and so far I found only the 1.7
(in 1.7 msgmerge --lang is not supported)
2011-09-29 06:34:58 +00:00
Sergey Sharybin
b0e7dc3545 Fix for messages.txt generator -- KM_HIERARCHY was moved to other module 2011-09-27 09:43:35 +00:00
Campbell Barton
9d68dc0668 update_msg.py now extracts strings from UI files, eg:
layout.prop("some_prop", text="Some Other Name")

So the text argument can be listed for translation.
2011-09-21 13:16:42 +00:00
Campbell Barton
39e0cbe883 updates to rna message extractor, write utf8 files and use a set rather than a dict 2011-09-21 12:23:23 +00:00
Guillermo S. Romero
68367e8c01 SVN maintenance. 2011-09-20 21:22:19 +00:00
Campbell Barton
0af633a36c move message.txt generator out of wm.py (which was loaded with blender always), into it own py script which runs on its own, also added this to 'make translations' target. 2011-09-20 17:44:45 +00:00