diff options
author | Damien Picard <pioverfour> | 2022-08-01 12:26:28 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-08-01 14:58:23 +0300 |
commit | 1875c5d24c1b3f463356d1922a6b9ad47c3c75ea (patch) | |
tree | e403d1f8475ca0ba05fa69006ca2327c7b6fcded /source/blender | |
parent | 76169472d3986dc5ab3241ee52eb46951d5435cb (diff) |
I18n: make Grease Pencil modifiers and shader FX translatable.
Pretty much like D15418: add `N_()` macro around names for
Grease Pencil modifiers and shader FX.
Reviewed By: mont29
Differential Revision: https://developer.blender.org/D15532
Diffstat (limited to 'source/blender')
33 files changed, 53 insertions, 33 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c index 092253dde79..d99d9950efb 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c @@ -191,7 +191,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Armature = { - /* name */ "Armature", + /* name */ N_("Armature"), /* structName */ "ArmatureGpencilModifierData", /* structSize */ sizeof(ArmatureGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilarray.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilarray.c index 407055c6165..8bb61136cc2 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilarray.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilarray.c @@ -447,7 +447,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Array = { - /* name */ "Array", + /* name */ N_("Array"), /* structName */ "ArrayGpencilModifierData", /* structSize */ sizeof(ArrayGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c index cf390e8d3a0..3c971ec6af0 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c @@ -877,7 +877,7 @@ static void updateDepsgraph(GpencilModifierData *md, /* ******************************************** */ GpencilModifierTypeInfo modifierType_Gpencil_Build = { - /* name */ "Build", + /* name */ N_("Build"), /* structName */ "BuildGpencilModifierData", /* structSize */ sizeof(BuildGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilcolor.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilcolor.c index 8ada66cfd55..7abbd0661cf 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilcolor.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilcolor.c @@ -12,6 +12,8 @@ #include "BLI_math_color.h" #include "BLI_math_vector.h" +#include "BLT_translation.h" + #include "DNA_defaults.h" #include "DNA_gpencil_modifier_types.h" #include "DNA_gpencil_types.h" @@ -202,7 +204,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Color = { - /* name */ "Hue/Saturation", + /* name */ N_("Hue/Saturation"), /* structName */ "ColorGpencilModifierData", /* structSize */ sizeof(ColorGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencildash.c b/source/blender/gpencil_modifiers/intern/MOD_gpencildash.c index 41015c429fe..5033e67d52e 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencildash.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencildash.c @@ -363,7 +363,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Dash = { - /* name */ "Dot Dash", + /* name */ N_("Dot Dash"), /* structName */ "DashGpencilModifierData", /* structSize */ sizeof(DashGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilenvelope.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilenvelope.c index 0f1652a5620..ec0ed1f6a35 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilenvelope.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilenvelope.c @@ -645,7 +645,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Envelope = { - /* name */ "Envelope", + /* name */ N_("Envelope"), /* structName */ "EnvelopeGpencilModifierData", /* structSize */ sizeof(EnvelopeGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilhook.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilhook.c index 652894af017..1a2bfebdc55 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilhook.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilhook.c @@ -387,7 +387,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Hook = { - /* name */ "Hook", + /* name */ N_("Hook"), /* structName */ "HookGpencilModifierData", /* structSize */ sizeof(HookGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencillattice.c b/source/blender/gpencil_modifiers/intern/MOD_gpencillattice.c index 30f1a004338..7365c59dd5f 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencillattice.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencillattice.c @@ -247,7 +247,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Lattice = { - /* name */ "Lattice", + /* name */ N_("Lattice"), /* structName */ "LatticeGpencilModifierData", /* structSize */ sizeof(LatticeGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencillength.c b/source/blender/gpencil_modifiers/intern/MOD_gpencillength.c index 5a358f5b3a1..c1a978162b8 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencillength.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencillength.c @@ -355,7 +355,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Length = { - /* name */ "Length", + /* name */ N_("Length"), /* structName */ "LengthGpencilModifierData", /* structSize */ sizeof(LengthGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c index 1a8d1e75746..326e86091c5 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c @@ -243,7 +243,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Mirror = { - /* name */ "Mirror", + /* name */ N_("Mirror"), /* structName */ "MirrorGpencilModifierData", /* structSize */ sizeof(MirrorGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilmultiply.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilmultiply.c index fd4eb5da835..1cf11a694ac 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilmultiply.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilmultiply.c @@ -20,6 +20,8 @@ #include "BLI_math_vector.h" #include "BLI_utildefines.h" +#include "BLT_translation.h" + #include "BKE_context.h" #include "BKE_gpencil.h" #include "BKE_gpencil_geom.h" @@ -311,7 +313,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Multiply = { - /* name */ "MultipleStrokes", + /* name */ N_("MultipleStrokes"), /* structName */ "MultiplyGpencilModifierData", /* structSize */ sizeof(MultiplyGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c index 253603aea67..4bbcbf775db 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c @@ -339,7 +339,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Noise = { - /* name */ "Noise", + /* name */ N_("Noise"), /* structName */ "NoiseGpencilModifierData", /* structSize */ sizeof(NoiseGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpenciloffset.c b/source/blender/gpencil_modifiers/intern/MOD_gpenciloffset.c index ba88c83161f..8f0abd0a88e 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpenciloffset.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpenciloffset.c @@ -228,7 +228,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Offset = { - /* name */ "Offset", + /* name */ N_("Offset"), /* structName */ "OffsetGpencilModifierData", /* structSize */ sizeof(OffsetGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c index 0bcbd71f029..98f26dbd597 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c @@ -279,7 +279,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Opacity = { - /* name */ "Opacity", + /* name */ N_("Opacity"), /* structName */ "OpacityGpencilModifierData", /* structSize */ sizeof(OpacityGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilshrinkwrap.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilshrinkwrap.c index 09c1005ecac..f492e9ee044 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilshrinkwrap.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilshrinkwrap.c @@ -307,7 +307,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Shrinkwrap = { - /* name */ "Shrinkwrap", + /* name */ N_("Shrinkwrap"), /* structName */ "ShrinkwrapGpencilModifierData", /* structSize */ sizeof(ShrinkwrapGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilsimplify.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilsimplify.c index 07350b73ce3..41de8d74257 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilsimplify.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilsimplify.c @@ -11,6 +11,8 @@ #include "BLI_listbase.h" #include "BLI_utildefines.h" +#include "BLT_translation.h" + #include "DNA_defaults.h" #include "DNA_gpencil_modifier_types.h" #include "DNA_gpencil_types.h" @@ -157,7 +159,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Simplify = { - /* name */ "Simplify", + /* name */ N_("Simplify"), /* structName */ "SimplifyGpencilModifierData", /* structSize */ sizeof(SimplifyGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c index 1992ebd1508..977be634490 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c @@ -203,7 +203,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Smooth = { - /* name */ "Smooth", + /* name */ N_("Smooth"), /* structName */ "SmoothGpencilModifierData", /* structSize */ sizeof(SmoothGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilsubdiv.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilsubdiv.c index 73f8dada971..b856f7d81dc 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilsubdiv.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilsubdiv.c @@ -124,7 +124,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Subdiv = { - /* name */ "Subdivide", + /* name */ N_("Subdivide"), /* structName */ "SubdivGpencilModifierData", /* structSize */ sizeof(SubdivGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpenciltexture.c b/source/blender/gpencil_modifiers/intern/MOD_gpenciltexture.c index 6ba7a934bff..16c8365153a 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpenciltexture.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpenciltexture.c @@ -178,7 +178,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Texture = { - /* name */ "TextureMapping", + /* name */ N_("TextureMapping"), /* structName */ "TextureGpencilModifierData", /* structSize */ sizeof(TextureGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c index 68fe15df898..81343fb5180 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c @@ -11,6 +11,8 @@ #include "BLI_math_vector.h" #include "BLI_utildefines.h" +#include "BLT_translation.h" + #include "DNA_defaults.h" #include "DNA_gpencil_modifier_types.h" #include "DNA_gpencil_types.h" @@ -204,7 +206,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Thick = { - /* name */ "Thickness", + /* name */ N_("Thickness"), /* structName */ "ThickGpencilModifierData", /* structSize */ sizeof(ThickGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c b/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c index 414231fcae5..1d45030b68b 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpenciltime.c @@ -230,7 +230,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Time = { - /* name */ "TimeOffset", + /* name */ N_("TimeOffset"), /* structName */ "TimeGpencilModifierData", /* structSize */ sizeof(TimeGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c b/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c index ad8804782e8..94d8cb98290 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c @@ -12,6 +12,8 @@ #include "BLI_listbase.h" #include "BLI_math_vector.h" +#include "BLT_translation.h" + #include "DNA_defaults.h" #include "DNA_gpencil_modifier_types.h" #include "DNA_gpencil_types.h" @@ -365,7 +367,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_Tint = { - /* name */ "Tint", + /* name */ N_("Tint"), /* structName */ "TintGpencilModifierData", /* structSize */ sizeof(TintGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilweight_angle.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilweight_angle.c index f40e6ba0728..3ecff4bf447 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilweight_angle.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilweight_angle.c @@ -11,6 +11,8 @@ #include "BLI_math_vector.h" #include "BLI_utildefines.h" +#include "BLT_translation.h" + #include "DNA_defaults.h" #include "DNA_gpencil_modifier_types.h" #include "DNA_gpencil_types.h" @@ -209,7 +211,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_WeightAngle = { - /* name */ "Vertex Weight Angle", + /* name */ N_("Vertex Weight Angle"), /* structName */ "WeightAngleGpencilModifierData", /* structSize */ sizeof(WeightAngleGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilweight_proximity.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilweight_proximity.c index 1a6cadabf51..f64c83443d8 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilweight_proximity.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilweight_proximity.c @@ -11,6 +11,8 @@ #include "BLI_math_vector.h" #include "BLI_utildefines.h" +#include "BLT_translation.h" + #include "DNA_defaults.h" #include "DNA_gpencil_modifier_types.h" #include "DNA_gpencil_types.h" @@ -226,7 +228,7 @@ static void panelRegister(ARegionType *region_type) } GpencilModifierTypeInfo modifierType_Gpencil_WeightProximity = { - /* name */ "Vertex Weight Proximity", + /* name */ N_("Vertex Weight Proximity"), /* structName */ "WeightProxGpencilModifierData", /* structSize */ sizeof(WeightProxGpencilModifierData), /* type */ eGpencilModifierTypeType_Gpencil, diff --git a/source/blender/shader_fx/intern/FX_shader_blur.c b/source/blender/shader_fx/intern/FX_shader_blur.c index 0d57b4c97e0..14e9a647105 100644 --- a/source/blender/shader_fx/intern/FX_shader_blur.c +++ b/source/blender/shader_fx/intern/FX_shader_blur.c @@ -64,7 +64,7 @@ static void panelRegister(ARegionType *region_type) } ShaderFxTypeInfo shaderfx_Type_Blur = { - /* name */ "Blur", + /* name */ N_("Blur"), /* structName */ "BlurShaderFxData", /* structSize */ sizeof(BlurShaderFxData), /* type */ eShaderFxType_GpencilType, diff --git a/source/blender/shader_fx/intern/FX_shader_colorize.c b/source/blender/shader_fx/intern/FX_shader_colorize.c index 97ced68b0cf..5551b16f445 100644 --- a/source/blender/shader_fx/intern/FX_shader_colorize.c +++ b/source/blender/shader_fx/intern/FX_shader_colorize.c @@ -71,7 +71,7 @@ static void panelRegister(ARegionType *region_type) } ShaderFxTypeInfo shaderfx_Type_Colorize = { - /* name */ "Colorize", + /* name */ N_("Colorize"), /* structName */ "ColorizeShaderFxData", /* structSize */ sizeof(ColorizeShaderFxData), /* type */ eShaderFxType_GpencilType, diff --git a/source/blender/shader_fx/intern/FX_shader_flip.c b/source/blender/shader_fx/intern/FX_shader_flip.c index 050550bb24d..5b5c12205ca 100644 --- a/source/blender/shader_fx/intern/FX_shader_flip.c +++ b/source/blender/shader_fx/intern/FX_shader_flip.c @@ -61,7 +61,7 @@ static void panelRegister(ARegionType *region_type) } ShaderFxTypeInfo shaderfx_Type_Flip = { - /* name */ "Flip", + /* name */ N_("Flip"), /* structName */ "FlipShaderFxData", /* structSize */ sizeof(FlipShaderFxData), /* type */ eShaderFxType_GpencilType, diff --git a/source/blender/shader_fx/intern/FX_shader_glow.c b/source/blender/shader_fx/intern/FX_shader_glow.c index 0aaacd1036e..b620754225a 100644 --- a/source/blender/shader_fx/intern/FX_shader_glow.c +++ b/source/blender/shader_fx/intern/FX_shader_glow.c @@ -15,6 +15,8 @@ #include "BLI_math.h" #include "BLI_utildefines.h" +#include "BLT_translation.h" + #include "BKE_context.h" #include "BKE_modifier.h" #include "BKE_screen.h" @@ -80,7 +82,7 @@ static void panelRegister(ARegionType *region_type) } ShaderFxTypeInfo shaderfx_Type_Glow = { - /* name */ "Glow", + /* name */ N_("Glow"), /* structName */ "GlowShaderFxData", /* structSize */ sizeof(GlowShaderFxData), /* type */ eShaderFxType_GpencilType, diff --git a/source/blender/shader_fx/intern/FX_shader_pixel.c b/source/blender/shader_fx/intern/FX_shader_pixel.c index 0eca0643c69..6f43bfb32b7 100644 --- a/source/blender/shader_fx/intern/FX_shader_pixel.c +++ b/source/blender/shader_fx/intern/FX_shader_pixel.c @@ -62,7 +62,7 @@ static void panelRegister(ARegionType *region_type) } ShaderFxTypeInfo shaderfx_Type_Pixel = { - /* name */ "Pixelate", + /* name */ N_("Pixelate"), /* structName */ "PixelShaderFxData", /* structSize */ sizeof(PixelShaderFxData), /* type */ eShaderFxType_GpencilType, diff --git a/source/blender/shader_fx/intern/FX_shader_rim.c b/source/blender/shader_fx/intern/FX_shader_rim.c index ec48e86706b..d314724eaca 100644 --- a/source/blender/shader_fx/intern/FX_shader_rim.c +++ b/source/blender/shader_fx/intern/FX_shader_rim.c @@ -89,7 +89,7 @@ static void panelRegister(ARegionType *region_type) } ShaderFxTypeInfo shaderfx_Type_Rim = { - /* name */ "Rim", + /* name */ N_("Rim"), /* structName */ "RimShaderFxData", /* structSize */ sizeof(RimShaderFxData), /* type */ eShaderFxType_GpencilType, diff --git a/source/blender/shader_fx/intern/FX_shader_shadow.c b/source/blender/shader_fx/intern/FX_shader_shadow.c index fdce7bf6e20..4b8b44cc5b0 100644 --- a/source/blender/shader_fx/intern/FX_shader_shadow.c +++ b/source/blender/shader_fx/intern/FX_shader_shadow.c @@ -159,7 +159,7 @@ static void panelRegister(ARegionType *region_type) } ShaderFxTypeInfo shaderfx_Type_Shadow = { - /* name */ "Shadow", + /* name */ N_("Shadow"), /* structName */ "ShadowShaderFxData", /* structSize */ sizeof(ShadowShaderFxData), /* type */ eShaderFxType_GpencilType, diff --git a/source/blender/shader_fx/intern/FX_shader_swirl.c b/source/blender/shader_fx/intern/FX_shader_swirl.c index 6d835382b29..059fe0ca8b6 100644 --- a/source/blender/shader_fx/intern/FX_shader_swirl.c +++ b/source/blender/shader_fx/intern/FX_shader_swirl.c @@ -15,6 +15,8 @@ #include "BLI_math_base.h" #include "BLI_utildefines.h" +#include "BLT_translation.h" + #include "BKE_context.h" #include "BKE_lib_query.h" #include "BKE_modifier.h" @@ -88,7 +90,7 @@ static void panelRegister(ARegionType *region_type) } ShaderFxTypeInfo shaderfx_Type_Swirl = { - /* name */ "Swirl", + /* name */ N_("Swirl"), /* structName */ "SwirlShaderFxData", /* structSize */ sizeof(SwirlShaderFxData), /* type */ eShaderFxType_GpencilType, diff --git a/source/blender/shader_fx/intern/FX_shader_wave.c b/source/blender/shader_fx/intern/FX_shader_wave.c index 28469ca42b9..947bf58ec7c 100644 --- a/source/blender/shader_fx/intern/FX_shader_wave.c +++ b/source/blender/shader_fx/intern/FX_shader_wave.c @@ -17,6 +17,8 @@ #include "BLI_utildefines.h" +#include "BLT_translation.h" + #include "UI_interface.h" #include "UI_resources.h" @@ -61,7 +63,7 @@ static void panelRegister(ARegionType *region_type) } ShaderFxTypeInfo shaderfx_Type_Wave = { - /* name */ "WaveDistortion", + /* name */ N_("WaveDistortion"), /* structName */ "WaveShaderFxData", /* structSize */ sizeof(WaveShaderFxData), /* type */ eShaderFxType_GpencilType, |