Bug 189682 - localize time units

patch by kazhik@mozilla.gr.jp
r=rginda
chatzilla only
This commit is contained in:
samuel%sieb.net 2003-04-06 00:32:54 +00:00
parent ae41c9abd0
commit 99d2d51500
2 changed files with 11 additions and 4 deletions

View File

@ -389,13 +389,13 @@ function formatDateOffset (offset, format)
{
var ary = new Array();
if (days > 0)
ary.push (days + " days");
ary.push (getMsg("days", days));
if (hours > 0)
ary.push (hours + " hours");
ary.push (getMsg("hours", hours));
if (minutes > 0)
ary.push (minutes + " minutes");
ary.push (getMsg("minutes", minutes));
if (seconds > 0 || offset == 0)
ary.push (seconds + " seconds");
ary.push (getMsg("seconds", seconds));
format = ary.join(", ");
}

View File

@ -435,3 +435,10 @@ stalk_add_msg=Enter the stalk word to add:
# pref-irc-startup.js
file_browse_Script=Choose a JavaScript Script file
file_browse_Script_spec=JavaScript Script files (*.js)
#utils.js
days=%S days
hours=%S hours
minutes=%S minutes
seconds=%S seconds