Campbell Barton
2085a42e52
pep8 cleanup
2013-06-27 03:05:19 +00:00
Bastien Montagne
5bd5e69e98
Add back nl_NL to enabled tranlations, as we now have a (very limited) start of it.
2013-06-17 19:49:06 +00:00
Bastien Montagne
2091eca962
Usual UI messages style edits...
2013-06-17 10:01:35 +00:00
Bastien Montagne
b0b634adeb
Do not report formatting mismatch between org and translation when message is fuzzy (but "fix" it anyway if asked so).
2013-04-29 18:22:22 +00:00
Bastien Montagne
5c5ecc3465
Usual UI messages fixes...
2013-04-29 14:09:19 +00:00
Bastien Montagne
fba67abf7a
Restore usage of difflib's quick_ratio()... Don't actually know what happens here, my tests with timeit showed it much slower than ratio(), but real-life says the contrary...
2013-04-19 16:23:02 +00:00
Bastien Montagne
01ffbab8f5
Some i18n tools fixes (I'm ashamed...), and merge func for I18nMessages objects.
2013-04-18 15:26:22 +00:00
Bastien Montagne
4587ecd45b
More i18n tools tweaks:
...
* Remove difflib's quick_ratio() call, from quick tests looks it is four times slower than ratio(), and yet it gives the same results...
* Moved code to find all po's in a dir into its own func (will be used by i18n addon tools too).
2013-04-18 11:09:25 +00:00
Bastien Montagne
0e4b092c2d
More fixes for addon i18n messages management.
2013-04-12 12:19:50 +00:00
Bastien Montagne
6382f6bedd
Various edits preparing addons' translations tools (not everything yet functionnal/tested, though).
...
Also workaround a nasty bug, where unregistered py classes remain listed in relevant __subclasses__() calls, which would lead to crash with python addons i18n tools (main translation was not affected, as messages extracting tools are executed in a brand new "factory startup" Blender ;) ).
2013-04-09 08:56:35 +00:00
Bastien Montagne
4a66bf8f4a
Usual typo fixes... ;)
2013-04-07 10:21:22 +00:00
Bastien Montagne
932820499a
Usual typo fixing...
2013-04-02 07:27:39 +00:00
Campbell Barton
8e3d590b76
code cleanup: python/pep8 and double-promotion warnings.
2013-03-28 19:33:14 +00:00
Bastien Montagne
c54fba6a11
I18n: fix/enhance how predefined contexts are handled in py code. Now they should be specified by an attribute with the same name as the one in bpy.app.translations.contexts named tuple (i18n_contexts.default, .id_windowmanager, etc.).
...
This way, i18n message extracting code is now able to get the right context!
2013-03-28 15:03:47 +00:00
Bastien Montagne
b4bd43e022
I18n: various "new data translation" fixes...
2013-03-26 14:33:53 +00:00
Bastien Montagne
4cb9414b39
I18n: use id_windowmanager context for keymap idnames. Solves some issues with those names (notably "Clip" one, and "Screen" too) in some translations. Also move "Key" as "Keyboard" (opposed to "Keyframe") to same context.
2013-03-25 11:35:42 +00:00
Bastien Montagne
72a3714695
Update to i18n tools (new [CTX_]DATA_ macros, and some more exceptions to spell check...).
2013-03-25 08:30:38 +00:00
Bastien Montagne
e45da6f40a
Small changes/additions to i18n tools.
2013-03-19 15:49:53 +00:00
Bastien Montagne
4857d62ac6
More i18n tools cleanup. Also do not import nl in trunk currently (void translation)!
2013-03-19 10:11:41 +00:00
Bastien Montagne
fbbbb90af3
Some renaming/cleanup in i18n tools.
2013-03-19 08:33:24 +00:00
Bastien Montagne
66c7b54a88
Usual minor UI messages fixes.
2013-03-18 18:43:22 +00:00
Bastien Montagne
f09f2d1c31
Fix more UI i18n issues (reported by Leon Cheung).
2013-03-11 15:01:03 +00:00
Bastien Montagne
4daef64986
Fix more UI i18n issues (reported by Leon Cheung and Lockal).
...
We have a glicth with colormanagement's spaces descriptions, though, looks like they are clamped at 64 chars (see raw space), will see that later, if it’s solvable.
2013-03-11 09:06:49 +00:00
Bastien Montagne
6da449b86c
More UI message i18n fixes and improvements...
...
Fix for keyingsets tips, and make them (and a few others) findable by i18n messages extracting code (for some reasons, their bl_rna.description are void???).
2013-03-10 17:42:08 +00:00
Bastien Montagne
874b692e80
More UI message i18n fixes and improvements...
...
Rendering messages are now translatable.
2013-03-10 16:55:01 +00:00
Bastien Montagne
7a94ad9408
More UI message i18n fixes and improvements...
2013-03-10 16:14:29 +00:00
Bastien Montagne
462e4bee87
More tweaks (gaining about ten seconds for each po in update branches process!).
2013-03-01 14:28:38 +00:00
Bastien Montagne
1039135965
More UI messages fixes...
2013-02-28 15:31:20 +00:00
Bastien Montagne
4238d6d758
Various small enhancements/fixes.
...
Most notable difference from now on will be that all py is handled from current blender's resource dirs, no more from source dir. Better for consistency, and avoid e.g. cycles' addon to be checked twice...
2013-02-27 16:24:20 +00:00
Bastien Montagne
095062f0c5
Tame that stupid py code not to eat existing fuzzies in po’s when updating from POT file!
2013-02-25 16:06:59 +00:00
Bastien Montagne
b1543f07bf
Another bunch of UI translation fixes, thanks to Leon Cheung, Gabriel Gazzán and S. Lockal for spotting them!
2013-02-24 15:40:28 +00:00
Bastien Montagne
2c348d003e
Big i18n tools update, I/II.
...
Notes:
* Everything is still a bit raw and sometimes hackish.
* Not every feature implemented yet.
* A bunch of cleanup is still needed.
* Doc needs to be updated too!
2013-02-24 08:50:55 +00:00
Bastien Montagne
de26f59220
Add CTX_wm_operator_poll_msg_set as auto-detected func for translations.
2013-02-19 15:47:30 +00:00
Bastien Montagne
3de87ebf64
Minor fix...
2013-02-17 15:04:56 +00:00
Bastien Montagne
7cdff04f9f
Fixes for BMO_error_raise extraction regex, and add hindi to "active" translations.
...
Also enhanced the ugly py ast parsing code, so that it now can handle (up to some extent) "name" function nodes, and add bpy.app.translations.pgettext func familly to extracted ones...
This ast py parsing becomes more and more ugly, should probably try to refactor it a bit. :/
2013-02-17 14:00:40 +00:00
Bastien Montagne
207dca55f4
And more UI messages issues fixing... Thanks again to Gabriel Gazzán and Leon Cheung!
2013-02-15 18:19:20 +00:00
Bastien Montagne
5078174f07
New Hindi translation...
2013-02-14 14:41:04 +00:00
Bastien Montagne
f6624aaacd
Gah, forgot some ugly print...
2013-02-13 21:56:12 +00:00
Bastien Montagne
f2d9fc7e25
Update to how similar messages matching is handled when updating po files from pot one (gain something like 20% in heavy update situations, and save a nice bunch of memory!).
2013-02-12 17:32:54 +00:00
Bastien Montagne
08cf8865aa
And we now have a valid korean translation!
2013-02-12 14:36:08 +00:00
Campbell Barton
a643d28446
Update translation extractor so ternary expressions are not merged.
...
eg: ("A" if test else "B")
2013-02-10 07:11:32 +00:00
Bastien Montagne
a4a1c66725
Better to return default op context when we can't find a given operator (e.g. console toggling under linux does not exists).
2013-02-09 18:47:40 +00:00
Bastien Montagne
e14b21dd6d
Updated py ui message extraction, to find out contexts as much as possible...
2013-02-09 18:32:00 +00:00
Bastien Montagne
97a5cd92bc
Some optimization (their is much more possible here, but it will have to wait for complete refactor I’m working on currently).
2013-01-29 08:34:26 +00:00
Bastien Montagne
a2e55171fe
Bunch of fixes for UI messages.
...
Also generate rigid body constraint types in py bullet code from RNA enum values (simpler than having to sync the code when something is changed here!).
Side note: RNA API about icons still needs to expose icons for enum values, and conversion funcs between icon_name and icon_value!
2013-01-27 18:14:24 +00:00
Bastien Montagne
bcdbc57994
Usual minor UI messages fixes...
2013-01-21 16:25:25 +00:00
Campbell Barton
97d62f0183
style cleanup
2013-01-15 23:15:32 +00:00
Bastien Montagne
819a75113e
Some fixes:
...
* handle nicely multiple empty lines in po files (still have to figure out why po writer sometime output two lines instead of one!)
* fix rtl processing!
2013-01-14 21:41:21 +00:00
Bastien Montagne
884d7caa24
Minor updates:
...
*Made branches' po update multi-process!
*0.8 looks a bit too much a "similarity cutoff" value for messages, changed to 0.75.
2013-01-13 17:43:04 +00:00
Bastien Montagne
cdb5e557b0
Grumph, going quicker than the music! :P
2013-01-13 14:36:50 +00:00