mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-17 21:04:11 +00:00
5d419682f5
Add moment.js ( http://momentjs.com/ ) as a ResourceLoader module and use it to parse and format date strings. Moment.js seems to be the least bad option right now; eventually it should be replaced by i18n functionality in core Javascript modules. Change-Id: I332655778be3d694781b83fa5dea1e59770d8866
59 lines
2 KiB
JavaScript
59 lines
2 KiB
JavaScript
// moment.js language configuration
|
|
// language : Tagalog/Filipino (tl-ph)
|
|
// author : Dan Hagman
|
|
|
|
(function (factory) {
|
|
if (typeof define === 'function' && define.amd) {
|
|
define(['moment'], factory); // AMD
|
|
} else if (typeof exports === 'object') {
|
|
module.exports = factory(require('../moment')); // Node
|
|
} else {
|
|
factory(window.moment); // Browser global
|
|
}
|
|
}(function (moment) {
|
|
return moment.lang('tl-ph', {
|
|
months : "Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),
|
|
monthsShort : "Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),
|
|
weekdays : "Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),
|
|
weekdaysShort : "Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),
|
|
weekdaysMin : "Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),
|
|
longDateFormat : {
|
|
LT : "HH:mm",
|
|
L : "MM/D/YYYY",
|
|
LL : "MMMM D, YYYY",
|
|
LLL : "MMMM D, YYYY LT",
|
|
LLLL : "dddd, MMMM DD, YYYY LT"
|
|
},
|
|
calendar : {
|
|
sameDay: "[Ngayon sa] LT",
|
|
nextDay: '[Bukas sa] LT',
|
|
nextWeek: 'dddd [sa] LT',
|
|
lastDay: '[Kahapon sa] LT',
|
|
lastWeek: 'dddd [huling linggo] LT',
|
|
sameElse: 'L'
|
|
},
|
|
relativeTime : {
|
|
future : "sa loob ng %s",
|
|
past : "%s ang nakalipas",
|
|
s : "ilang segundo",
|
|
m : "isang minuto",
|
|
mm : "%d minuto",
|
|
h : "isang oras",
|
|
hh : "%d oras",
|
|
d : "isang araw",
|
|
dd : "%d araw",
|
|
M : "isang buwan",
|
|
MM : "%d buwan",
|
|
y : "isang taon",
|
|
yy : "%d taon"
|
|
},
|
|
ordinal : function (number) {
|
|
return number;
|
|
},
|
|
week : {
|
|
dow : 1, // Monday is the first day of the week.
|
|
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
|
}
|
|
});
|
|
}));
|