Skip to content

Commit 2cf7269

Browse files
authored
Localization support (#19)
* Add Localization * Add submodule support to CI
1 parent 693ec50 commit 2cf7269

23 files changed

+304
-9
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v3
36+
with:
37+
submodules: recursive
3638
- name: Dotnet Setup
3739
uses: actions/setup-dotnet@v3
3840
with:

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
uses: actions/checkout@v4
1818
with:
1919
path: ${{ env.packagePath }}
20+
submodules: recursive
2021

2122
# Get the Package name based on the package.json file
2223
- name: Get Package name

.github/workflows/run-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
uses: actions/checkout@v4
7171
with:
7272
path: ${{ env.PACKAGE_PATH }}
73+
submodules: recursive
7374
- name: Setup vrc-get
7475
if: matrix.vpmPackages[0] != null
7576
uses: anatawa12/sh-actions/setup-vrc-get@master

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "CustomLocalization4EditorExtension~/CustomLocalization4EditorExtension"]
2+
path = CustomLocalization4EditorExtension~/CustomLocalization4EditorExtension
3+
url = https://github.com/anatawa12/CustomLocalization4EditorExtension

Editor/Localization.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../CustomLocalization4EditorExtension~/CustomLocalization4EditorExtension/Editor/CustomLocalization4EditorExtension.Editor.cs

Editor/Localization/CustomLocalization4EditorExtension.Editor.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Localization/Locales.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Localization/Locales/en.po

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
msgid ""
2+
msgstr ""
3+
"Language: en\n"
4+
5+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.PreserveBorderEdges.label"
6+
msgstr "Preserve Border Edges"
7+
8+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.PreserveBorderEdges.tooltip"
9+
msgstr "If you want to suppress hole generation during simplification, enable this option."
10+
11+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.PreserveSurfaceCurvature.label"
12+
msgstr "Preserve Surface Curvature"
13+
14+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.PreserveSurfaceCurvature.tooltip"
15+
msgstr "Change the cost formula to preserve gently curved surfaces."
16+
17+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.UseBarycentricCoordinateInterpolation.label"
18+
msgstr "Use Barycentric Coordinate Interpolation"
19+
20+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.UseBarycentricCoordinateInterpolation.tooltip"
21+
msgstr "If you find that the texture is distorted, try toggling this option."
22+
23+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.MinNormalDot.label"
24+
msgstr "Min Normal Dot"
25+
26+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.MinNormalDot.tooltip"
27+
msgstr "Specifies how much normal misalignment to allow when generating lightweight polygons.For example, cos90°=0 allows up to 90° displacement, and cos180°=-1 allows up to 180° displacement."
28+
29+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.EnableSmartLink.label"
30+
msgstr "Enable Smart Link"
31+
32+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.EnableSmartLink.tooltip"
33+
msgstr "If this option is enabled, vertices that are not originally connected but are close to each other will be included in the first merge candidates. Increases the initialization cost."
34+
35+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.SmartLinkOptions"
36+
msgstr "Smart Link Options"
37+
38+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.VertexLinkDistance.label"
39+
msgstr "Vertex Link Distance"
40+
41+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.VertexLinkDistance.tooltip"
42+
msgstr "When smart link is enabled, this is used to select candidates for merging vertices that are not originally connected to each other. Increasing this value also increases the initialization cost."
43+
44+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.VertexLinkColorDistance.label"
45+
msgstr "Vertex Link Color Distance"
46+
47+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.VertexLinkColorDistance.tooltip"
48+
msgstr "Larger values may improve the shape of the polygons after lightening, but at the cost of unnatural vertex colors."
49+
50+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.VertexLinkUvDistance.label"
51+
msgstr "Vertex Link UV Distance"
52+
53+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.VertexLinkUvDistance.tooltip"
54+
msgstr "Larger values may improve the shape of the polygons after lightening, but at the cost of making the UVs unnatural."
55+
56+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.VertexLinkMinNormalDot.label"
57+
msgstr "Vertex Link Min Normal Dot"
58+
59+
msgid "Meshia.MeshSimplification.MeshSimplifierOptions.VertexLinkMinNormalDot.tooltip"
60+
msgstr "Use different min normal dot for smart link. The more stringent of the two is used for smart link."
61+
62+
msgid "locale:en"
63+
msgstr "English"

0 commit comments

Comments
 (0)