Mercurial > moin > 1.9
diff MoinMoin/support/parsedatetime/pdt_locales/es.py @ 6098:83b1bc99457c
upgrade parsedatetime from 0.8.7 to 2.1
author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
---|---|
date | Tue, 06 Sep 2016 00:09:31 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MoinMoin/support/parsedatetime/pdt_locales/es.py Tue Sep 06 00:09:31 2016 +0200 @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals +from .base import * # noqa + +# don't use an unicode string +localeID = 'es' +dateSep = ['/'] +usesMeridian = False +uses24 = True +decimal_mark = ',' + +Weekdays = [ + 'lunes', 'martes', 'miércoles', + 'jueves', 'viernes', 'sábado', 'domingo', +] +shortWeekdays = [ + 'lun', 'mar', 'mié', + 'jue', 'vie', 'sáb', 'dom', +] +Months = [ + 'enero', 'febrero', 'marzo', + 'abril', 'mayo', 'junio', + 'julio', 'agosto', 'septiembre', + 'octubre', 'noviembre', 'diciembre', +] +shortMonths = [ + 'ene', 'feb', 'mar', + 'abr', 'may', 'jun', + 'jul', 'ago', 'sep', + 'oct', 'nov', 'dic', +] +dateFormats = { + 'full': "EEEE d' de 'MMMM' de 'yyyy", + 'long': "d' de 'MMMM' de 'yyyy", + 'medium': "dd-MMM-yy", + 'short': "d/MM/yy", +} + +timeFormats = { + 'full': "HH'H'mm' 'ss z", + 'long': "HH:mm:ss z", + 'medium': "HH:mm:ss", + 'short': "HH:mm", +} + +dp_order = ['d', 'm', 'y']