Skip to content
Snippets Groups Projects
Verified Commit 6bbb4651 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Add translations for currently existing workflow forms

parent c8df501d
No related branches found
No related tags found
1 merge request!31Feature/update translations
...@@ -2,8 +2,34 @@ ...@@ -2,8 +2,34 @@
"forms": { "forms": {
"fields": { "fields": {
"confirm": "Confirm", "confirm": "Confirm",
"confirm_info": "Please verify this form looks correct." "confirm_info": "Please verify this form looks correct.",
}
"pp_run_results": "Provisioning proxy results are not ready yet.",
"site_bgp_community_id": "Site BGP community ID",
"site_internal_id": "Site internal ID",
"site_tier": "Site tier",
"hostname": "Hostname of the new device, only the part that comes before the first period",
"ts_address": "IP address of the terminal server",
"ts_port": "Port number of the terminal server",
"device_vendor": "Device vendor",
"device_role": "Device role",
"geant_s_sid": "GÉANT S-SID",
"iptrunk_description": "IPtrunk description",
"iptrunk_type": "IPtrunk type",
"iptrunk_speed": "Capacity per port (in Gbits/s)",
"iptrunk_minimum_links": "Minimum amount of links",
"iptrunk_sideA_ae_iface": "Aggregated Ethernet interface name",
"iptrunk_sideA_ae_geant_a_sid": "GÉANT A-SID",
"iptrunk_sideA_ae_members": "Aggregated Ethernet member interface names",
"iptrunk_sideA_ae_members_descriptions": "Aggregated Ethernet member interface descriptions",
"iptrunk_sideB_ae_iface": "Aggregated Ethernet interface name",
"iptrunk_sideB_ae_geant_a_sid": "GÉANT A-SID",
"iptrunk_sideB_ae_members": "Aggregated Ethernet member interface names",
"iptrunk_sideB_ae_members_descriptions": "Aggregated Ethernet member interface descriptions"
}
}, },
"workflow": { "workflow": {
"modify_isis_metric": "Modify the ISIS metric." "modify_isis_metric": "Modify the ISIS metric."
......
...@@ -46,13 +46,9 @@ def site_selector() -> list: ...@@ -46,13 +46,9 @@ def site_selector() -> list:
site_subscriptions[str(site_id)] = site_description site_subscriptions[str(site_id)] = site_description
# noinspection PyTypeChecker # noinspection PyTypeChecker
return choice_list( return Choice(
Choice( "Select a site",
"site_selection", zip(site_subscriptions.keys(), site_subscriptions.items()),
zip(site_subscriptions.keys(), site_subscriptions.items()),
), # type:ignore
min_items=1,
max_items=1,
) )
...@@ -181,7 +177,7 @@ def provision_device_real( ...@@ -181,7 +177,7 @@ def provision_device_real(
return { return {
"subscription": subscription, "subscription": subscription,
"label_text": ( "label_text": (
"Deployment of base config for a new " "Deployment of base config for a new "
f"{subscription.device_type}. Deployment is being " f"{subscription.device_type}. Deployment is being "
"taken care of by the provisioning proxy, please " "taken care of by the provisioning proxy, please "
"wait for the results to come back before " "wait for the results to come back before "
......
...@@ -60,7 +60,8 @@ def initial_input_form_generator(product_name: str) -> FormGenerator: ...@@ -60,7 +60,8 @@ def initial_input_form_generator(product_name: str) -> FormGenerator:
class AeMembersListA(UniqueConstrainedList[str]): class AeMembersListA(UniqueConstrainedList[str]):
min_items = initial_user_input.iptrunk_minimum_links min_items = initial_user_input.iptrunk_minimum_links
DeviceEnumA = Choice("Device A", zip(devices.keys(), devices.items())) DeviceEnumA = Choice("Select a device", zip(devices.keys(),
devices.items()))
class CreateIptrunkSideAForm(FormPage): class CreateIptrunkSideAForm(FormPage):
class Config: class Config:
...@@ -76,7 +77,8 @@ def initial_input_form_generator(product_name: str) -> FormGenerator: ...@@ -76,7 +77,8 @@ def initial_input_form_generator(product_name: str) -> FormGenerator:
# We remove the selected device for side A, to prevent any loops # We remove the selected device for side A, to prevent any loops
devices.pop(str(user_input_side_a.iptrunk_sideA_node_id.name)) devices.pop(str(user_input_side_a.iptrunk_sideA_node_id.name))
DeviceEnumB = Choice("Device B", zip(devices.keys(), devices.items())) DeviceEnumB = Choice("Select a device", zip(devices.keys(),
devices.items()))
class AeMembersListB(UniqueConstrainedList[str]): class AeMembersListB(UniqueConstrainedList[str]):
min_items = len(user_input_side_a.iptrunk_sideA_ae_members) min_items = len(user_input_side_a.iptrunk_sideA_ae_members)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment