comparison MoinMoin/support/parsedatetime/pdt_locales/nl_NL.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
comparison
equal deleted inserted replaced
6097:815981fad7fd 6098:83b1bc99457c
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3 from .base import * # noqa
4
5 # don't use an unicode string
6 localeID = 'nl_NL'
7 dateSep = ['-', '/']
8 timeSep = [':']
9 meridian = []
10 usesMeridian = False
11 uses24 = True
12 decimal_mark = ','
13
14 Weekdays = [
15 'maandag', 'dinsdag', 'woensdag', 'donderdag',
16 'vrijdag', 'zaterdag', 'zondag',
17 ]
18 shortWeekdays = [
19 'ma', 'di', 'wo', 'do', 'vr', 'za', 'zo',
20 ]
21 Months = [
22 'januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli',
23 'augustus', 'september', 'oktober', 'november', 'december',
24 ]
25 shortMonths = [
26 'jan', 'feb', 'mar', 'apr', 'mei', 'jun',
27 'jul', 'aug', 'sep', 'okt', 'nov', 'dec',
28 ]
29 dateFormats = {
30 'full': 'EEEE, dd MMMM yyyy',
31 'long': 'dd MMMM yyyy',
32 'medium': 'dd-MM-yyyy',
33 'short': 'dd-MM-yy',
34 }
35
36 timeFormats = {
37 'full': 'HH:mm:ss v',
38 'long': 'HH:mm:ss z',
39 'medium': 'HH:mm:ss',
40 'short': 'HH:mm',
41 }
42
43 dp_order = ['d', 'm', 'y']
44
45 # the short version would be a capital M,
46 # as I understand it we can't distinguish
47 # between m for minutes and M for months.
48 units = {
49 'seconds': ['secunden', 'sec', 's'],
50 'minutes': ['minuten', 'min', 'm'],
51 'hours': ['uren', 'uur', 'h'],
52 'days': ['dagen', 'dag', 'd'],
53 'weeks': ['weken', 'w'],
54 'months': ['maanden', 'maand'],
55 'years': ['jaar', 'jaren', 'j'],
56 }
57
58 re_values = re_values.copy()
59 re_values.update({
60 'specials': 'om',
61 'timeseparator': ':',
62 'rangeseparator': '-',
63 'daysuffix': ' |de',
64 'qunits': 'h|m|s|d|w|m|j',
65 'now': ['nu'],
66 })
67
68 # Used to adjust the returned date before/after the source
69 # still looking for insight on how to translate all of them to german.
70 Modifiers = {
71 'vanaf': 1,
72 'voor': -1,
73 'na': 1,
74 'vorige': -1,
75 'eervorige': -1,
76 'prev': -1,
77 'laastste': -1,
78 'volgende': 1,
79 'deze': 0,
80 'vorige': -1,
81 'over': 2,
82 'eind van': 0,
83 }
84
85 # morgen/abermorgen does not work, see
86 # http://code.google.com/p/parsedatetime/issues/detail?id=19
87 dayOffsets = {
88 'morgen': 1,
89 'vandaag': 0,
90 'gisteren': -1,
91 'eergisteren': -2,
92 'overmorgen': 2,
93 }
94
95 # special day and/or times, i.e. lunch, noon, evening
96 # each element in the dictionary is a dictionary that is used
97 # to fill in any value to be replace - the current date/time will
98 # already have been populated by the method buildSources
99 re_sources = {
100 'middag': {'hr': 12, 'mn': 0, 'sec': 0},
101 'vanmiddag': {'hr': 12, 'mn': 0, 'sec': 0},
102 'lunch': {'hr': 12, 'mn': 0, 'sec': 0},
103 'morgen': {'hr': 6, 'mn': 0, 'sec': 0},
104 "'s morgens": {'hr': 6, 'mn': 0, 'sec': 0},
105 'ontbijt': {'hr': 8, 'mn': 0, 'sec': 0},
106 'avondeten': {'hr': 19, 'mn': 0, 'sec': 0},
107 'avond': {'hr': 18, 'mn': 0, 'sec': 0},
108 'avonds': {'hr': 18, 'mn': 0, 'sec': 0},
109 'middernacht': {'hr': 0, 'mn': 0, 'sec': 0},
110 'nacht': {'hr': 21, 'mn': 0, 'sec': 0},
111 'nachts': {'hr': 21, 'mn': 0, 'sec': 0},
112 'vanavond': {'hr': 21, 'mn': 0, 'sec': 0},
113 'vannacht': {'hr': 21, 'mn': 0, 'sec': 0},
114 }