From 2634d43c8c33e1fcfeca85f80eb30e3af341a745 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Fri, 22 Dec 2023 01:58:28 +0000 Subject: [PATCH] Fix hardcoded string "auto" on user preferences page (#39879). Patch by @salmanmp. git-svn-id: https://svn.redmine.org/redmine/trunk@22549 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 2 +- config/locales/en.yml | 1 + config/locales/fa.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 148d07b3e..ac7cc3c50 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1474,7 +1474,7 @@ module ApplicationHelper end def lang_options_for_select(blank=true) - (blank ? [["(auto)", ""]] : []) + languages_options + (blank ? [["(#{l('label_option_auto_lang')})", ""]] : []) + languages_options end def labelled_form_for(*args, &proc) diff --git a/config/locales/en.yml b/config/locales/en.yml index 672d4d530..2bbd776a3 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -879,6 +879,7 @@ en: label_diff_inline: inline label_diff_side_by_side: side by side label_options: Options + label_option_auto_lang: auto label_copy_workflow_from: Copy workflow from label_permissions_report: Permissions report label_watched_issues: Watched issues diff --git a/config/locales/fa.yml b/config/locales/fa.yml index 6846c3f7a..7b4efe1b1 100644 --- a/config/locales/fa.yml +++ b/config/locales/fa.yml @@ -875,6 +875,7 @@ fa: label_diff_inline: هم‌ردیف label_diff_side_by_side: پهلوبه‌پهلو label_options: گزینه‌ها + label_option_auto_lang: خودکار label_copy_workflow_from: رونویسی گردش کار از روی label_permissions_report: گزارش دست‌رسی‌ها label_watched_issues: مسئله‌های نظارت‌شده -- 2.39.5