プロジェクト

全般

プロフィール

Vote #76846

完了

Hard-coded label for hour

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
2
version_id:
102
issue_org_id:
21069
author_id:
56540
assigned_to_id:
1
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
103
ステータス-->[Closed]

説明

The commit r14273, which has been merged into the 3.1 branch, introduced an error as a "h" label is hard-coded in the function l_hours_short:

"%.2f h" % hours.to_f

This label should be translated through i18n. Asian users will surely report this anomaly.


journals

see Defect #17550
--------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------
Translation string added in r14759.
--------------------------------------------------------------------------------
Errm...it's now showing stuff like "2.5 h h":

<pre>
def l_hours_short(hours)
- "%.2f h" % hours.to_f
+ l(:label_f_hour_short, :value => ("%.2f h" % hours.to_f))
end
</pre>
i.e. the format string still contains the " h"...
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Fixed.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリIssues_2 にセット
  • 対象バージョン3.2.0_102 にセット

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

いいね!0
いいね!0