i18n: first commit about i18n translation.
- add i18n translation files. - add document about how to translate this plugin. - fix some field descriptions in source code.
This commit is contained in:
7
bbp_ng/.gitignore
vendored
7
bbp_ng/.gitignore
vendored
@ -9,6 +9,13 @@ icons/*
|
||||
jsons/*
|
||||
!jsons/.gitkeep
|
||||
|
||||
# Do not include intermidiate translation template (POT)
|
||||
# NOTE: it seems that Python default gitignore (written following) disable POT file in default.
|
||||
# so, as it wish, I also remove it from git.
|
||||
i18n/*
|
||||
!i18n/blender.pot
|
||||
!i18n/*.po
|
||||
|
||||
## ===== Python =====
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
@ -415,8 +415,9 @@ class BBP_OT_add_spiral_rail(SharedExtraTransform, SharedRailCapInputProperty, S
|
||||
|
||||
rail_screw_screw: bpy.props.FloatProperty(
|
||||
name = "Screw",
|
||||
description = "The increased height in each iteration. Minus height also is accepted.",
|
||||
description = "The increased height in each iteration.",
|
||||
default = c_SpiralRailScrew,
|
||||
min = 0.0,
|
||||
unit = 'LENGTH',
|
||||
translation_context = 'BBP_OT_add_spiral_rail/property'
|
||||
) # type: ignore
|
||||
|
@ -62,7 +62,7 @@ class BBP_PG_legacy_align_history(bpy.types.PropertyGroup):
|
||||
translation_context = 'BBP_PG_legacy_align_history/property'
|
||||
) # type: ignore
|
||||
target_align_mode: bpy.props.EnumProperty(
|
||||
name = "Target Objects (Other Objects)",
|
||||
name = "Target Objects (Selected Objects)",
|
||||
items = _g_EnumHelper_AlignMode.generate_items(),
|
||||
default = _g_EnumHelper_AlignMode.to_selection(AlignMode.AxisCenter),
|
||||
translation_context = 'BBP_PG_legacy_align_history/property'
|
||||
|
@ -78,4 +78,5 @@ paths_exclude_pattern = [
|
||||
"/raw_jsons", # Raw JSONs.
|
||||
"/raw_icons", # Raw Icons.
|
||||
"/tools", # Assistant tools.
|
||||
"/i18n", # GNU gettext Translation.
|
||||
]
|
6023
bbp_ng/i18n/zh_HANS.po
Normal file
6023
bbp_ng/i18n/zh_HANS.po
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user