Skip to content

Commit c37574c

Browse files
cleaning up i18n files
1 parent bd2e304 commit c37574c

14 files changed

Lines changed: 51 additions & 542 deletions

File tree

bin/buildAndDeploy.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616

1717

1818
i18n_files = [
19-
'en_US.all.json',
20-
'de_DE.all.json',
21-
'es_ES.all.json',
22-
'fr_FR.all.json',
23-
'it_IT.all.json',
24-
'ja_JP.all.json',
25-
'ko_KR.all.json',
26-
'pt_BR.all.json',
27-
'zh_Hans.all.json',
28-
'zh_Hant.all.json',
19+
'en_US.json',
20+
'de_DE.json',
21+
'es_ES.json',
22+
'fr_FR.json',
23+
'it_IT.json',
24+
'ja_JP.json',
25+
'ko_KR.json',
26+
'pt_BR.json',
27+
'zh_Hans.json',
28+
'zh_Hant.json',
2929
]
3030

3131
def isWindows() -> bool:
@@ -159,7 +159,7 @@ def runI18n4go(path: str) -> None:
159159
del_json[line[0]] = {"id": line[0], "translation": line[0]}
160160
# We only want to ADD things to en_US so that our translators have an easier time figuring out what they need
161161
# to add to the other languages.
162-
en_us = os.path.join(plugin_dir, 'i18n', 'resources', 'en_US.all.json')
162+
en_us = os.path.join(plugin_dir, 'i18n', 'resources', 'en_US.json')
163163
add_i18n(en_us, add_json)
164164
for f in i18n_files:
165165
i18n_path = os.path.join(plugin_dir, 'i18n', 'resources', f)

old-i18n/add_these.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +0,0 @@
1-
[
2-
3-
{"id": "Create a new VLAN.", "translation": "Create a new VLAN."},
4-
{"id": "Get details about a VLAN.", "translation": "Get details about a VLAN."},
5-
{"id": "LUN_ID", "translation": "LUN_ID"},
6-
{"id": "List all the options for creating VLAN.", "translation": "List all the options for creating VLAN."},
7-
{"id": "SNAPSHOT_ID", "translation": "SNAPSHOT_ID"},
8-
{"id": "${COMMAND_NAME} sl vlan detail IDENTIFIER [OPTIONS]\n\nEXAMPLE:\n\t${COMMAND_NAME} sl vlan detail 12345678\t--no-vs --no-hardware\n\tThis command shows details of vlan with ID 12345678, and not list virtual server or hardware server.", "translation": "${COMMAND_NAME} sl vlan detail IDENTIFIER [OPTIONS]\n\nEXAMPLE:\n\t${COMMAND_NAME} sl vlan detail 12345678\t--no-vs --no-hardware\n\tThis command shows details of vlan with ID 12345678, and not list virtual server or hardware server."},
9-
{"id": "Cancel a VLAN.", "translation": "Cancel a VLAN."},
10-
{"id": "${COMMAND_NAME} sl vlan edit IDENTIFIER [OPTIONS]\n\t\nEXAMPLE:\n\t${COMMAND_NAME} sl vlan edit 12345678 -n myvlan-rename\n\tThis command updates vlan with ID 12345678 and gives it a new name "myvlan-rename".", "translation": "${COMMAND_NAME} sl vlan edit IDENTIFIER [OPTIONS]\n\t\nEXAMPLE:\n\t${COMMAND_NAME} sl vlan edit 12345678 -n myvlan-rename\n\tThis command updates vlan with ID 12345678 and gives it a new name "myvlan-rename"."},
11-
{"id": "${COMMAND_NAME} sl vlan create [OPTIONS]\n\t\nEXAMPLE:\n\t${COMMAND_NAME} sl vlan create -t public -d dal09 -n myvlan\n\tThis command creates a public vlan located in datacenter dal09 named "myvlan".\n\t${COMMAND_NAME} sl vlan create -r bcr01a.dal09 -n myvlan\n\tThis command creates a vlan on router bcr01a.dal09 named "myvlan".", "translation": "${COMMAND_NAME} sl vlan create [OPTIONS]\n\t\nEXAMPLE:\n\t${COMMAND_NAME} sl vlan create -t public -d dal09 -n myvlan\n\tThis command creates a public vlan located in datacenter dal09 named "myvlan".\n\t${COMMAND_NAME} sl vlan create -r bcr01a.dal09 -n myvlan\n\tThis command creates a vlan on router bcr01a.dal09 named "myvlan"."},
12-
{"id": "${COMMAND_NAME} sl vlan cancel IDENTIFIER [OPTIONS]\n\t\nEXAMPLE:\n\t${COMMAND_NAME} sl vlan cancel 12345678 -f\n\tThis command cancels vlan with ID 12345678 without asking for confirmation.", "translation": "${COMMAND_NAME} sl vlan cancel IDENTIFIER [OPTIONS]\n\t\nEXAMPLE:\n\t${COMMAND_NAME} sl vlan cancel 12345678 -f\n\tThis command cancels vlan with ID 12345678 without asking for confirmation."},
13-
{"id": "Edit the details about a VLAN.", "translation": "Edit the details about a VLAN."},
14-
{"id": "${COMMAND_NAME} sl vlan list [OPTIONS]\n\t\nEXAMPLE:\n\t${COMMAND_NAME} sl vlan list -d dal09 --sortby number\n\tThis commands lists all vlans on current account filtering by datacenter equals to dal09, and sort them by vlan number.\n\t\nNote: In field Pod, if add (*) indicated that closed soon", "translation": "${COMMAND_NAME} sl vlan list [OPTIONS]\n\t\nEXAMPLE:\n\t${COMMAND_NAME} sl vlan list -d dal09 --sortby number\n\tThis commands lists all vlans on current account filtering by datacenter equals to dal09, and sort them by vlan number.\n\t\nNote: In field Pod, if add (*) indicated that closed soon"},
15-
{"id": "List all the VLANs on your account.", "translation": "List all the VLANs on your account."}
16-
]

old-i18n/remove_these.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
[
2-
3-
{"id": "List all the VLANs on your account", "translation": "List all the VLANs on your account"},
4-
{"id": "Edit the details about a VLAN", "translation": "Edit the details about a VLAN"},
5-
{"id": "List all the options for creating VLAN", "translation": "List all the options for creating VLAN"},
6-
{"id": "Get details about a VLAN", "translation": "Get details about a VLAN"},
7-
{"id": "${COMMAND_NAME} sl vlan cancel IDENTIFIER [OPTIONS]\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl vlan cancel 12345678 -f\n This command cancels vlan with ID 12345678 without asking for confirmation.", "translation": "${COMMAND_NAME} sl vlan cancel IDENTIFIER [OPTIONS]\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl vlan cancel 12345678 -f\n This command cancels vlan with ID 12345678 without asking for confirmation."},
8-
{"id": "${COMMAND_NAME} sl block snapshot-get-notification-status VOLUME_ID\n\nEXAMPLE:\n\t${COMMAND_NAME} sl block snapshot-get-notification-status VOLUME_ID\n\tGet snapshots space usage threshold warning flag setting for a given volume.", "translation": "${COMMAND_NAME} sl block snapshot-get-notification-status VOLUME_ID\n\nEXAMPLE:\n\t${COMMAND_NAME} sl block snapshot-get-notification-status VOLUME_ID\n\tGet snapshots space usage threshold warning flag setting for a given volume."},
9-
{"id": "${COMMAND_NAME} sl vlan list [OPTIONS]\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl vlan list -d dal09 --sortby number\n This commands lists all vlans on current account filtering by datacenter equals to dal09, and sort them by vlan number.\n \nNote: In field Pod, if add (*) indicated that closed soon", "translation": "${COMMAND_NAME} sl vlan list [OPTIONS]\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl vlan list -d dal09 --sortby number\n This commands lists all vlans on current account filtering by datacenter equals to dal09, and sort them by vlan number.\n \nNote: In field Pod, if add (*) indicated that closed soon"},
10-
{"id": "${COMMAND_NAME} sl vlan detail IDENTIFIER [OPTIONS]\n\nEXAMPLE:\n ${COMMAND_NAME} sl vlan detail 12345678\t--no-vs --no-hardware\n This command shows details of vlan with ID 12345678, and not list virtual server or hardware server.", "translation": "${COMMAND_NAME} sl vlan detail IDENTIFIER [OPTIONS]\n\nEXAMPLE:\n ${COMMAND_NAME} sl vlan detail 12345678\t--no-vs --no-hardware\n This command shows details of vlan with ID 12345678, and not list virtual server or hardware server."},
11-
{"id": "Cancel a VLAN", "translation": "Cancel a VLAN"},
12-
{"id": "Create a new VLAN", "translation": "Create a new VLAN"},
13-
{"id": "${COMMAND_NAME} sl vlan edit IDENTIFIER [OPTIONS]\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl vlan edit 12345678 -n myvlan-rename\n This command updates vlan with ID 12345678 and gives it a new name "myvlan-rename".", "translation": "${COMMAND_NAME} sl vlan edit IDENTIFIER [OPTIONS]\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl vlan edit 12345678 -n myvlan-rename\n This command updates vlan with ID 12345678 and gives it a new name "myvlan-rename"."},
14-
{"id": "${COMMAND_NAME} sl block volume-detail VOLUME_ID [OPTIONS]\n\nEXAMPLE:\n ${COMMAND_NAME} sl block volume-detail 12345678 \n This command shows details of volume with ID 12345678.", "translation": "${COMMAND_NAME} sl block volume-detail VOLUME_ID [OPTIONS]\n\nEXAMPLE:\n ${COMMAND_NAME} sl block volume-detail 12345678 \n This command shows details of volume with ID 12345678."},
15-
{"id": "${COMMAND_NAME} sl block snapshot-delete SNAPSHOT_ID\n\nEXAMPLE:\n ${COMMAND_NAME} sl block snapshot-delete 12345678 \n This command deletes snapshot with ID 12345678.", "translation": "${COMMAND_NAME} sl block snapshot-delete SNAPSHOT_ID\n\nEXAMPLE:\n ${COMMAND_NAME} sl block snapshot-delete 12345678 \n This command deletes snapshot with ID 12345678."},
16-
{"id": "${COMMAND_NAME} sl vlan options\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl vlan options\n This command lists all options for creating a vlan, eg. vlan type, datacenters, subnet size, routers, etc.", "translation": "${COMMAND_NAME} sl vlan options\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl vlan options\n This command lists all options for creating a vlan, eg. vlan type, datacenters, subnet size, routers, etc."},
17-
{"id": "${COMMAND_NAME} sl vlan create [OPTIONS]\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl vlan create -t public -d dal09 -n myvlan\n This command creates a public vlan located in datacenter dal09 named "myvlan".\n ${COMMAND_NAME} sl vlan create -r bcr01a.dal09 -n myvlan\n This command creates a vlan on router bcr01a.dal09 named "myvlan".", "translation": "${COMMAND_NAME} sl vlan create [OPTIONS]\n\t\nEXAMPLE:\n ${COMMAND_NAME} sl vlan create -t public -d dal09 -n myvlan\n This command creates a public vlan located in datacenter dal09 named "myvlan".\n ${COMMAND_NAME} sl vlan create -r bcr01a.dal09 -n myvlan\n This command creates a vlan on router bcr01a.dal09 named "myvlan"."}
18-
]

plugin/i18n/resources/de_DE.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,6 @@
123123
"id": "${COMMAND_NAME} sl event-log get [OPTIONS]\n\nEXAMPLE: \n ${COMMAND_NAME} sl event-log get \n ${COMMAND_NAME} sl event-log get --limit 5 --obj-id 123456 --obj-event Create --metadata\n ${COMMAND_NAME} sl event-log get --date-min 2021-03-31 --date-max 2021-04-31",
124124
"translation": "${COMMAND_NAME} sl event-log get [OPTIONEN]\n\nBEISPIEL: \n ${COMMAND_NAME} sl event-log get \n ${COMMAND_NAME} sl event-log get --limit 5 --obj-id 123456 --obj-event Create --metadata\n ${COMMAND_NAME} sl event-log get --date-min 2021-03-31 --date-max 2021-04-31"
125125
},
126-
{
127-
"id": "EXAMPLE: \n${COMMAND_NAME} sl firewall detail vs:12345\n${COMMAND_NAME} sl firewall detail server:234567\n${COMMAND_NAME} sl firewall detail vlan:345678\n${COMMAND_NAME} sl firewall detail multiVlan:456789",
128-
"translation": "BEISPIEL: \n${COMMAND_NAME} sl firewall detail vs:12345\n${COMMAND_NAME} sl firewall detail server:234567\n${COMMAND_NAME} sl firewall detail vlan:345678\n${COMMAND_NAME} sl firewall detail multiVlan:456789"
129-
},
130126
{
131127
"id": "${COMMAND_NAME} sl globalip assign IDENTIFIER TARGET [OPTIONS]\n\nEXAMPLE:\n ${COMMAND_NAME} sl globalip assign 12345678 9.111.123.456\n\tThis command assigns IP address with ID 12345678 to a target device whose IP address is 9.111.123.456.",
132128
"translation": "${COMMAND_NAME} sl globalip assign IDENTIFIER TARGET [OPTIONEN]\n\nBEISPIEL:\n ${COMMAND_NAME} sl globalip assign 12345678 9.111.123.456\nDieser Befehl ordnet eine IP-Adresse mit der ID 12345678 zu einem Zielgerät mit der IP-Adresse 9.111.123.456 zu."
@@ -2523,6 +2519,10 @@
25232519
"id": "EXAMPLE: \n ${COMMAND_NAME} sl order place-quote CLOUD_SERVER DALLAS13 GUEST_CORES_4 RAM_16_GB REBOOT_REMOTE_CONSOLE 1_GBPS_PUBLIC_PRIVATE_NETWORK_UPLINKS BANDWIDTH_0_GB_2 1_IP_ADDRESS GUEST_DISK_100_GB_SAN OS_UBUNTU_16_04_LTS_XENIAL_XERUS_MINIMAL_64_BIT_FOR_VSI MONITORING_HOST_PING NOTIFICATION_EMAIL_AND_TICKET AUTOMATED_NOTIFICATION UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT NESSUS_VULNERABILITY_ASSESSMENT_REPORTING --extras '{\"virtualGuests\": [{\"hostname\": \"test\", \"domain\": \"softlayer.com\"}]}' --complex-type SoftLayer_Container_Product_Order_Virtual_Guest --name \"foobar\" --send-email\n This command places a quote for a VSI with 4 CPU, 16 GB RAM, 100 GB SAN disk, Ubuntu 16.04, and 1 Gbps public & private uplink in datacenter dal13",
25242520
"translation": "BEISPIEL: \n ${COMMAND_NAME} sl order place-quote CLOUD_SERVER DALLAS13 GUEST_CORES_4 RAM_16_GB REBOOT_REMOTE_CONSOLE 1_GBPS_PUBLIC_PRIVATE_NETWORK_UPLINKS BANDWIDTH_0_GB_2 1_IP_ADDRESS GUEST_DISK_100_GB_SAN OS_UBUNTU_16_04_LTS_XENIAL_XERUS_MINIMAL_64_BIT_FOR_VSI MONITORING_HOST_PING NOTIFICATION_EMAIL_AND_TICKET AUTOMATED_NOTIFICATION UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT NESSUS_VULNERABILITY_ASSESSMENT_REPORTING --extras '{\"virtualGuests\": [{\"hostname\": \"test\", \"domain\": \"softlayer.com\"}]}' --complex-type SoftLayer_Container_Product_Order_Virtual_Guest --name \"foobar\" --send-email\n Mit diesem Befehl wird ein Angebot für eine VSI mit 4 CPUs erstellt. 16 GB RAM, 100 GB SAN-Platte, Ubuntu 16.04 und 1 Gb/s öffentlichem und privatem Uplink im Rechenzentrum dal13"
25252521
},
2522+
{
2523+
"id": "EXAMPLE: \n${COMMAND_NAME} sl firewall detail vs:12345\n${COMMAND_NAME} sl firewall detail server:234567\n${COMMAND_NAME} sl firewall detail vlan:345678\n${COMMAND_NAME} sl firewall detail multiVlan:456789",
2524+
"translation": "BEISPIEL: \n${COMMAND_NAME} sl firewall detail vs:12345\n${COMMAND_NAME} sl firewall detail server:234567\n${COMMAND_NAME} sl firewall detail vlan:345678\n${COMMAND_NAME} sl firewall detail multiVlan:456789"
2525+
},
25262526
{
25272527
"id": "Each user can only have a single API key.",
25282528
"translation": "Jeder Benutzer kann nur einen einzigen API-Schlüssel haben."

plugin/i18n/resources/en_US.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,6 @@
123123
"id": "${COMMAND_NAME} sl event-log get [OPTIONS]\n\nEXAMPLE: \n ${COMMAND_NAME} sl event-log get \n ${COMMAND_NAME} sl event-log get --limit 5 --obj-id 123456 --obj-event Create --metadata\n ${COMMAND_NAME} sl event-log get --date-min 2021-03-31 --date-max 2021-04-31",
124124
"translation": "${COMMAND_NAME} sl event-log get [OPTIONS]\n\nEXAMPLE: \n ${COMMAND_NAME} sl event-log get \n ${COMMAND_NAME} sl event-log get --limit 5 --obj-id 123456 --obj-event Create --metadata\n ${COMMAND_NAME} sl event-log get --date-min 2021-03-31 --date-max 2021-04-31"
125125
},
126-
{
127-
"id": "EXAMPLE: \n${COMMAND_NAME} sl firewall detail vs:12345\n${COMMAND_NAME} sl firewall detail server:234567\n${COMMAND_NAME} sl firewall detail vlan:345678\n${COMMAND_NAME} sl firewall detail multiVlan:456789",
128-
"translation": "EXAMPLE: \n${COMMAND_NAME} sl firewall detail vs:12345\n${COMMAND_NAME} sl firewall detail server:234567\n${COMMAND_NAME} sl firewall detail vlan:345678\n${COMMAND_NAME} sl firewall detail multiVlan:456789"
129-
},
130126
{
131127
"id": "${COMMAND_NAME} sl globalip assign IDENTIFIER TARGET [OPTIONS]\n\nEXAMPLE:\n ${COMMAND_NAME} sl globalip assign 12345678 9.111.123.456\n\tThis command assigns IP address with ID 12345678 to a target device whose IP address is 9.111.123.456.",
132128
"translation": "${COMMAND_NAME} sl globalip assign IDENTIFIER TARGET [OPTIONS]\n\nEXAMPLE:\n ${COMMAND_NAME} sl globalip assign 12345678 9.111.123.456\n\tThis command assigns IP address with ID 12345678 to a target device whose IP address is 9.111.123.456."
@@ -2527,6 +2523,10 @@
25272523
"id": "EXAMPLE: \n ${COMMAND_NAME} sl order place-quote CLOUD_SERVER DALLAS13 GUEST_CORES_4 RAM_16_GB REBOOT_REMOTE_CONSOLE 1_GBPS_PUBLIC_PRIVATE_NETWORK_UPLINKS BANDWIDTH_0_GB_2 1_IP_ADDRESS GUEST_DISK_100_GB_SAN OS_UBUNTU_16_04_LTS_XENIAL_XERUS_MINIMAL_64_BIT_FOR_VSI MONITORING_HOST_PING NOTIFICATION_EMAIL_AND_TICKET AUTOMATED_NOTIFICATION UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT NESSUS_VULNERABILITY_ASSESSMENT_REPORTING --extras '{\"virtualGuests\": [{\"hostname\": \"test\", \"domain\": \"softlayer.com\"}]}' --complex-type SoftLayer_Container_Product_Order_Virtual_Guest --name \"foobar\" --send-email\n This command places a quote for a VSI with 4 CPU, 16 GB RAM, 100 GB SAN disk, Ubuntu 16.04, and 1 Gbps public & private uplink in datacenter dal13",
25282524
"translation": "EXAMPLE: \n ${COMMAND_NAME} sl order place-quote CLOUD_SERVER DALLAS13 GUEST_CORES_4 RAM_16_GB REBOOT_REMOTE_CONSOLE 1_GBPS_PUBLIC_PRIVATE_NETWORK_UPLINKS BANDWIDTH_0_GB_2 1_IP_ADDRESS GUEST_DISK_100_GB_SAN OS_UBUNTU_16_04_LTS_XENIAL_XERUS_MINIMAL_64_BIT_FOR_VSI MONITORING_HOST_PING NOTIFICATION_EMAIL_AND_TICKET AUTOMATED_NOTIFICATION UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT NESSUS_VULNERABILITY_ASSESSMENT_REPORTING --extras '{\"virtualGuests\": [{\"hostname\": \"test\", \"domain\": \"softlayer.com\"}]}' --complex-type SoftLayer_Container_Product_Order_Virtual_Guest --name \"foobar\" --send-email\n This command places a quote for a VSI with 4 CPU, 16 GB RAM, 100 GB SAN disk, Ubuntu 16.04, and 1 Gbps public & private uplink in datacenter dal13"
25292525
},
2526+
{
2527+
"id": "EXAMPLE: \n${COMMAND_NAME} sl firewall detail vs:12345\n${COMMAND_NAME} sl firewall detail server:234567\n${COMMAND_NAME} sl firewall detail vlan:345678\n${COMMAND_NAME} sl firewall detail multiVlan:456789",
2528+
"translation": "EXAMPLE: \n${COMMAND_NAME} sl firewall detail vs:12345\n${COMMAND_NAME} sl firewall detail server:234567\n${COMMAND_NAME} sl firewall detail vlan:345678\n${COMMAND_NAME} sl firewall detail multiVlan:456789"
2529+
},
25302530
{
25312531
"id": "Each user can only have a single API key.",
25322532
"translation": "Each user can only have a single API key."

0 commit comments

Comments
 (0)