add word separator setting for i18n, most Asian languages uses no word separator.

This commit is contained in:
aeggli 2011-03-18 16:14:54 +08:00
parent ade04a5b15
commit c2f3d8aaf9

View file

@ -45,6 +45,7 @@
months: "%d months",
year: "about a year",
years: "%d years",
wordSep: " ",
numbers: []
}
},
@ -84,7 +85,7 @@
years < 2 && substitute($l.year, 1) ||
substitute($l.years, Math.floor(years));
return $.trim([prefix, words, suffix].join(" "));
return $.trim([prefix, words, suffix].join($l.wordSep));
},
parse: function(iso8601) {
var s = $.trim(iso8601);