プロジェクト

全般

プロフィール

Vote #79807

完了

Translation missing for filter by project status

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Issues filter_56
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
56
version_id:
146
issue_org_id:
30718
author_id:
354613
assigned_to_id:
332
comments:
13
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
145
ステータス-->[Closed]

説明

Redmine version: 4.0.1.stable
Ruby version: 2.6.0


journals

I can reproduce this issue on my upgraded production instance. Surprisingly it doesn't occur in my development setup.
--------------------------------------------------------------------------------
The problem is also present in version 4.0.0.stable

Environment:
Redmine version 4.0.0.stable
Ruby version 2.5.1-p57 (2018-03-29) [x86_64-linux-gnu]
Rails version 5.2.2
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Subversion 1.9.7
Git 2.17.1
Filesystem
Redmine plugins:
redmine_agile 1.4.7
redmine_issue_dynamic_edit 0.6.5
redmine_lightbox2 0.5.0
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I can confirm the problem.

status translations are evaluated only once during start of the server, see
https://github.com/redmine/redmine/blob/4e9886f9b5d4df10cd76d67312c06b8af5a17903/app/models/project.rb#L28

as a result it'll always be in english or translation missing (in combination with some 3rd party plugins).

QueryTest#test_project_statuses_values_should_return_only_active_and_closed_statuses should also be fixed because the test always expects english strings even if the current locale is different

<pre>
Expected: [["active", "1"], ["closed", "5"]]
Actual: [["actif", "1"], ["fermé", "5"]]
</pre>
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Could you test, please, the attached patch and tell me if it fixes the problem?
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
works fine, thanks
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Patches to commit:
1. attachment:0001-Fix-30718.patch
2. attachment:query_test.rb.patch
--------------------------------------------------------------------------------
Committed. Thank you all for reporting, investigating, and fixing this issue.
--------------------------------------------------------------------------------
Merged to 4.0-stable branch.
--------------------------------------------------------------------------------


related_issues

relates,Closed,20081,Filter issues and time entries by project status

Admin Redmine さんが約4年前に更新

  • カテゴリIssues filter_56 にセット
  • 対象バージョン4.0.2_146 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0