Skip to content

Commit 4a425e9

Browse files
fixing up i18n issues
1 parent 3457dbb commit 4a425e9

3 files changed

Lines changed: 13 additions & 79 deletions

File tree

bin/buildAndDeploy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,10 @@ def runI18n4go(path: str) -> None:
102102
elif platform.system() == "Darwin":
103103
binary = f"{binary}_mac"
104104
cmd = [binary, "-c=checkup", "-q=i18n", "-v", f"-d={plugin_dir}"]
105+
os.chdir(os.path.join(path, 'plugin'))
105106
print("[turquoise2]Running: " + " ".join(cmd))
106107
result = subprocess.run(cmd, capture_output=True, text=True)
108+
os.chdir(path)
107109
# We have some mismatching lines, lets fix that.
108110
missmatch = ""
109111
# These strings need to be added

plugin/i18n/resources/en_US.all.json

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
[
2-
{
3-
"id": "\nEnter a number",
4-
"translation": "\nEnter a number"
5-
},
62
{
73
"id": "\nLUN name",
84
"translation": "\nLUN name"
@@ -1135,10 +1131,6 @@
11351131
"id": "An IP address to revoke",
11361132
"translation": "An IP address to revoke"
11371133
},
1138-
{
1139-
"id": "An error occurred when creating log file '{{.Path}}':\n{{.Error}}\n\n",
1140-
"translation": "An error occurred when creating log file '{{.Path}}':\n{{.Error}}\n\n"
1141-
},
11421134
{
11431135
"id": "An optional cancellation reason. See '${COMMAND_NAME} sl hardware cancel-reasons' for a list of available options",
11441136
"translation": "An optional cancellation reason. See '${COMMAND_NAME} sl hardware cancel-reasons' for a list of available options"
@@ -1959,10 +1951,6 @@
19591951
"id": "Could not find valid size for: {{.Size}}",
19601952
"translation": "Could not find valid size for: {{.Size}}"
19611953
},
1962-
{
1963-
"id": "Could not read from input: ",
1964-
"translation": "Could not read from input: "
1965-
},
19661954
{
19671955
"id": "Could not remove device {{.DeviceID}} from ticket. Is it attached, or a virtual guest?",
19681956
"translation": "Could not remove device {{.DeviceID}} from ticket. Is it attached, or a virtual guest?"
@@ -2827,10 +2815,6 @@
28272815
"id": "Exports options to a template file",
28282816
"translation": "Exports options to a template file"
28292817
},
2830-
{
2831-
"id": "External authentication failed. Error code: {{.ErrorCode}}, message: {{.Message}}",
2832-
"translation": "External authentication failed. Error code: {{.ErrorCode}}, message: {{.Message}}"
2833-
},
28342818
{
28352819
"id": "Extra note to be associated with the key",
28362820
"translation": "Extra note to be associated with the key"
@@ -4455,14 +4439,6 @@
44554439
"id": "Failed to {{.action}} user vpn subnets manual config",
44564440
"translation": "Failed to {{.action}} user vpn subnets manual config"
44574441
},
4458-
{
4459-
"id": "Failed, header could not convert to csv format",
4460-
"translation": "Failed, header could not convert to csv format"
4461-
},
4462-
{
4463-
"id": "Failed, rows could not convert to csv format",
4464-
"translation": "Failed, rows could not convert to csv format"
4465-
},
44664442
{
44674443
"id": "Failover a {{.storageType}} volume to the given replica volume",
44684444
"translation": "Failover a {{.storageType}} volume to the given replica volume"
@@ -5407,10 +5383,6 @@
54075383
"id": "Invalid format date.",
54085384
"translation": "Invalid format date."
54095385
},
5410-
{
5411-
"id": "Invalid grant type: ",
5412-
"translation": "Invalid grant type: "
5413-
},
54145386
{
54155387
"id": "Invalid input for",
54165388
"translation": "Invalid input for"
@@ -5435,10 +5407,6 @@
54355407
"id": "Invalid storage type {{.StorageType}}",
54365408
"translation": "Invalid storage type {{.StorageType}}"
54375409
},
5438-
{
5439-
"id": "Invalid token: ",
5440-
"translation": "Invalid token: "
5441-
},
54425410
{
54435411
"id": "Invalid volume type",
54445412
"translation": "Invalid volume type"
@@ -6347,10 +6315,6 @@
63476315
"id": "Number of updates",
63486316
"translation": "Number of updates"
63496317
},
6350-
{
6351-
"id": "OK",
6352-
"translation": "OK"
6353-
},
63546318
{
63556319
"id": "OPTIONS",
63566320
"translation": "OPTIONS"
@@ -6895,26 +6859,6 @@
68956859
"id": "Please add the '--guest' id too.\n",
68966860
"translation": "Please add the '--guest' id too.\n"
68976861
},
6898-
{
6899-
"id": "Please enter 'y', 'n', 'yes' or 'no'.",
6900-
"translation": "Please enter 'y', 'n', 'yes' or 'no'."
6901-
},
6902-
{
6903-
"id": "Please enter a number between 1 to {{.Count}}.",
6904-
"translation": "Please enter a number between 1 to {{.Count}}."
6905-
},
6906-
{
6907-
"id": "Please enter a valid floating number.",
6908-
"translation": "Please enter a valid floating number."
6909-
},
6910-
{
6911-
"id": "Please enter a valid number.",
6912-
"translation": "Please enter a valid number."
6913-
},
6914-
{
6915-
"id": "Please enter value.",
6916-
"translation": "Please enter value."
6917-
},
69186862
{
69196863
"id": "Please make sure you know all the creation options by running command: '{{.CommandName}} sl vs options'. Continue?",
69206864
"translation": "Please make sure you know all the creation options by running command: '{{.CommandName}} sl vs options'. Continue?"
@@ -7363,10 +7307,6 @@
73637307
"id": "Remote peer IP address",
73647308
"translation": "Remote peer IP address"
73657309
},
7366-
{
7367-
"id": "Remote server error. Status code: {{.StatusCode}}, error code: {{.ErrorCode}}, message: {{.Message}}",
7368-
"translation": "Remote server error. Status code: {{.StatusCode}}, error code: {{.ErrorCode}}, message: {{.Message}}"
7369-
},
73707310
{
73717311
"id": "Remove SSL certificate",
73727312
"translation": "Remove SSL certificate"
@@ -7743,10 +7683,6 @@
77437683
"id": "Session Stickiness",
77447684
"translation": "Session Stickiness"
77457685
},
7746-
{
7747-
"id": "Session inactive: ",
7748-
"translation": "Session inactive: "
7749-
},
77507686
{
77517687
"id": "Set Tags.",
77527688
"translation": "Set Tags."
@@ -9291,10 +9227,6 @@
92919227
"id": "Unable to parse zone from BIND file.",
92929228
"translation": "Unable to parse zone from BIND file."
92939229
},
9294-
{
9295-
"id": "Unable to save plugin config: ",
9296-
"translation": "Unable to save plugin config: "
9297-
},
92989230
{
92999231
"id": "Unable to unmarshal extras json: %s\n",
93009232
"translation": "Unable to unmarshal extras json: %s\n"

plugin/resources/i18n_resources.go

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

0 commit comments

Comments
 (0)