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
This commit is contained in:
parent
76169472d3
commit
1875c5d24c
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue