Vote #76846
完了Hard-coded label for hour
0%
説明
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.
--------------------------------------------------------------------------------