locale-es-debug.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. /**
  2. * Spanish/Latin American Translation
  3. */
  4. Ext.onReady(function() {
  5. if (Ext.Date) {
  6. Ext.Date.monthNames = [
  7. "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre",
  8. "Octubre", "Noviembre", "Diciembre"
  9. ];
  10. Ext.Date.defaultFormat = 'd/m/Y';
  11. Ext.Date.defaultTimeFormat = 'h:i a';
  12. Ext.Date.getShortMonthName = function(month) {
  13. return Ext.Date.monthNames[month].substring(0, 3);
  14. };
  15. Ext.Date.monthNumbers = {
  16. Ene: 0,
  17. Feb: 1,
  18. Mar: 2,
  19. Abr: 3,
  20. May: 4,
  21. Jun: 5,
  22. Jul: 6,
  23. Ago: 7,
  24. Sep: 8,
  25. Oct: 9,
  26. Nov: 10,
  27. Dic: 11
  28. };
  29. Ext.Date.getMonthNumber = function(name) {
  30. return Ext.Date.monthNumbers[
  31. name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
  32. };
  33. Ext.Date.dayNames = [
  34. "Domingo", "Lunes", "Martes", "Miércoles", "Jueves",
  35. "Viernes", "Sábado"
  36. ];
  37. Ext.Date.getShortDayName = function(day) {
  38. if (day === 3) {
  39. return "Mié";
  40. }
  41. if (day === 6) {
  42. return "Sáb";
  43. }
  44. return Ext.Date.dayNames[day].substring(0, 3);
  45. };
  46. Ext.Date.formatCodes.a = "(this.getHours() < 12 ? 'a.m.' : 'p.m.')";
  47. Ext.Date.formatCodes.A = "(this.getHours() < 12 ? 'A.M.' : 'P.M.')";
  48. // This will match am or a.m.
  49. Ext.Date.parseCodes.a = Ext.Date.parseCodes.A = {
  50. g: 1,
  51. c: "if (/(a\\.?m\\.?)/i.test(results[{0}])) {\n" +
  52. "if (!h || h == 12) { h = 0; }\n" +
  53. "} else { if (!h || h < 12) { h = (h || 0) + 12; }}",
  54. s: "(A\\.?M\\.?|P\\.?M\\.?|a\\.?m\\.?|p\\.?m\\.?)",
  55. calcAtEnd: true
  56. };
  57. Ext.Date.parseCodes.S.s = "(?:st|nd|rd|th)";
  58. }
  59. if (Ext.util && Ext.util.Format) {
  60. Ext.apply(Ext.util.Format, {
  61. thousandSeparator: '.',
  62. decimalSeparator: ',',
  63. currencySign: '\u20ac',
  64. // Spanish Euro
  65. dateFormat: 'd/m/Y'
  66. });
  67. }
  68. });
  69. Ext.define('Ext.locale.es.Panel', {
  70. override: 'Ext.Panel',
  71. config: {
  72. standardButtons: {
  73. ok: {
  74. text: 'OK'
  75. },
  76. abort: {
  77. text: 'Abortar'
  78. },
  79. retry: {
  80. text: 'Volver a procesar'
  81. },
  82. ignore: {
  83. text: 'Ignorar'
  84. },
  85. yes: {
  86. text: 'Si'
  87. },
  88. no: {
  89. text: 'No'
  90. },
  91. cancel: {
  92. text: 'Cancelar'
  93. },
  94. apply: {
  95. text: 'Aplicar'
  96. },
  97. save: {
  98. text: 'Guardar'
  99. },
  100. submit: {
  101. text: 'Enviar'
  102. },
  103. help: {
  104. text: 'Ayuda'
  105. },
  106. close: {
  107. text: 'Cerrar'
  108. }
  109. },
  110. closeToolText: 'Panel cerrado'
  111. }
  112. });
  113. Ext.define('Ext.locale.es.picker.Date', {
  114. override: 'Ext.picker.Date',
  115. config: {
  116. doneButton: 'Listo',
  117. monthText: 'Mes',
  118. dayText: 'Día',
  119. yearText: 'Año'
  120. }
  121. });
  122. Ext.define('Ext.locale.es.picker.Picker', {
  123. override: 'Ext.picker.Picker',
  124. config: {
  125. doneButton: 'Hecho',
  126. cancelButton: 'Cancelar'
  127. }
  128. });
  129. Ext.define('Ext.locale.es.panel.Date', {
  130. override: 'Ext.panel.Date',
  131. config: {
  132. nextText: 'Mes próximo (Control + derecha)',
  133. prevText: 'Mes anterior (Control + izquierda)',
  134. buttons: {
  135. footerTodayButton: {
  136. text: "Hoy"
  137. }
  138. }
  139. }
  140. });
  141. Ext.define('Ext.locale.es.panel.Collapser', {
  142. override: 'Ext.panel.Collapser',
  143. config: {
  144. collapseToolText: "Contraer panel",
  145. expandToolText: "Ampliar el panel"
  146. }
  147. });
  148. Ext.define('Ext.locale.es.field.Field', {
  149. override: 'Ext.field.Field',
  150. config: {
  151. requiredMessage: 'Este campo es requerido',
  152. validationMessage: 'Está en el formato incorrecto'
  153. }
  154. });
  155. Ext.define('Ext.locale.es.field.Number', {
  156. override: 'Ext.field.Number',
  157. decimalsText: 'El número decimal máximo es (0)',
  158. minValueText: 'El valor mínimo para este campo es (0)',
  159. maxValueText: 'El valor máximo para este campo es {0}',
  160. badFormatMessage: 'El valor no es un número válido'
  161. });
  162. Ext.define('Ext.locale.es.field.Text', {
  163. override: 'Ext.field.Text',
  164. badFormatMessage: 'El valor no coincide con el formato requerido',
  165. config: {
  166. requiredMessage: 'Este campo es requerido',
  167. validationMessage: 'Está en el formato incorrecto'
  168. }
  169. });
  170. Ext.define('Ext.locale.es.Dialog', {
  171. override: 'Ext.Dialog',
  172. config: {
  173. maximizeTool: {
  174. tooltip: "Maximizar a pantalla completa"
  175. },
  176. restoreTool: {
  177. tooltip: "Restaurar al tamaño original"
  178. }
  179. }
  180. });
  181. Ext.define("Ext.locale.es.field.FileButton", {
  182. override: "Ext.field.FileButton",
  183. config: {
  184. text: 'Vistazo...'
  185. }
  186. });
  187. Ext.define('Ext.locale.es.dataview.List', {
  188. override: 'Ext.dataview.List',
  189. config: {
  190. loadingText: 'Cargando...'
  191. }
  192. });
  193. Ext.define('Ext.locale.es.dataview.EmptyText', {
  194. override: 'Ext.dataview.EmptyText',
  195. config: {
  196. html: 'Sin visualización de datos'
  197. }
  198. });
  199. Ext.define('Ext.locale.es.dataview.Abstract', {
  200. override: 'Ext.dataview.Abstract',
  201. config: {
  202. loadingText: 'Cargando...'
  203. }
  204. });
  205. Ext.define("Ext.locale.es.LoadMask", {
  206. override: "Ext.LoadMask",
  207. config: {
  208. message: 'Cargando...'
  209. }
  210. });
  211. Ext.define('Ext.locale.es.dataview.plugin.ListPaging', {
  212. override: 'Ext.dataview.plugin.ListPaging',
  213. config: {
  214. loadMoreText: 'Carga más',
  215. noMoreRecordsText: 'No más registros'
  216. }
  217. });
  218. Ext.define("Ext.locale.es.dataview.DataView", {
  219. override: "Ext.dataview.DataView",
  220. config: {
  221. emptyText: ""
  222. }
  223. });
  224. Ext.define('Ext.locale.es.field.Date', {
  225. override: 'Ext.field.Date',
  226. minDateMessage: 'La fecha en este campo debe ser igual o posterior {0}',
  227. maxDateMessage: 'La fecha de este campo debe ser igual o anterior a {0}'
  228. });
  229. Ext.define("Ext.locale.es.grid.menu.SortAsc", {
  230. override: "Ext.grid.menu.SortAsc",
  231. config: {
  232. text: "Orden ascendente"
  233. }
  234. });
  235. Ext.define("Ext.locale.es.grid.menu.SortDesc", {
  236. override: "Ext.grid.menu.SortDesc",
  237. config: {
  238. text: "Orden descendiente"
  239. }
  240. });
  241. Ext.define("Ext.locale.es.grid.menu.GroupByThis", {
  242. override: "Ext.grid.menu.GroupByThis",
  243. config: {
  244. text: "Agrupar por este campo"
  245. }
  246. });
  247. Ext.define("Ext.locale.es.grid.menu.ShowInGroups", {
  248. override: "Ext.grid.menu.ShowInGroups",
  249. config: {
  250. text: "Mostrar en grupos"
  251. }
  252. });
  253. Ext.define("Ext.locale.es.grid.menu.Columns", {
  254. override: "Ext.grid.menu.Columns",
  255. config: {
  256. text: "Columnas"
  257. }
  258. });
  259. Ext.define('Ext.locale.es.data.validator.Presence', {
  260. override: 'Ext.data.validator.Presence',
  261. config: {
  262. message: 'Debe estar presente'
  263. }
  264. });
  265. Ext.define('Ext.locale.es.data.validator.Format', {
  266. override: 'Ext.data.validator.Format',
  267. config: {
  268. message: 'Está en el formato incorrecto'
  269. }
  270. });
  271. Ext.define('Ext.locale.es.data.validator.Email', {
  272. override: 'Ext.data.validator.Email',
  273. config: {
  274. message: 'No es una dirección de correo electrónico válida'
  275. }
  276. });
  277. Ext.define('Ext.locale.es.data.validator.Phone', {
  278. override: 'Ext.data.validator.Phone',
  279. config: {
  280. message: 'No es un número de teléfono válido'
  281. }
  282. });
  283. Ext.define('Ext.locale.es.data.validator.Number', {
  284. override: 'Ext.data.validator.Number',
  285. config: {
  286. message: 'No es un número válido'
  287. }
  288. });
  289. Ext.define('Ext.locale.es.data.validator.Url', {
  290. override: 'Ext.data.validator.Url',
  291. config: {
  292. message: 'No es una URL válida'
  293. }
  294. });
  295. Ext.define('Ext.locale.es.data.validator.Range', {
  296. override: 'Ext.data.validator.Range',
  297. config: {
  298. nanMessage: 'Debe ser numérico',
  299. minOnlyMessage: 'Debe ser al menos {0}',
  300. maxOnlyMessage: 'No debe ser más que {0}',
  301. bothMessage: 'Debe estar entre {0} y {1}'
  302. }
  303. });
  304. Ext.define('Ext.locale.es.data.validator.Bound', {
  305. override: 'Ext.data.validator.Bound',
  306. config: {
  307. emptyMessage: 'Debe estar presente',
  308. minOnlyMessage: 'El valor debe ser mayor que {0}',
  309. maxOnlyMessage: 'El valor debe ser menor que {0}',
  310. bothMessage: 'El valor debe estar entre {0} y {1}'
  311. }
  312. });
  313. Ext.define('Ext.locale.es.data.validator.CIDRv4', {
  314. override: 'Ext.data.validator.CIDRv4',
  315. config: {
  316. message: 'No es un bloque CIDR válido'
  317. }
  318. });
  319. Ext.define('Ext.locale.es.data.validator.CIDRv6', {
  320. override: 'Ext.data.validator.CIDRv6',
  321. config: {
  322. message: 'No es un bloque CIDR válido'
  323. }
  324. });
  325. Ext.define('Ext.locale.es.data.validator.Currency', {
  326. override: 'Ext.data.validator.Currency',
  327. config: {
  328. message: 'No es una cantidad de moneda válida'
  329. }
  330. });
  331. Ext.define('Ext.locale.es.data.validator.DateTime', {
  332. override: 'Ext.data.validator.DateTime',
  333. config: {
  334. message: 'No es una fecha y hora válidas'
  335. }
  336. });
  337. Ext.define('Ext.locale.es.data.validator.Exclusion', {
  338. override: 'Ext.data.validator.Exclusion',
  339. config: {
  340. message: 'Es un valor que ha sido excluido'
  341. }
  342. });
  343. Ext.define('Ext.locale.es.data.validator.IPAddress', {
  344. override: 'Ext.data.validator.IPAddress',
  345. config: {
  346. message: 'No es una dirección IP válida'
  347. }
  348. });
  349. Ext.define('Ext.locale.es.data.validator.Inclusion', {
  350. override: 'Ext.data.validator.Inclusion',
  351. config: {
  352. message: 'No está en la lista de valores aceptables'
  353. }
  354. });
  355. Ext.define('Ext.locale.es.data.validator.Time', {
  356. override: 'Ext.data.validator.Time',
  357. config: {
  358. message: 'No es un momento válido'
  359. }
  360. });
  361. Ext.define('Ext.locale.es.data.validator.Date', {
  362. override: 'Ext.data.validator.Date',
  363. config: {
  364. message: "No es una fecha válida"
  365. }
  366. });
  367. Ext.define('Ext.locale.es.data.validator.Length', {
  368. override: 'Ext.data.validator.Length',
  369. config: {
  370. minOnlyMessage: 'La longitud debe ser al menos {0}',
  371. maxOnlyMessage: 'La longitud no debe ser mayor que {0}',
  372. bothMessage: 'La longitud no debe estar entre {0} y {1}'
  373. }
  374. });
  375. Ext.define('Ext.locale.es.ux.colorpick.Selector', {
  376. override: 'Ext.ux.colorpick.Selector',
  377. okButtonText: 'OK',
  378. cancelButtonText: 'Cancelar'
  379. });
  380. // This is needed until we can refactor all of the locales into individual files
  381. Ext.define("Ext.locale.es.Component", {
  382. override: "Ext.Component"
  383. });
  384. Ext.define("Ext.locale.es.grid.filters.menu.Base", {
  385. override: "Ext.grid.filters.menu.Base",
  386. config: {
  387. text: "filtrar"
  388. }
  389. });
  390. Ext.define("Ext.locale.es.grid.locked.Grid", {
  391. override: 'Ext.grid.locked.Grid',
  392. config: {
  393. columnMenu: {
  394. items: {
  395. region: {
  396. text: 'Región'
  397. }
  398. }
  399. },
  400. regions: {
  401. left: {
  402. menuLabel: 'Bloqueado (Izquierda)'
  403. },
  404. center: {
  405. menuLabel: 'Desbloqueado'
  406. },
  407. right: {
  408. menuLabel: 'Bloqueado (Derecha)'
  409. }
  410. }
  411. }
  412. });
  413. Ext.define("Ext.locale.es.grid.plugin.RowDragDrop", {
  414. override: "Ext.grid.plugin.RowDragDrop",
  415. dragText: "{0} fila(s) seleccionada(s)"
  416. });