Blender Git Commit Log
Git Commits -> Revision 874c96a
Revision 874c96a by Bastien Montagne (master) October 20, 2011, 20:38 (GMT) |
Cleaning i18n code. Previous state: Right now, there are "memories" of the "old" (less than a month!) translation way: * A few remaining calls to BLF_gettext() (only UI_translate_do_iface and UI_translate_do_tooltip should be used). * The _() macro still also calls BLF_gettext()! New state: Here are the changes made by the patch: * Removing the no more needed _() macro. * Removing most N_() and _() calls, only keeping the few needed ones (i.e. strings that are in no other way findable by xgettext and/or update_msg script). * Defining in UI_interface.h IFACE_() and TIP_() macros (resp. for UI_translate_do_iface and UI_translate_do_tooltip). * Replacing all calls to BLF_gettext by relevant IFACE_ or TIP_ one. * Replacing all calls to UI_translate_do_iface by IFACE_. * Replacing all calls to UI_translate_do_tooltip by TIP_. All this somewhat clarifies and simplifies the code. On the bf-translations scripts side, this only implies adding IFACE_ and TIP_ as detection markers for xgettext. It also allows to reduce POTFILES.in quite notably (only 20 files remaining in it). Please also have a look at those pages: * Coder POV: http://wiki.blender.org/index.php/Dev:2.5/Source/Interface/Internationalization * Translator POV: http://wiki.blender.org/index.php/Dev:2.5/Doc/How_to/Translate_Blender |
Commit Details:
Full Hash: 874c96a2b9b39a2518793bebaf747e955b43d435
SVN Revision: 41159
Parent Commit: aba1491
Lines Changed: +244, -269
25 Modified Paths:
/source/blender/blenfont/BLF_translation.h (+2, -1) (Diff)
/source/blender/editors/armature/poselib.c (+3, -3) (Diff)
/source/blender/editors/include/UI_interface.h (+4, -0) (Diff)
/source/blender/editors/interface/interface.c (+1, -4) (Diff)
/source/blender/editors/interface/interface_layout.c (+3, -11) (Diff)
/source/blender/editors/interface/interface_panel.c (+1, -5) (Diff)
/source/blender/editors/interface/interface_regions.c (+9, -11) (Diff)
/source/blender/editors/interface/interface_templates.c (+68, -68) (Diff)
/source/blender/editors/interface/interface_utils.c (+1, -1) (Diff)
/source/blender/editors/screen/area.c (+2, -2) (Diff)
/source/blender/editors/space_buttons/buttons_header.c (+1, -1) (Diff)
/source/blender/editors/space_file/file_draw.c (+11, -11) (Diff)
/source/blender/editors/space_file/file_panels.c (+1, -1) (Diff)
/source/blender/editors/space_graph/graph_buttons.c (+2, -2) (Diff)
/source/blender/editors/space_info/space_info.c (+2, -2) (Diff)
/source/blender/editors/space_nla/nla_buttons.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_header.c (+27, -29) (Diff)
/source/blender/editors/space_view3d/view3d_header.c (+8, -16) (Diff)
/source/blender/editors/space_view3d/view3d_toolbar.c (+1, -1) (Diff)
/source/blender/editors/transform/transform_orientations.c (+4, -7) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+27, -27) (Diff)
/source/blender/python/intern/bpy_rna.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+5, -5) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+55, -55) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+3, -3) (Diff)
/source/blender/editors/armature/poselib.c (+3, -3) (Diff)
/source/blender/editors/include/UI_interface.h (+4, -0) (Diff)
/source/blender/editors/interface/interface.c (+1, -4) (Diff)
/source/blender/editors/interface/interface_layout.c (+3, -11) (Diff)
/source/blender/editors/interface/interface_panel.c (+1, -5) (Diff)
/source/blender/editors/interface/interface_regions.c (+9, -11) (Diff)
/source/blender/editors/interface/interface_templates.c (+68, -68) (Diff)
/source/blender/editors/interface/interface_utils.c (+1, -1) (Diff)
/source/blender/editors/screen/area.c (+2, -2) (Diff)
/source/blender/editors/space_buttons/buttons_header.c (+1, -1) (Diff)
/source/blender/editors/space_file/file_draw.c (+11, -11) (Diff)
/source/blender/editors/space_file/file_panels.c (+1, -1) (Diff)
/source/blender/editors/space_graph/graph_buttons.c (+2, -2) (Diff)
/source/blender/editors/space_info/space_info.c (+2, -2) (Diff)
/source/blender/editors/space_nla/nla_buttons.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_header.c (+27, -29) (Diff)
/source/blender/editors/space_view3d/view3d_header.c (+8, -16) (Diff)
/source/blender/editors/space_view3d/view3d_toolbar.c (+1, -1) (Diff)
/source/blender/editors/transform/transform_orientations.c (+4, -7) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+27, -27) (Diff)
/source/blender/python/intern/bpy_rna.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+5, -5) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+55, -55) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+3, -3) (Diff)