Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-09-15 17:20:18 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-09-15 17:20:18 +0400
commit0eda51f2eabe24016efdc8f07825f1ba667cac33 (patch)
tree03d6f876da6b1256b8890b89db09b63952fa544f /source/blender/editors/armature/poselib.c
parent30293dc2ca8052ad0c7113c77365feca590f4d05 (diff)
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.
Diffstat (limited to 'source/blender/editors/armature/poselib.c')
-rw-r--r--source/blender/editors/armature/poselib.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/source/blender/editors/armature/poselib.c b/source/blender/editors/armature/poselib.c
index 61435602446..81da047df36 100644
--- a/source/blender/editors/armature/poselib.c
+++ b/source/blender/editors/armature/poselib.c
@@ -234,9 +234,9 @@ static int poselib_new_exec (bContext *C, wmOperator *UNUSED(op))
void POSELIB_OT_new (wmOperatorType *ot)
{
/* identifiers */
- ot->name = _("New Pose Library");
+ ot->name = "New Pose Library";
ot->idname = "POSELIB_OT_new";
- ot->description = _("Add New Pose Library to active Object");
+ ot->description = "Add New Pose Library to active Object";
/* callbacks */
ot->exec = poselib_new_exec;
@@ -269,9 +269,9 @@ static int poselib_unlink_exec (bContext *C, wmOperator *UNUSED(op))
void POSELIB_OT_unlink (wmOperatorType *ot)
{
/* identifiers */
- ot->name = _("Unlink Pose Library");
+ ot->name = "Unlink Pose Library";
ot->idname = "POSELIB_OT_unlink";
- ot->description = _("Remove Pose Library from active Object");
+ ot->description = "Remove Pose Library from active Object";
/* callbacks */
ot->exec = poselib_unlink_exec;
@@ -355,9 +355,9 @@ static int poselib_sanitise_exec (bContext *C, wmOperator *op)
void POSELIB_OT_action_sanitise (wmOperatorType *ot)
{
/* identifiers */
- ot->name = _("Sanitise Pose Library Action");
+ ot->name = "Sanitise Pose Library Action";
ot->idname = "POSELIB_OT_action_sanitise";
- ot->description = _("Make action suitable for use as a Pose Library");
+ ot->description = "Make action suitable for use as a Pose Library";
/* callbacks */
ot->exec = poselib_sanitise_exec;
@@ -481,9 +481,9 @@ static int poselib_add_exec (bContext *C, wmOperator *op)
void POSELIB_OT_pose_add (wmOperatorType *ot)
{
/* identifiers */
- ot->name= _("PoseLib Add Pose");
+ ot->name= "PoseLib Add Pose";
ot->idname= "POSELIB_OT_pose_add";
- ot->description= _("Add the current Pose to the active Pose Library");
+ ot->description= "Add the current Pose to the active Pose Library";
/* api callbacks */
ot->invoke= poselib_add_menu_invoke;
@@ -494,8 +494,8 @@ void POSELIB_OT_pose_add (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
- RNA_def_int(ot->srna, "frame", 1, 0, INT_MAX, _("Frame"), _("Frame to store pose on"), 0, INT_MAX);
- RNA_def_string(ot->srna, "name", "Pose", 64, _("Pose Name"), _("Name of newly added Pose"));
+ RNA_def_int(ot->srna, "frame", 1, 0, INT_MAX, "Frame", "Frame to store pose on", 0, INT_MAX);
+ RNA_def_string(ot->srna, "name", "Pose", 64, "Pose Name", "Name of newly added Pose");
}
/* ----- */
@@ -587,9 +587,9 @@ void POSELIB_OT_pose_remove (wmOperatorType *ot)
PropertyRNA *prop;
/* identifiers */
- ot->name= _("PoseLib Remove Pose");
+ ot->name= "PoseLib Remove Pose";
ot->idname= "POSELIB_OT_pose_remove";
- ot->description= _("Remove nth pose from the active Pose Library");
+ ot->description= "Remove nth pose from the active Pose Library";
/* api callbacks */
ot->invoke= WM_menu_invoke;
@@ -600,7 +600,7 @@ void POSELIB_OT_pose_remove (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
- prop= RNA_def_enum(ot->srna, "pose", DummyRNA_DEFAULT_items, 0, _("Pose"), _("The pose to remove"));
+ prop= RNA_def_enum(ot->srna, "pose", DummyRNA_DEFAULT_items, 0, "Pose", "The pose to remove");
RNA_def_enum_funcs(prop, poselib_stored_pose_itemf);
ot->prop= prop;
}
@@ -677,9 +677,9 @@ void POSELIB_OT_pose_rename (wmOperatorType *ot)
};
/* identifiers */
- ot->name= _("PoseLib Rename Pose");
+ ot->name= "PoseLib Rename Pose";
ot->idname= "POSELIB_OT_pose_rename";
- ot->description= _("Rename specified pose from the active Pose Library");
+ ot->description= "Rename specified pose from the active Pose Library";
/* api callbacks */
ot->invoke= poselib_rename_invoke;
@@ -1604,9 +1604,9 @@ static int poselib_preview_exec (bContext *C, wmOperator *op)
void POSELIB_OT_browse_interactive (wmOperatorType *ot)
{
/* identifiers */
- ot->name= _("PoseLib Browse Poses");
+ ot->name= "PoseLib Browse Poses";
ot->idname= "POSELIB_OT_browse_interactive";
- ot->description= _("Interactively browse poses in 3D-View");
+ ot->description= "Interactively browse poses in 3D-View";
/* callbacks */
ot->invoke= poselib_preview_invoke;
@@ -1620,7 +1620,7 @@ void POSELIB_OT_browse_interactive (wmOperatorType *ot)
/* properties */
// TODO: make the pose_index into a proper enum instead of a cryptic int...
- ot->prop= RNA_def_int(ot->srna, "pose_index", -1, -2, INT_MAX, _("Pose"), _("Index of the pose to apply (-2 for no change to pose, -1 for poselib active pose)"), 0, INT_MAX);
+ ot->prop= RNA_def_int(ot->srna, "pose_index", -1, -2, INT_MAX, "Pose", "Index of the pose to apply (-2 for no change to pose, -1 for poselib active pose)", 0, INT_MAX);
// XXX: percentage vs factor?
/* not used yet */
@@ -1630,9 +1630,9 @@ void POSELIB_OT_browse_interactive (wmOperatorType *ot)
void POSELIB_OT_apply_pose (wmOperatorType *ot)
{
/* identifiers */
- ot->name = _("Apply Pose Library Pose");
+ ot->name = "Apply Pose Library Pose";
ot->idname = "POSELIB_OT_apply_pose";
- ot->description = _("Apply specified Pose Library pose to the rig");
+ ot->description = "Apply specified Pose Library pose to the rig";
/* callbacks */
ot->exec= poselib_preview_exec;
@@ -1643,5 +1643,5 @@ void POSELIB_OT_apply_pose (wmOperatorType *ot)
/* properties */
// TODO: make the pose_index into a proper enum instead of a cryptic int...
- ot->prop= RNA_def_int(ot->srna, "pose_index", -1, -2, INT_MAX, _("Pose"), _("Index of the pose to apply (-2 for no change to pose, -1 for poselib active pose)"), 0, INT_MAX);
+ ot->prop= RNA_def_int(ot->srna, "pose_index", -1, -2, INT_MAX, "Pose", "Index of the pose to apply (-2 for no change to pose, -1 for poselib active pose)", 0, INT_MAX);
}