|
This patch aims to add translation of Blender directly from the User Interface.
WARNING: Even though working, it’s currently still work in progress.
To do that, it splits the work in two:
* A small C operator finds the active button, get from it a bunch of strings (button/rna/enumitem labels and tips, RNA path, RNA context), and gives them to a py op defined in an addon.
* A py addon (current diff: http://www.pasteall.org/33552/diff ) reads the right po file, find in it the matching message ids, and popups an UI to edit the translations.
Current things I’m not sure about:
* It adds a new userpref path to point to /branches i18n dir (and may need another one to mo building tool in future :/ ).
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+436 lines, -17 lines) |
Patch |
|
|
release/scripts/startup/bl_ui/space_userpref.py
|
View
|
1
2
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/blenfont/BLF_translation.h
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/blenfont/intern/blf_lang.c
|
View
|
1
2
|
3 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
|
|
source/blender/editors/include/UI_interface.h
|
View
|
1
2
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/editors/interface/interface.c
|
View
|
1
2
|
1 chunk |
+128 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/editors/interface/interface_handlers.c
|
View
|
1
2
|
2 chunks |
+15 lines, -6 lines |
0 comments
|
Download
|
|
|
source/blender/editors/interface/interface_ops.c
|
View
|
1
2
|
4 chunks |
+161 lines, -4 lines |
0 comments
|
Download
|
|
|
source/blender/editors/interface/interface_regions.c
|
View
|
1
2
|
8 chunks |
+68 lines, -6 lines |
0 comments
|
Download
|
|
|
source/blender/makesdna/DNA_userdef_types.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
|
source/blender/makesrna/RNA_access.h
|
View
|
1
2
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/makesrna/intern/rna_access.c
|
View
|
1
2
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
|
|
source/blender/makesrna/intern/rna_userdef.c
|
View
|
1
2
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 6
|