Blender Git Loki

Git Commits -> Revision 0eda51f

Revision 0eda51f by Sergey Sharybin (master)
September 15, 2011, 13:20 (GMT)
Fixing issues with i18n stuff:

- Make gettext stuff draw-time. so switching between languages
can happens without restart now.
- Added option to translate visible interface (menus, buttons, labels)
and tooltips. Now it's possible to have english UI and localized tooltips.
- Clean-up sources, do not use gettext stuff for things which can be
collected with RNA.
- Fix issues with windows 64bit and ru_RU locale on my desktop
(it was codepage issue).
- Added operator "Get Messages" which generates new text block with
with all strings collected from RNA.
- Changed script for updating blender.pot so now it appends
messages collected from rna to automatically gathered messages.
To update .pot you have to re-generate messages.txt using "Get Messages"
operator and then run update_pot script.
- Clean up old translation stuff which wasn't used and most probably
wouldn't be used.
- Return back "International Fonts" option, so if it's disabled, no
gettext lookups happens on draw.
- Merged read_homefile function back. No need in splitting it.

TODO:
- Custom fonts and font size.
Current font isn't nice at least for russian locale, it's
difficult to read it.
- Put references to messages.txt so gettext can merge translation when
name/description of some property changes.

Commit Details:

Full Hash: 0eda51f2eabe24016efdc8f07825f1ba667cac33
SVN Revision: 40230
Parent Commit: 30293dc
Lines Changed: +11166, -6009

1 Added Path:

/po/messages.txt (+5337, -0) (View)

235 Modified Paths:

/po/POTFILES.in (+0, -0) (Diff)
/po/update_mo.py (+1, -1) (Diff)
/po/update_po.py (+1, -1) (Diff)
/po/update_pot.py (+48, -1) (Diff)
/release/scripts/modules/rna_prop_ui.py (+3, -3) (Diff)
/release/scripts/startup/bl_operators/animsys_update.py (+0, -2) (Diff)
/release/scripts/startup/bl_operators/object.py (+36, -35) (Diff)
/release/scripts/startup/bl_operators/object_align.py (+9, -8) (Diff)
/release/scripts/startup/bl_operators/object_quick_effects.py (+10, -9) (Diff)
/release/scripts/startup/bl_operators/object_randomize_transform.py (+21, -21) (Diff)
/release/scripts/startup/bl_operators/presets.py (+16, -22) (Diff)
/release/scripts/startup/bl_operators/screen_play_rendered_anim.py (+1, -3) (Diff)
/release/scripts/startup/bl_operators/sequencer.py (+4, -6) (Diff)
/release/scripts/startup/bl_operators/wm.py (+125, -81) (Diff)
/release/scripts/startup/bl_ui/properties_animviz.py (+2, -2) (Diff)
/release/scripts/startup/bl_ui/properties_data_armature.py (+7, -7) (Diff)
/release/scripts/startup/bl_ui/properties_data_bone.py (+6, -6) (Diff)
/release/scripts/startup/bl_ui/properties_data_camera.py (+2, -2) (Diff)
/release/scripts/startup/bl_ui/properties_data_curve.py (+7, -7) (Diff)
/release/scripts/startup/bl_ui/properties_data_empty.py (+1, -1) (Diff)
/release/scripts/startup/bl_ui/properties_data_lamp.py (+7, -7) (Diff)
/release/scripts/startup/bl_ui/properties_data_lattice.py (+2, -2) (Diff)
/release/scripts/startup/bl_ui/properties_data_mesh.py (+8, -8) (Diff)
/release/scripts/startup/bl_ui/properties_data_metaball.py (+3, -3) (Diff)
/release/scripts/startup/bl_ui/properties_data_modifier.py (+1, -1) (Diff)
/release/scripts/startup/bl_ui/properties_game.py (+11, -11) (Diff)
/release/scripts/startup/bl_ui/properties_material.py (+23, -23) (Diff)
/release/scripts/startup/bl_ui/properties_object.py (+8, -8) (Diff)
/release/scripts/startup/bl_ui/properties_object_constraint.py (+2, -2) (Diff)
/release/scripts/startup/bl_ui/properties_particle.py (+13, -13) (Diff)
/release/scripts/startup/bl_ui/properties_physics_cloth.py (+6, -6) (Diff)
/release/scripts/startup/bl_ui/properties_physics_field.py (+2, -2) (Diff)
/release/scripts/startup/bl_ui/properties_physics_fluid.py (+4, -4) (Diff)
/release/scripts/startup/bl_ui/properties_physics_smoke.py (+5, -5) (Diff)
/release/scripts/startup/bl_ui/properties_physics_softbody.py (+7, -7) (Diff)
/release/scripts/startup/bl_ui/properties_render.py (+18, -18) (Diff)
/release/scripts/startup/bl_ui/properties_scene.py (+12, -12) (Diff)
/release/scripts/startup/bl_ui/properties_texture.py (+23, -23) (Diff)
/release/scripts/startup/bl_ui/properties_world.py (+7, -7) (Diff)
/release/scripts/startup/bl_ui/space_console.py (+7, -7) (Diff)
/release/scripts/startup/bl_ui/space_dopesheet.py (+8, -8) (Diff)
/release/scripts/startup/bl_ui/space_graph.py (+6, -6) (Diff)
/release/scripts/startup/bl_ui/space_image.py (+23, -23) (Diff)
/release/scripts/startup/bl_ui/space_info.py (+15, -15) (Diff)
/release/scripts/startup/bl_ui/space_logic.py (+3, -3) (Diff)
/release/scripts/startup/bl_ui/space_nla.py (+5, -5) (Diff)
/release/scripts/startup/bl_ui/space_node.py (+4, -4) (Diff)
/release/scripts/startup/bl_ui/space_outliner.py (+3, -4) (Diff)
/release/scripts/startup/bl_ui/space_sequencer.py (+16, -16) (Diff)
/release/scripts/startup/bl_ui/space_text.py (+10, -10) (Diff)
/release/scripts/startup/bl_ui/space_time.py (+5, -5) (Diff)
/release/scripts/startup/bl_ui/space_userpref.py (+39, -45) (Diff)
/release/scripts/startup/bl_ui/space_userpref_keymap.py (+27, -35) (Diff)
/release/scripts/startup/bl_ui/space_view3d.py (+85, -85) (Diff)
/release/scripts/startup/bl_ui/space_view3d_toolbar.py (+1, -1) (Diff)
/source/blender/blenfont/intern/blf.c (+1, -1) (Diff)
/source/blender/blenfont/intern/blf_lang.c (+44, -22) (Diff)
/source/blender/blenkernel/intern/speaker.c (+0, -0) (Diff)
/source/blender/editors/animation/anim_channels_edit.c (+56, -58) (Diff)
/source/blender/editors/animation/anim_markers.c (+26, -28) (Diff)
/source/blender/editors/animation/anim_ops.c (+13, -14) (Diff)
/source/blender/editors/animation/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/animation/drivers.c (+2, -4) (Diff)
/source/blender/editors/animation/keyframing.c (+19, -21) (Diff)
/source/blender/editors/animation/keyingsets.c (+13, -15) (Diff)
/source/blender/editors/animation/SConscript (+1, -1) (Diff)
/source/blender/editors/armature/armature_ops.c (+3, -4) (Diff)
/source/blender/editors/armature/editarmature.c (+101, -103) (Diff)
/source/blender/editors/armature/editarmature_sketch.c (+11, -13) (Diff)
/source/blender/editors/armature/poselib.c (+21, -21) (Diff)
/source/blender/editors/armature/poseobject.c (+65, -67) (Diff)
/source/blender/editors/armature/poseSlide.c (+19, -21) (Diff)
/source/blender/editors/curve/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/curve/editcurve.c (+100, -102) (Diff)
/source/blender/editors/curve/editfont.c (+75, -77) (Diff)
/source/blender/editors/curve/SConscript (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_paint.c (+7, -9) (Diff)
/source/blender/editors/interface/interface.c (+7, -25) (Diff)
/source/blender/editors/interface/interface_intern.h (+0, -4) (Diff)
/source/blender/editors/interface/interface_layout.c (+22, -8) (Diff)
/source/blender/editors/interface/interface_ops.c (+8, -10) (Diff)
/source/blender/editors/interface/interface_panel.c (+9, -2) (Diff)
/source/blender/editors/interface/interface_regions.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_widgets.c (+0, -5) (Diff)
/source/blender/editors/interface/view2d_ops.c (+45, -47) (Diff)
/source/blender/editors/mesh/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/mesh/editmesh.c (+6, -8) (Diff)
/source/blender/editors/mesh/editmesh_add.c (+48, -50) (Diff)
/source/blender/editors/mesh/editmesh_loop.c (+8, -10) (Diff)
/source/blender/editors/mesh/editmesh_mods.c (+96, -98) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+121, -124) (Diff)
/source/blender/editors/mesh/loopcut.c (+6, -8) (Diff)
/source/blender/editors/mesh/mesh_data.c (+16, -18) (Diff)
/source/blender/editors/mesh/mesh_ops.c (+14, -16) (Diff)
/source/blender/editors/mesh/SConscript (+1, -1) (Diff)
/source/blender/editors/metaball/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/metaball/mball_edit.c (+17, -19) (Diff)
/source/blender/editors/metaball/SConscript (+1, -1) (Diff)
/source/blender/editors/object/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/object/object_add.c (+64, -66) (Diff)
/source/blender/editors/object/object_constraint.c (+43, -45) (Diff)
/source/blender/editors/object/object_edit.c (+42, -44) (Diff)
/source/blender/editors/object/object_group.c (+15, -17) (Diff)
/source/blender/editors/object/object_lattice.c (+4, -6) (Diff)
/source/blender/editors/object/object_modifier.c (+34, -36) (Diff)
/source/blender/editors/object/object_ops.c (+2, -4) (Diff)
/source/blender/editors/object/object_relations.c (+76, -78) (Diff)
/source/blender/editors/object/object_select.c (+52, -54) (Diff)
/source/blender/editors/object/object_shapekey.c (+12, -14) (Diff)
/source/blender/editors/object/object_transform.c (+24, -26) (Diff)
/source/blender/editors/object/object_vgroup.c (+42, -44) (Diff)
/source/blender/editors/object/SConscript (+1, -1) (Diff)
/source/blender/editors/physics/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/physics/particle_edit.c (+26, -28) (Diff)
/source/blender/editors/physics/particle_object.c (+28, -30) (Diff)
/source/blender/editors/physics/physics_pointcache.c (+6, -8) (Diff)
/source/blender/editors/physics/SConscript (+1, -1) (Diff)
/source/blender/editors/render/render_internal.c (+6, -8) (Diff)
/source/blender/editors/render/render_opengl.c (+5, -7) (Diff)
/source/blender/editors/render/render_shading.c (+41, -43) (Diff)
/source/blender/editors/render/render_view.c (+4, -6) (Diff)
/source/blender/editors/render/SConscript (+1, -1) (Diff)
/source/blender/editors/screen/screendump.c (+5, -7) (Diff)
/source/blender/editors/screen/screen_ops.c (+85, -87) (Diff)
/source/blender/editors/sculpt_paint/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_image.c (+15, -17) (Diff)
/source/blender/editors/sculpt_paint/paint_ops.c (+19, -21) (Diff)
/source/blender/editors/sculpt_paint/paint_utils.c (+24, -26) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex.c (+14, -16) (Diff)
/source/blender/editors/sculpt_paint/SConscript (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+12, -14) (Diff)
/source/blender/editors/sound/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/sound/SConscript (+1, -1) (Diff)
/source/blender/editors/sound/sound_ops.c (+12, -14) (Diff)
/source/blender/editors/space_action/action_edit.c (+63, -65) (Diff)
/source/blender/editors/space_action/action_ops.c (+1, -3) (Diff)
/source/blender/editors/space_action/action_select.c (+30, -32) (Diff)
/source/blender/editors/space_action/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/space_action/SConscript (+1, -1) (Diff)
/source/blender/editors/space_buttons/buttons_header.c (+15, -15) (Diff)
/source/blender/editors/space_buttons/buttons_ops.c (+6, -8) (Diff)
/source/blender/editors/space_console/console_ops.c (+31, -33) (Diff)
/source/blender/editors/space_file/file_ops.c (+48, -50) (Diff)
/source/blender/editors/space_file/file_panels.c (+4, -4) (Diff)
/source/blender/editors/space_graph/graph_buttons.c (+2, -2) (Diff)
/source/blender/editors/space_graph/graph_edit.c (+90, -92) (Diff)
/source/blender/editors/space_graph/graph_ops.c (+7, -9) (Diff)
/source/blender/editors/space_graph/graph_select.c (+32, -34) (Diff)
/source/blender/editors/space_image/image_buttons.c (+4, -6) (Diff)
/source/blender/editors/space_image/image_ops.c (+56, -58) (Diff)
/source/blender/editors/space_info/info_ops.c (+5, -7) (Diff)
/source/blender/editors/space_info/info_report.c (+1, -3) (Diff)
/source/blender/editors/space_info/space_info.c (+1, -1) (Diff)
/source/blender/editors/space_logic/logic_buttons.c (+5, -7) (Diff)
/source/blender/editors/space_nla/nla_buttons.c (+2, -2) (Diff)
/source/blender/editors/space_nla/nla_channels.c (+8, -10) (Diff)
/source/blender/editors/space_nla/nla_edit.c (+52, -54) (Diff)
/source/blender/editors/space_nla/nla_select.c (+16, -18) (Diff)
/source/blender/editors/space_node/node_buttons.c (+2, -4) (Diff)
/source/blender/editors/space_node/node_edit.c (+60, -62) (Diff)
/source/blender/editors/space_node/node_header.c (+1, -1) (Diff)
/source/blender/editors/space_node/node_ops.c (+3, -5) (Diff)
/source/blender/editors/space_node/node_select.c (+20, -22) (Diff)
/source/blender/editors/space_node/node_state.c (+6, -8) (Diff)
/source/blender/editors/space_outliner/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/space_outliner/SConscript (+1, -1) (Diff)
/source/blender/editors/space_script/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/space_script/SConscript (+1, -1) (Diff)
/source/blender/editors/space_script/script_edit.c (+5, -7) (Diff)
/source/blender/editors/space_sequencer/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/space_sequencer/SConscript (+1, -1) (Diff)
/source/blender/editors/space_sequencer/sequencer_add.c (+20, -22) (Diff)
/source/blender/editors/space_sequencer/sequencer_buttons.c (+2, -4) (Diff)
/source/blender/editors/space_sequencer/sequencer_edit.c (+92, -94) (Diff)
/source/blender/editors/space_sequencer/sequencer_select.c (+27, -29) (Diff)
/source/blender/editors/space_text/text_header.c (+2, -4) (Diff)
/source/blender/editors/space_text/text_ops.c (+97, -99) (Diff)
/source/blender/editors/space_time/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/space_time/SConscript (+1, -1) (Diff)
/source/blender/editors/space_time/time_ops.c (+6, -8) (Diff)
/source/blender/editors/space_view3d/view3d_buttons.c (+2, -4) (Diff)
/source/blender/editors/space_view3d/view3d_edit.c (+104, -106) (Diff)
/source/blender/editors/space_view3d/view3d_fly.c (+19, -23) (Diff)
/source/blender/editors/space_view3d/view3d_header.c (+5, -5) (Diff)
/source/blender/editors/space_view3d/view3d_select.c (+16, -18) (Diff)
/source/blender/editors/space_view3d/view3d_toolbar.c (+3, -3) (Diff)
/source/blender/editors/space_view3d/view3d_view.c (+10, -12) (Diff)
/source/blender/editors/transform/transform.c (+24, -27) (Diff)
/source/blender/editors/transform/transform_ops.c (+100, -102) (Diff)
/source/blender/editors/util/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/util/SConscript (+1, -1) (Diff)
/source/blender/editors/util/undo.c (+7, -9) (Diff)
/source/blender/editors/uvedit/CMakeLists.txt (+0, -1) (Diff)
/source/blender/editors/uvedit/SConscript (+1, -1) (Diff)
/source/blender/editors/uvedit/uvedit_ops.c (+68, -70) (Diff)
/source/blender/editors/uvedit/uvedit_unwrap_ops.c (+33, -35) (Diff)
/source/blender/imbuf/intern/IMB_indexer.h (+0, -0) (Diff)
/source/blender/imbuf/intern/indexer.c (+0, -0) (Diff)
/source/blender/imbuf/intern/indexer_dv.c (+0, -0) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+2, -2) (Diff)
/source/blender/makesrna/intern/CMakeLists.txt (+4, -0) (Diff)
/source/blender/makesrna/intern/rna_access.c (+64, -113) (Diff)
/source/blender/makesrna/intern/rna_action.c (+57, -59) (Diff)
/source/blender/makesrna/intern/rna_color.c (+7, -9) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+28, -29) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+11, -13) (Diff)
/source/blender/makesrna/intern/rna_define.c (+0, -2) (Diff)
/source/blender/makesrna/intern/rna_fcurve.c (+0, -2) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+43, -45) (Diff)
/source/blender/makesrna/intern/rna_material.c (+321, -323) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+42, -44) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+0, -1) (Diff)
/source/blender/makesrna/intern/rna_object.c (+167, -168) (Diff)
/source/blender/makesrna/intern/rna_object_force.c (+13, -15) (Diff)
/source/blender/makesrna/intern/rna_particle.c (+5, -7) (Diff)
/source/blender/makesrna/intern/rna_render.c (+2, -4) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+310, -311) (Diff)
/source/blender/makesrna/intern/rna_space.c (+375, -377) (Diff)
/source/blender/makesrna/intern/rna_speaker.c (+0, -0) (Diff)
/source/blender/makesrna/intern/rna_texture.c (+40, -41) (Diff)
/source/blender/makesrna/intern/rna_texture_api.c (+0, -0) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+289, -289) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+201, -203) (Diff)
/source/blender/makesrna/intern/rna_world.c (+45, -46) (Diff)
/source/blender/makesrna/intern/SConscript (+3, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/makesrna/SConscript (+3, -0) (Diff)
/source/blender/python/generic/blf_py_api.c (+16, -1) (Diff)
/source/blender/python/generic/CMakeLists.txt (+3, -0) (Diff)
/source/blender/python/SConscript (+3, -0) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+7, -15) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+7, -11) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+93, -93) (Diff)
/source/blender/windowmanager/WM_api.h (+1, -2) (Diff)
/source/creator/CMakeLists.txt (+6, -6) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021