Closed Bug 189682 Opened 23 years ago Closed 23 years ago

localize time units

Categories

(Other Applications Graveyard :: ChatZilla, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kairo, Assigned: rginda)

Details

Attachments

(1 file)

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...
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
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?
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
Attached patch patch v1Splinter Review
Attachment #118695 - Flags: review?(rginda)
Comment on attachment 118695 [details] [diff] [review] patch v1 r=rginda
Attachment #118695 - Flags: review?(rginda) → review+
Whiteboard: cz-patch
checked in
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
Whiteboard: cz-patch
Product: Core → Other Applications
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: