Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WEBUI JS: internationalize short week names, too
  • Loading branch information
perexg committed Jun 22, 2015
1 parent 15940a9 commit 528cdf0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/webui/static/app/i18n-post.js
Expand Up @@ -89,8 +89,18 @@ Date.dayNames = [
_("Saturday")
];

Date.dayNames2 = [
_("Sun"),
_("Mon"),
_("Tue"),
_("Wed"),
_("Thu"),
_("Fri"),
_("Sat")
];

Date.getShortDayName = function(day) {
return Date.dayNames[day].substring(0, 3);
return Date.dayNames2[day];
};

Date.parseCodes.S.s = _("(?:st|nd|rd|th)#parseCodes.S.s").split('#')[0];
Expand Down

0 comments on commit 528cdf0

Please sign in to comment.