]> source.dussan.org Git - redmine.git/commitdiff
Fix hardcoded string "auto" on user preferences page (#39879).
authorMarius Balteanu <marius.balteanu@zitec.com>
Fri, 22 Dec 2023 01:58:28 +0000 (01:58 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Fri, 22 Dec 2023 01:58:28 +0000 (01:58 +0000)
Patch by @salmanmp.

git-svn-id: https://svn.redmine.org/redmine/trunk@22549 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb
config/locales/en.yml
config/locales/fa.yml

index 148d07b3edd7127a6b4c8c744bf6a8f83b2c912d..ac7cc3c50351f94091e2072db6e711fca3d34441 100644 (file)
@@ -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)
index 672d4d5302c614693af7b792c262d293fb5d02ed..2bbd776a3c23857931cf6a5dcbfb71a50970add0 100644 (file)
@@ -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
index 6846c3f7adabb3f81abe8223db1e215f71958115..7b4efe1b1f0352ab84296aef1e99b3e5088cd191 100644 (file)
@@ -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: مسئله‌های نظارت‌شده