Closed
Bug 189682
Opened 23 years ago
Closed 23 years ago
localize time units
Categories
(Other Applications Graveyard :: ChatZilla, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kairo, Assigned: rginda)
Details
Attachments
(1 file)
|
1.17 KB,
patch
|
rginda
:
review+
|
Details | Diff | Splinter Review |
In utils.js, you can find the formatDateOffset function:
http://lxr.mozilla.org/mozilla/source/extensions/irc/js/lib/utils.js#378
The units "days", "hours", "minutes", and "seconds" are hardcoded there, and not
localizeable. They should move into a .properties file instead...
| Assignee | ||
Comment 1•23 years ago
|
||
Those are just the default values. If the code using this function cares about
localization it should use the |format| parameter, as ChatZilla does.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 2•23 years ago
|
||
rginda: the problem is that I got reports of people who got unlocalized
"sencods" strings in Chatzilla, though I've localized all occurrencies chatzilla
has in it's locale files...
I thought it would be this causing it - well, it seems I have to dig a bit
deeper, right?
| Assignee | ||
Comment 3•23 years ago
|
||
Oops, my bad. After actually grpping the ChatZilla source, it looks like the
callsites were never modified. I'm sure I had every intention of fixing this at
some point :)
handlers.js: var connectTime = formatDateOffset (Math.floor((new Date() -
handlers.js: formatDateOffset (Math.floor((new Date() - s.lastPing) /
1000)) :
handlers.js: [nick, formatDateOffset(Number(e.params[3])),
handlers.js: var delay = formatDateOffset ((new Date() - new
Date(Number(e.CTCPData))) /
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Summary: descriptions for time units are hardcoded in utils.js → localize time units
Comment 4•23 years ago
|
||
Updated•23 years ago
|
Attachment #118695 -
Flags: review?(rginda)
| Assignee | ||
Comment 5•23 years ago
|
||
Comment on attachment 118695 [details] [diff] [review]
patch v1
r=rginda
Attachment #118695 -
Flags: review?(rginda) → review+
| Assignee | ||
Updated•23 years ago
|
Whiteboard: cz-patch
Comment 6•23 years ago
|
||
checked in
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Whiteboard: cz-patch
Updated•21 years ago
|
Product: Core → Other Applications
Updated•1 year ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•