Project

General

Profile

Actions

Defect #21069

closed

Hard-coded label for hour

Defect #21069: Hard-coded label for hour

Added by Fabrice ROBIN about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Issues
Target version:
Resolution:
Fixed
Affected version:

Description

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.

Updated by Fabrice ROBIN about 11 years ago Actions #1

see Defect #17550

Updated by Toshi MARUYAMA about 11 years ago Actions #2

  • Description updated (diff)

Updated by Toshi MARUYAMA about 11 years ago Actions #3

  • Target version set to 3.2.0

Updated by Jean-Philippe Lang about 11 years ago Actions #4

  • Subject changed from hard-coded label for hour to Hard-coded label for hour
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Translation string added in r14759.

Updated by Daniel Ritz about 11 years ago Actions #5

Errm...it's now showing stuff like "2.5 h h":

     def l_hours_short(hours)
-      "%.2f h" % hours.to_f
+      l(:label_f_hour_short, :value => ("%.2f h" % hours.to_f))
     end

i.e. the format string still contains the " h"...

Updated by Toshi MARUYAMA about 11 years ago Actions #6

  • Status changed from Closed to Reopened

Updated by Jean-Philippe Lang about 11 years ago Actions #7

  • Status changed from Reopened to Closed

Fixed.

Actions

Also available in: PDF Atom