diff MoinMoin/support/parsedatetime/pdt_locales/pt_BR.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/pt_BR.py	Tue Sep 06 00:09:31 2016 +0200
@@ -0,0 +1,48 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+from .base import *  # noqa
+
+# don't use an unicode string
+localeID = 'pt_BR'
+dateSep = ['/']
+usesMeridian = False
+uses24 = True
+decimal_mark = ','
+
+Weekdays = [
+    'segunda-feira', 'terça-feira', 'quarta-feira',
+    'quinta-feira', 'sexta-feira', 'sábado', 'domingo',
+]
+shortWeekdays = [
+    'seg', 'ter', 'qua', 'qui', 'sex', 'sáb', 'dom',
+]
+Months = [
+    'janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho',
+    'agosto', 'setembro', 'outubro', 'novembro', 'dezembro'
+]
+shortMonths = [
+    'jan', 'fev', 'mar', 'abr', 'mai', 'jun',
+    'jul', 'ago', 'set', 'out', 'nov', 'dez'
+]
+dateFormats = {
+    'full': "EEEE, d' de 'MMMM' de 'yyyy",
+    'long': "d' de 'MMMM' de 'yyyy",
+    'medium': "dd-MM-yy",
+    'short': "dd/MM/yyyy",
+}
+
+timeFormats = {
+    'full': "HH'H'mm' 'ss z",
+    'long': "HH:mm:ss z",
+    'medium': "HH:mm:ss",
+    'short': "HH:mm",
+}
+
+dp_order = ['d', 'm', 'y']
+
+units = {
+    'seconds': ['segundo', 'seg', 's'],
+    'minutes': ['minuto', 'min', 'm'],
+    'days': ['dia', 'dias', 'd'],
+    'months': ['mês', 'meses'],
+}