Commit Graph

12 Commits

Author SHA1 Message Date
Campbell Barton
5da894b1fe misc edits
- cmake/windows was installing locale & font when internationalization was disabled, twice when enabled.
- file selector was using the string size-1, where this isn't needed since string buttons expected this value to be the sizeof(), accounting for '\0'.
- use const char for extension checking funcs.
- minor pep8 edits
2011-10-15 05:01:47 +00:00
Bastien Montagne
9d70e050a2 Fix for update_msg.py, wasn’t filtering out prop names identical to prop identifiers (e.g. "float_array"...). Also updated french po & mo. 2011-10-09 12:41:42 +00:00
Bastien Montagne
cc43a5bbde Added Macro and KeyingSetInfo to blacklisted msg classes. Also updated french po & mo. 2011-10-07 08:57:08 +00:00
Campbell Barton
f7737153e6 filter RNA classes for translation (removes over 1300 lines from messages.txt)
- omit operators tagged as INTERNAL
- omit classes  for internal use: Event, Context, Property, Function, Window.
2011-10-05 03:39:22 +00:00
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