-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Se corrigió traducción de fecha angular
- Loading branch information
1 parent
4db39ab
commit 17c95c9
Showing
5 changed files
with
395 additions
and
1 deletion.
There are no files selected for viewing
143 changes: 143 additions & 0 deletions
143
src/Celsius3/CoreBundle/Resources/public/js/angular-locale_en.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
'use strict'; | ||
angular.module("ngLocale", [], ["$provide", function($provide) { | ||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; | ||
function getDecimals(n) { | ||
n = n + ''; | ||
var i = n.indexOf('.'); | ||
return (i == -1) ? 0 : n.length - i - 1; | ||
} | ||
|
||
function getVF(n, opt_precision) { | ||
var v = opt_precision; | ||
|
||
if (undefined === v) { | ||
v = Math.min(getDecimals(n), 3); | ||
} | ||
|
||
var base = Math.pow(10, v); | ||
var f = ((n * base) | 0) % base; | ||
return {v: v, f: f}; | ||
} | ||
|
||
$provide.value("$locale", { | ||
"DATETIME_FORMATS": { | ||
"AMPMS": [ | ||
"AM", | ||
"PM" | ||
], | ||
"DAY": [ | ||
"Sunday", | ||
"Monday", | ||
"Tuesday", | ||
"Wednesday", | ||
"Thursday", | ||
"Friday", | ||
"Saturday" | ||
], | ||
"ERANAMES": [ | ||
"Before Christ", | ||
"Anno Domini" | ||
], | ||
"ERAS": [ | ||
"BC", | ||
"AD" | ||
], | ||
"FIRSTDAYOFWEEK": 6, | ||
"MONTH": [ | ||
"January", | ||
"February", | ||
"March", | ||
"April", | ||
"May", | ||
"June", | ||
"July", | ||
"August", | ||
"September", | ||
"October", | ||
"November", | ||
"December" | ||
], | ||
"SHORTDAY": [ | ||
"Sun", | ||
"Mon", | ||
"Tue", | ||
"Wed", | ||
"Thu", | ||
"Fri", | ||
"Sat" | ||
], | ||
"SHORTMONTH": [ | ||
"Jan", | ||
"Feb", | ||
"Mar", | ||
"Apr", | ||
"May", | ||
"Jun", | ||
"Jul", | ||
"Aug", | ||
"Sep", | ||
"Oct", | ||
"Nov", | ||
"Dec" | ||
], | ||
"STANDALONEMONTH": [ | ||
"January", | ||
"February", | ||
"March", | ||
"April", | ||
"May", | ||
"June", | ||
"July", | ||
"August", | ||
"September", | ||
"October", | ||
"November", | ||
"December" | ||
], | ||
"WEEKENDRANGE": [ | ||
5, | ||
6 | ||
], | ||
"fullDate": "EEEE, MMMM d, y", | ||
"longDate": "MMMM d, y", | ||
"medium": "MMM d, y h:mm:ss a", | ||
"mediumDate": "MMM d, y", | ||
"mediumTime": "h:mm:ss a", | ||
"short": "M/d/yy h:mm a", | ||
"shortDate": "M/d/yy", | ||
"shortTime": "h:mm a" | ||
}, | ||
"NUMBER_FORMATS": { | ||
"CURRENCY_SYM": "$", | ||
"DECIMAL_SEP": ".", | ||
"GROUP_SEP": ",", | ||
"PATTERNS": [ | ||
{ | ||
"gSize": 3, | ||
"lgSize": 3, | ||
"maxFrac": 3, | ||
"minFrac": 0, | ||
"minInt": 1, | ||
"negPre": "-", | ||
"negSuf": "", | ||
"posPre": "", | ||
"posSuf": "" | ||
}, | ||
{ | ||
"gSize": 3, | ||
"lgSize": 3, | ||
"maxFrac": 2, | ||
"minFrac": 2, | ||
"minInt": 1, | ||
"negPre": "-\u00a4", | ||
"negSuf": "", | ||
"posPre": "\u00a4", | ||
"posSuf": "" | ||
} | ||
] | ||
}, | ||
"id": "en", | ||
"localeID": "en", | ||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} | ||
}); | ||
}]); |
125 changes: 125 additions & 0 deletions
125
src/Celsius3/CoreBundle/Resources/public/js/angular-locale_es.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
'use strict'; | ||
angular.module("ngLocale", [], ["$provide", function($provide) { | ||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; | ||
$provide.value("$locale", { | ||
"DATETIME_FORMATS": { | ||
"AMPMS": [ | ||
"a. m.", | ||
"p. m." | ||
], | ||
"DAY": [ | ||
"domingo", | ||
"lunes", | ||
"martes", | ||
"mi\u00e9rcoles", | ||
"jueves", | ||
"viernes", | ||
"s\u00e1bado" | ||
], | ||
"ERANAMES": [ | ||
"antes de Cristo", | ||
"despu\u00e9s de Cristo" | ||
], | ||
"ERAS": [ | ||
"a. C.", | ||
"d. C." | ||
], | ||
"FIRSTDAYOFWEEK": 0, | ||
"MONTH": [ | ||
"enero", | ||
"febrero", | ||
"marzo", | ||
"abril", | ||
"mayo", | ||
"junio", | ||
"julio", | ||
"agosto", | ||
"septiembre", | ||
"octubre", | ||
"noviembre", | ||
"diciembre" | ||
], | ||
"SHORTDAY": [ | ||
"dom.", | ||
"lun.", | ||
"mar.", | ||
"mi\u00e9.", | ||
"jue.", | ||
"vie.", | ||
"s\u00e1b." | ||
], | ||
"SHORTMONTH": [ | ||
"ene.", | ||
"feb.", | ||
"mar.", | ||
"abr.", | ||
"may.", | ||
"jun.", | ||
"jul.", | ||
"ago.", | ||
"sept.", | ||
"oct.", | ||
"nov.", | ||
"dic." | ||
], | ||
"STANDALONEMONTH": [ | ||
"enero", | ||
"febrero", | ||
"marzo", | ||
"abril", | ||
"mayo", | ||
"junio", | ||
"julio", | ||
"agosto", | ||
"septiembre", | ||
"octubre", | ||
"noviembre", | ||
"diciembre" | ||
], | ||
"WEEKENDRANGE": [ | ||
5, | ||
6 | ||
], | ||
"fullDate": "EEEE, d 'de' MMMM 'de' y", | ||
"longDate": "d 'de' MMMM 'de' y", | ||
"medium": "d MMM y H:mm:ss", | ||
"mediumDate": "d MMM y", | ||
"mediumTime": "H:mm:ss", | ||
"short": "d/M/yy H:mm", | ||
"shortDate": "d/M/yy", | ||
"shortTime": "H:mm" | ||
}, | ||
"NUMBER_FORMATS": { | ||
"CURRENCY_SYM": "\u20ac", | ||
"DECIMAL_SEP": ",", | ||
"GROUP_SEP": ".", | ||
"PATTERNS": [ | ||
{ | ||
"gSize": 3, | ||
"lgSize": 3, | ||
"maxFrac": 3, | ||
"minFrac": 0, | ||
"minInt": 1, | ||
"negPre": "-", | ||
"negSuf": "", | ||
"posPre": "", | ||
"posSuf": "" | ||
}, | ||
{ | ||
"gSize": 3, | ||
"lgSize": 3, | ||
"maxFrac": 2, | ||
"minFrac": 2, | ||
"minInt": 1, | ||
"negPre": "-", | ||
"negSuf": "\u00a0\u00a4", | ||
"posPre": "", | ||
"posSuf": "\u00a0\u00a4" | ||
} | ||
] | ||
}, | ||
"id": "es", | ||
"localeID": "es", | ||
"pluralCat": function(n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} | ||
}); | ||
}]); |
125 changes: 125 additions & 0 deletions
125
src/Celsius3/CoreBundle/Resources/public/js/angular-locale_pt.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
'use strict'; | ||
angular.module("ngLocale", [], ["$provide", function($provide) { | ||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; | ||
$provide.value("$locale", { | ||
"DATETIME_FORMATS": { | ||
"AMPMS": [ | ||
"AM", | ||
"PM" | ||
], | ||
"DAY": [ | ||
"domingo", | ||
"segunda-feira", | ||
"ter\u00e7a-feira", | ||
"quarta-feira", | ||
"quinta-feira", | ||
"sexta-feira", | ||
"s\u00e1bado" | ||
], | ||
"ERANAMES": [ | ||
"antes de Cristo", | ||
"depois de Cristo" | ||
], | ||
"ERAS": [ | ||
"a.C.", | ||
"d.C." | ||
], | ||
"FIRSTDAYOFWEEK": 6, | ||
"MONTH": [ | ||
"janeiro", | ||
"fevereiro", | ||
"mar\u00e7o", | ||
"abril", | ||
"maio", | ||
"junho", | ||
"julho", | ||
"agosto", | ||
"setembro", | ||
"outubro", | ||
"novembro", | ||
"dezembro" | ||
], | ||
"SHORTDAY": [ | ||
"dom", | ||
"seg", | ||
"ter", | ||
"qua", | ||
"qui", | ||
"sex", | ||
"s\u00e1b" | ||
], | ||
"SHORTMONTH": [ | ||
"jan", | ||
"fev", | ||
"mar", | ||
"abr", | ||
"mai", | ||
"jun", | ||
"jul", | ||
"ago", | ||
"set", | ||
"out", | ||
"nov", | ||
"dez" | ||
], | ||
"STANDALONEMONTH": [ | ||
"janeiro", | ||
"fevereiro", | ||
"mar\u00e7o", | ||
"abril", | ||
"maio", | ||
"junho", | ||
"julho", | ||
"agosto", | ||
"setembro", | ||
"outubro", | ||
"novembro", | ||
"dezembro" | ||
], | ||
"WEEKENDRANGE": [ | ||
5, | ||
6 | ||
], | ||
"fullDate": "EEEE, d 'de' MMMM 'de' y", | ||
"longDate": "d 'de' MMMM 'de' y", | ||
"medium": "d 'de' MMM 'de' y HH:mm:ss", | ||
"mediumDate": "d 'de' MMM 'de' y", | ||
"mediumTime": "HH:mm:ss", | ||
"short": "dd/MM/y HH:mm", | ||
"shortDate": "dd/MM/y", | ||
"shortTime": "HH:mm" | ||
}, | ||
"NUMBER_FORMATS": { | ||
"CURRENCY_SYM": "R$", | ||
"DECIMAL_SEP": ",", | ||
"GROUP_SEP": ".", | ||
"PATTERNS": [ | ||
{ | ||
"gSize": 3, | ||
"lgSize": 3, | ||
"maxFrac": 3, | ||
"minFrac": 0, | ||
"minInt": 1, | ||
"negPre": "-", | ||
"negSuf": "", | ||
"posPre": "", | ||
"posSuf": "" | ||
}, | ||
{ | ||
"gSize": 3, | ||
"lgSize": 3, | ||
"maxFrac": 2, | ||
"minFrac": 2, | ||
"minInt": 1, | ||
"negPre": "-\u00a4", | ||
"negSuf": "", | ||
"posPre": "\u00a4", | ||
"posSuf": "" | ||
} | ||
] | ||
}, | ||
"id": "pt", | ||
"localeID": "pt", | ||
"pluralCat": function(n, opt_precision) { var i = n | 0; if (i >= 0 && i <= 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} | ||
}); | ||
}]); |
Oops, something went wrong.