mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Bug 189682 - localize time units
patch by kazhik@mozilla.gr.jp r=rginda chatzilla only
This commit is contained in:
parent
ae41c9abd0
commit
99d2d51500
@ -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(", ");
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user