Skip to content

Commit

Permalink
Feature/10916 resourceadm translation (#10933)
Browse files Browse the repository at this point in the history
* Completing translation for resource dashboard

* Adding translation for policy page

* Adding translation resource page

* Implementing translation on about resource page

* Implementing translation for deploy page

* Completing translation

* removing whitespace

* adding mock tests

* Adding feedback from PR
  • Loading branch information
WilliamThorenfeldt authored Aug 29, 2023
1 parent 15e153d commit fc09b42
Show file tree
Hide file tree
Showing 22 changed files with 451 additions and 208 deletions.
111 changes: 110 additions & 1 deletion frontend/language/src/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1100,5 +1100,114 @@
"policy_editor.verification_modal_heading": "Delete rule?",
"policy_editor.verification_modal_text": "Are you sure want to delete this rule?",
"policy_editor.verification_modal_action_button": "Yes, delete rule",
"policy_editor.verification_modal_close_button": "No, go back"
"policy_editor.verification_modal_close_button": "No, go back",
"resourceadm.dashboard_spinner": "Loading resources",
"resourceadm.dashboard_num_resources": "All resources",
"resourceadm.dashboard_empty_list": "There are no resources with the name you searched for.",
"resourceadm.dashboard_header": "{{org}}'s resources",
"resourceadm.dashboard_import_resource": "Import resource",
"resourceadm.dashboard_create_resource": "Create new resource",
"resourceadm.dashboard_searchbox": "Search for a resource",
"resourceadm.dashboard_table_header_down_icon": "Show oldest first",
"resourceadm.dashboard_table_header_up_icon": "Show newest first",
"resourceadm.dashboard_table_header_last_changed": "Last changed",
"resourceadm.dashboard_table_header_policy_rules": "Policy rules",
"resourceadm.dashboard_table_header_edit": "Edit resource column",
"resourceadm.dashboard_table_row_missing_title": "Missing title in Norwegian Bokmål",
"resourceadm.dashboard_table_row_has_policy": "Has policy rules",
"resourceadm.dashboard_table_row_missing_policy": "Missing policy rules",
"resourceadm.dashboard_table_row_edit": "Edit",
"resourceadm.dahboard_import_modal_title": "Import a resource from Altinn 2",
"resourceadm.dahboard_import_modal_select_env": "Select the environment to import from",
"resourceadm.dahboard_import_modal_select_service": "Select the service to import",
"resourceadm.dahboard_import_modal_resource_name_and_id_text": "The resource name is suggested based on the service you have selected, and language support can be added om the next page. The id is suggested based on the resource name, and can be edited if you want a different one. Name can be changed later, while id cannot be changed.",
"resourceadm.dahboard_import_modal_import_button": "Import resource",
"resourceadm.dahboard_create_modal_title": "Create new resource",
"resourceadm.dahboard_create_modal_resource_name_and_id_text": "Choose a name and ID for the resource. Language support for names can be added on the next page. The ID is suggested based on the name you write and can be edited if you want a different one. Name can be changed later, while id cannot be changed.",
"resourceadm.dahboard_create_modal_create_button": "Create resource",
"resourceadm.dahboard_resource_name_and_id_resource_name": "Resource name (Norwegian Bokmål)",
"resourceadm.dahboard_resource_name_and_id_resource_id": "Resource id",
"resourceadm.dahboard_resource_name_and_id_delete_icon": "Delete new resource id",
"resourceadm.dahboard_resource_name_and_id_checkmark_icon": "Use new resource id",
"resourceadm.dahboard_resource_name_and_id_edit_id_icon": "Edit resource id",
"resourceadm.dahboard_resource_name_and_id_error": "It already exists a resource with the selected id.",
"resourceadm.policy_editor_title": "Policy rules",
"resourceadm.policy_editor_spinner": "Loading policy rules",
"resourceadm.resource_navigation_modal_title_policy": "Missing information in the policy rules",
"resourceadm.resource_navigation_modal_title_resource": "Missing information in the resource",
"resourceadm.resource_navigation_modal_text": "Some fields on the page have missing information or errors in completion. You can change or fix the information at any time before the resource is published.",
"resourceadm.resource_navigation_modal_button_stay": "Stay on the page",
"resourceadm.resource_navigation_modal_button_move_on": "Go to next page",
"resourceadm.about_resource_title": "Aboout the resource",
"resourceadm.about_resource_resource_type": "Resource type",
"resourceadm.about_resource_resource_type_label": "Select a resource type from the list below",
"resourceadm.about_resource_resource_type_error": "You must add a resource type.",
"resourceadm.about_resource_resource_type_default": "Default",
"resourceadm.about_resource_resource_type_system_resource": "System resource",
"resourceadm.about_resource_resource_type_maskinporten": "Maskinporten schema",
"resourceadm.about_resource_resource_title_label": "Resource name (Norwegian Bokmål)",
"resourceadm.about_resource_resource_title_sr_label": "Name of the resource - The name will appear to the users, and should be descriptive of what the service is about. Make sure the name is understandable and recognizable.",
"resourceadm.about_resource_resource_title_text": "The name will appear to the users, and should be descriptive of what the service is about. Make sure the name is understandable and recognizable.",
"resourceadm.about_resource_translation_title": "Resource name",
"resourceadm.about_resource_translation_description": "Description",
"resourceadm.about_resource_translation_right_description": "Delegation text",
"resourceadm.about_resource_langauge_error_missing_1": "You are missing translation for {{usageString}} in {{lang}}.",
"resourceadm.about_resource_langauge_error_missing_2": "You are missing translation for {{usageString}} in {{lang1}} and {{lang2}}.",
"resourceadm.about_resource_langauge_error_missing_3": "You are missing translation for {{usageString}} in {{lang1}}, {{lang2}}, and {{lang3}}.",
"resourceadm.about_resource_error_usage_string_title": "title",
"resourceadm.about_resource_error_usage_string_description": "description",
"resourceadm.about_resource_error_usage_string_rights_description": "delegation text",
"resourceadm.about_resource_resource_description_label": "Description (Norwegian Bokmål)",
"resourceadm.about_resource_resource_description_sr_label": "Description - Please describe the resource. The text may become visible in several areas across public web solutions.",
"resourceadm.about_resource_resource_description_text": "Please describe the resource. The text may become visible in several areas across public web solutions.",
"resourceadm.about_resource_homepage_label": "Homepage",
"resourceadm.about_resource_homepage_sr_label": "Homepage - Link to information about where the end user can find the service and information about it.",
"resourceadm.about_resource_homepage_text": "Link to information about where the end user can find the service and information about it.",
"resourceadm.about_resource_keywords_label": "Keywords",
"resourceadm.about_resource_keywords_sr_label": "Keywords - Add keywords for the resource, separating each word with a comma \\\"\\,\". Examples are words that are easy to search for.",
"resourceadm.about_resource_keywords_text": "Add keywords for the resource, separating each word with a comma \\\"\\,\". Examples are words that are easy to search for.",
"resourceadm.about_resource_sector_label": "Sector",
"resourceadm.about_resource_sector_sr_label": "Sector - Choose which sector(s) the service should relate to. A service can be related to several industries/sectors.",
"resourceadm.about_resource_sector_text": "Choose which sector(s) the service should relate to. A service can be related to several industries/sectors.",
"resourceadm.about_resource_thematic_label": "Thematic area",
"resourceadm.about_resource_thematic_sr_label": "Thematic area - Choose which thematic area the service covers. A service can be related to a thematic area.",
"resourceadm.about_resource_thematic_text": "Choose which thematic area the service covers. A service can be related to a thematic area.",
"resourceadm.about_resource_rights_description_label": "Rights description",
"resourceadm.about_resource_rights_description_sr_label": "Rights description - The delegation text explains to the end user which rights are delegated and what the recipient of rights can perform on behalf of the person for whom he has been granted the right.",
"resourceadm.about_resource_rights_description_text": "The delegation text explains to the end user which rights are delegated and what the recipient of rights can perform on behalf of the person for whom he has been granted the right.",
"resourceadm.about_resource_public_service_label": "Display in public directories",
"resourceadm.about_resource_public_service_text": "After publication, the resource will be available in catalogues, including in altinn, on norge.no and data.norge.no.",
"resourceadm.about_resource_public_service_show_text": "The resource {{showText}} shown in public directories.",
"resourceadm.about_resource_public_service_show": "will be",
"resourceadm.about_resource_public_service_dont_show": "will not be",
"resourceadm.about_resource_spinner": "Loading resource",
"resourceadm.switch_toggle": "Toggle off or on",
"resourceadm.left_nav_bar_back": "Back to dashboard",
"resourceadm.left_nav_bar_about": "About the resource",
"resourceadm.left_nav_bar_policy": "Policy rules",
"resourceadm.left_nav_bar_deploy": "Deploy",
"resourceadm.left_nav_bar_migrate": "Migrate",
"resourceadm.deploy_title": "Publish the resource",
"resourceadm.deploy_spinner": "Loading publish status",
"resourceadm.deploy_status_card_success": "The resource is ready to be published",
"resourceadm.deploy_status_card_error_title": "You must fix the following errors before you can proceed",
"resourceadm.deploy_status_card_error_resource_page": "{{num}} fields are missing completion or contain errors on the 'About the resource' page.",
"resourceadm.deploy_status_card_error_resource_page_default": "There are errors on the 'About the resource' page.",
"resourceadm.deploy_status_card_error_policy_page": "{{num}} fields are missing completion or contain errors on the 'Policy rules' page.",
"resourceadm.deploy_status_card_error_policy_page_default": "There are errors on the 'Policy rules' page.",
"resourceadm.deploy_status_card_error_policy_page_missing": "You must have at least one rule on the 'Policy rules' page.",
"resourceadm.deploy_status_card_error_version": "Local repo missing version number. Please upload a version number in the field below.",
"resourceadm.deploy_status_card_error_repo": "Local repo is not in sync with remote repo. Please upload and download so you are in sync.",
"resourceadm.deploy_description": "By publishing resources, the information becomes available on <0>Altinn.no</0> and other websites that list resources in Altinn. End users can then start delegating rights to the resource. You should first verify in a test environment that texts and metadata are presented as intended before publishing to production.",
"resourceadm.deploy_version_label": "New version number",
"resourceadm.deploy_version_text": "A resource needs to have a version number before it is published. In case of changes, the version number must be updated before new publication.",
"resourceadm.deploy_version_input_label": "Set a version number for the changes you have made",
"resourceadm.deploy_version_upload_button": "Upload your changes",
"resourceadm.deploy_select_env_label": "Select the environment where you want to publish the changes",
"resourceadm.deploy_test_env": "Test environment TT-02",
"resourceadm.deploy_prod_env": "Production environment",
"resourceadm.deploy_card_arrow_icon": "New version for {{env}}",
"resourceadm.deploy_card_publish": "Publish to {{env}}",
"resourceadm.right_translation_bar_title": "Translation",
"resourceadm.right_translation_bar_alert": "In order to publish the resource, you must add a Norwegian and English translation."
}
Loading

0 comments on commit fc09b42

Please sign in to comment.