diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-06-11 23:25:01 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-06-11 23:25:01 +0300 |
commit | 23df1a774b5b70e5108e2d1b1901d2a204ca1d9e (patch) | |
tree | 670e5658630b6c29056029685e7b6500debdc758 /source/blender/editors/armature | |
parent | d665d128536cb7fc42e3796c0bd4529c1a391431 (diff) |
Fix/Cleanup: I18N: Bad usage of IFACE_ instead of TIP_.
Cheap tip: anything that is not "Camel Case" and/or that is more than
a few words long should use `TIP_` translation, not `IFACE_` one.
Also added several missing strings (including the one reported in D5056
by Jean First (@robbott), thanks).
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r-- | source/blender/editors/armature/pose_lib.c | 12 | ||||
-rw-r--r-- | source/blender/editors/armature/pose_slide.c | 35 |
2 files changed, 26 insertions, 21 deletions
diff --git a/source/blender/editors/armature/pose_lib.c b/source/blender/editors/armature/pose_lib.c index 96ba6212992..3407b3e6b7f 100644 --- a/source/blender/editors/armature/pose_lib.c +++ b/source/blender/editors/armature/pose_lib.c @@ -1171,8 +1171,8 @@ static void poselib_preview_apply(bContext *C, wmOperator *op) /* do header print - if interactively previewing */ if (pld->state == PL_PREVIEW_RUNNING) { if (pld->flag & PL_PREVIEW_SHOWORIGINAL) { - ED_area_status_text(pld->sa, IFACE_("PoseLib Previewing Pose: [Showing Original Pose]")); - ED_workspace_status_text(C, IFACE_("Use Tab to start previewing poses again")); + ED_area_status_text(pld->sa, TIP_("PoseLib Previewing Pose: [Showing Original Pose]")); + ED_workspace_status_text(C, TIP_("Use Tab to start previewing poses again")); } else if (pld->searchstr[0]) { char tempstr[65]; @@ -1196,17 +1196,17 @@ static void poselib_preview_apply(bContext *C, wmOperator *op) BLI_snprintf(pld->headerstr, sizeof(pld->headerstr), - IFACE_("PoseLib Previewing Pose: Filter - [%s] | " - "Current Pose - \"%s\""), + TIP_("PoseLib Previewing Pose: Filter - [%s] | " + "Current Pose - \"%s\""), tempstr, markern); ED_area_status_text(pld->sa, pld->headerstr); - ED_workspace_status_text(C, IFACE_("Use ScrollWheel or PageUp/Down to change pose")); + ED_workspace_status_text(C, TIP_("Use ScrollWheel or PageUp/Down to change pose")); } else { BLI_snprintf(pld->headerstr, sizeof(pld->headerstr), - IFACE_("PoseLib Previewing Pose: \"%s\""), + TIP_("PoseLib Previewing Pose: \"%s\""), pld->marker->name); ED_area_status_text(pld->sa, pld->headerstr); ED_workspace_status_text(C, NULL); diff --git a/source/blender/editors/armature/pose_slide.c b/source/blender/editors/armature/pose_slide.c index 9bc204c9e3b..97317a86104 100644 --- a/source/blender/editors/armature/pose_slide.c +++ b/source/blender/editors/armature/pose_slide.c @@ -27,6 +27,8 @@ #include "BLI_blenlib.h" #include "BLI_dlrbTree.h" +#include "BLT_translation.h" + #include "DNA_anim_types.h" #include "DNA_armature_types.h" #include "DNA_object_types.h" @@ -829,35 +831,35 @@ static void pose_slide_draw_status(tPoseSlideOp *pso) switch (pso->mode) { case POSESLIDE_PUSH: - strcpy(mode_str, "Push Pose"); + strcpy(mode_str, TIP_("Push Pose")); break; case POSESLIDE_RELAX: - strcpy(mode_str, "Relax Pose"); + strcpy(mode_str, TIP_("Relax Pose")); break; case POSESLIDE_BREAKDOWN: - strcpy(mode_str, "Breakdown"); + strcpy(mode_str, TIP_("Breakdown")); break; default: /* unknown */ - strcpy(mode_str, "Sliding-Tool"); + strcpy(mode_str, TIP_("Sliding-Tool")); break; } switch (pso->axislock) { case PS_LOCK_X: - BLI_strncpy(axis_str, "[X]/Y/Z axis only (X to clear)", sizeof(axis_str)); + BLI_strncpy(axis_str, TIP_("[X]/Y/Z axis only (X to clear)"), sizeof(axis_str)); break; case PS_LOCK_Y: - BLI_strncpy(axis_str, "X/[Y]/Z axis only (Y to clear)", sizeof(axis_str)); + BLI_strncpy(axis_str, TIP_("X/[Y]/Z axis only (Y to clear)"), sizeof(axis_str)); break; case PS_LOCK_Z: - BLI_strncpy(axis_str, "X/Y/[Z] axis only (Z to clear)", sizeof(axis_str)); + BLI_strncpy(axis_str, TIP_("X/Y/[Z] axis only (Z to clear)"), sizeof(axis_str)); break; default: if (ELEM(pso->channels, PS_TFM_LOC, PS_TFM_ROT, PS_TFM_SIZE)) { - BLI_strncpy(axis_str, "X/Y/Z = Axis Constraint", sizeof(axis_str)); + BLI_strncpy(axis_str, TIP_("X/Y/Z = Axis Constraint"), sizeof(axis_str)); } else { axis_str[0] = '\0'; @@ -869,31 +871,34 @@ static void pose_slide_draw_status(tPoseSlideOp *pso) case PS_TFM_LOC: BLI_snprintf(limits_str, sizeof(limits_str), - "[G]/R/S/B/C - Location only (G to clear) | %s", + TIP_("[G]/R/S/B/C - Location only (G to clear) | %s"), axis_str); break; case PS_TFM_ROT: BLI_snprintf(limits_str, sizeof(limits_str), - "G/[R]/S/B/C - Rotation only (R to clear) | %s", + TIP_("G/[R]/S/B/C - Rotation only (R to clear) | %s"), axis_str); break; case PS_TFM_SIZE: - BLI_snprintf( - limits_str, sizeof(limits_str), "G/R/[S]/B/C - Scale only (S to clear) | %s", axis_str); + BLI_snprintf(limits_str, + sizeof(limits_str), + TIP_("G/R/[S]/B/C - Scale only (S to clear) | %s"), + axis_str); break; case PS_TFM_BBONE_SHAPE: BLI_strncpy(limits_str, - "G/R/S/[B]/C - Bendy Bone properties only (B to clear) | %s", + TIP_("G/R/S/[B]/C - Bendy Bone properties only (B to clear) | %s"), sizeof(limits_str)); break; case PS_TFM_PROPS: BLI_strncpy(limits_str, - "G/R/S/B/[C] - Custom Properties only (C to clear) | %s", + TIP_("G/R/S/B/[C] - Custom Properties only (C to clear) | %s"), sizeof(limits_str)); break; default: - BLI_strncpy(limits_str, "G/R/S/B/C - Limit to Transform/Property Set", sizeof(limits_str)); + BLI_strncpy( + limits_str, TIP_("G/R/S/B/C - Limit to Transform/Property Set"), sizeof(limits_str)); break; } |