OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#53040] fixed UI texts in storage view
Eric Schubert2aa0266442b6
diff --git a/modules/storages/app/components/storages/admin/oauth_application_info_component.html.erb b/modules/storages/app/components/storages/admin/oauth_application_info_component.html.erbindex f3fbfa3abcc..867ec5ceb1d 100644--- a/modules/storages/app/components/storages/admin/oauth_application_info_component.html.erb+++ b/modules/storages/app/components/storages/admin/oauth_application_info_component.html.erb@@ -27,11 +27,8 @@icon: :sync,scheme: :invisible,type: :submit,- aria: {- label: I18n.t("storages.buttons.replace_provider_type_oauth",- provider_type: I18n.t("storages.provider_types.#{storage.short_provider_type}.name"))- },- data: { confirm: I18n.t("storages.confirm_replace_oauth_application") },+ aria: { label: I18n.t('storages.buttons.replace_oauth_application') },+ data: { confirm: I18n.t('storages.confirm_replace_oauth_application') },test_selector: 'storage-replace-openproject-oauth-application-button'))diff --git a/modules/storages/app/components/storages/admin/oauth_client_info_component.rb b/modules/storages/app/components/storages/admin/oauth_client_info_component.rbindex 3fd830a7391..1db9fb9af2a 100644--- a/modules/storages/app/components/storages/admin/oauth_client_info_component.rb+++ b/modules/storages/app/components/storages/admin/oauth_client_info_component.rb@@ -42,12 +42,15 @@ module Storages::Adminenddef edit_icon_button_options+ label = I18n.t("storages.buttons.replace_oauth_client",+ provider_type: I18n.t("storages.provider_types.#{storage.short_provider_type}.name"))+{icon: oauth_client_configured? ? :sync : :pencil,tag: :a,href: url_helpers.new_admin_settings_storage_oauth_client_path(storage),scheme: :invisible,- aria: { label: I18n.t("storages.label_edit_storage_oauth_client") },+ aria: { label: },data: edit_icon_button_data_options,test_selector: 'storage-edit-oauth-client-button'}@@ -57,7 +60,10 @@ module Storages::Admindef edit_icon_button_data_options{}.tap do |data_h|- data_h[:confirm] = I18n.t("storages.confirm_replace_oauth_client") if oauth_client_configured?+ if oauth_client_configured?+ provider_type = I18n.t("storages.provider_types.#{storage.short_provider_type}.name")+ data_h[:confirm] = I18n.t('storages.confirm_replace_oauth_client', provider_type:)+ enddata_h[:turbo_stream] = trueendenddiff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.ymlindex a38edcb7dd2..3f5f374aea9 100644--- a/modules/storages/config/locales/en.yml+++ b/modules/storages/config/locales/en.yml@@ -54,7 +54,8 @@ en:complete_without_setup: Complete without itdone_complete_setup: Done, complete setupdone_continue: Done, continue- replace_provider_type_oauth: Replace %{provider_type} OAuth+ replace_oauth_application: Replace OpenProject OAuth+ replace_oauth_client: Replace %{provider_type} OAuthsave_and_continue: Save and continueselect_folder: Select folderconfiguration_checks:@@ -63,8 +64,14 @@ en:one_drive: Allow OpenProject to access Azure data using OAuth to connect OneDrive/Sharepoint.redirect_uri_incomplete:one_drive: Complete the setup with the correct URI redirection.- confirm_replace_oauth_application: Are you sure? All users will have to authorize again against OpenProject.- confirm_replace_oauth_client: Are you sure? All users will have to authorize again against the storage.+ confirm_replace_oauth_application: |-+ This action will reset the current OAuth credentials. After confirming you will have to reenter the credentials+ in the client at the storage provider and all remote users will have to authorize against OpenProject again. Are+ you sure you want to proceed?+ confirm_replace_oauth_client: |-+ This action will reset the current OAuth credentials. After confirming you will have to enter new credentials+ from the storage provider and all users will have to authorize against %{provider_type} again. Are you sure you+ want to proceed?delete_warning:input_delete_confirmation: Enter the file storage name %{file_storage} to confirm deletion.irreversible_notice: Deleting a file storage is an irreversible action.