annotate MoinMoin/support/parsedatetime/pdt_locales/de_DE.py @ 6133:a6283e189869 default tip

fixup: remove nonexisting passlib.utils._blowfish this was removed by the passlib 1.7.1 upgrade.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 01 Jun 2017 18:10:19 +0200
parents 83b1bc99457c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6098
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
2 from __future__ import unicode_literals
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
3 from .base import * # noqa
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
4
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
5 # don't use an unicode string
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
6 localeID = 'de_DE'
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
7 dateSep = ['.']
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
8 timeSep = [':']
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
9 meridian = []
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
10 usesMeridian = False
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
11 uses24 = True
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
12 decimal_mark = ','
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
13
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
14 Weekdays = [
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
15 'montag', 'dienstag', 'mittwoch',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
16 'donnerstag', 'freitag', 'samstag', 'sonntag',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
17 ]
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
18 shortWeekdays = ['mo', 'di', 'mi', 'do', 'fr', 'sa', 'so']
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
19 Months = [
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
20 'januar', 'februar', 'märz',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
21 'april', 'mai', 'juni',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
22 'juli', 'august', 'september',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
23 'oktober', 'november', 'dezember',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
24 ]
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
25 shortMonths = [
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
26 'jan', 'feb', 'mrz', 'apr', 'mai', 'jun',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
27 'jul', 'aug', 'sep', 'okt', 'nov', 'dez',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
28 ]
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
29
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
30 dateFormats = {
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
31 'full': 'EEEE, d. MMMM yyyy',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
32 'long': 'd. MMMM yyyy',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
33 'medium': 'dd.MM.yyyy',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
34 'short': 'dd.MM.yy',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
35 }
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
36
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
37 timeFormats = {
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
38 'full': 'HH:mm:ss v',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
39 'long': 'HH:mm:ss z',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
40 'medium': 'HH:mm:ss',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
41 'short': 'HH:mm',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
42 }
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
43
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
44 dp_order = ['d', 'm', 'y']
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
45
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
46 # the short version would be a capital M,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
47 # as I understand it we can't distinguish
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
48 # between m for minutes and M for months.
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
49 units = {
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
50 'seconds': ['sekunden', 'sek', 's'],
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
51 'minutes': ['minuten', 'min', 'm'],
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
52 'hours': ['stunden', 'std', 'h'],
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
53 'days': ['tag', 'tage', 't'],
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
54 'weeks': ['wochen', 'w'],
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
55 'months': ['monat', 'monate'],
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
56 'years': ['jahr', 'jahre', 'j'],
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
57 }
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
58
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
59 re_values = re_values.copy()
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
60 re_values.update({
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
61 'specials': 'am|dem|der|im|in|den|zum',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
62 'timeseparator': ':',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
63 'rangeseparator': '-',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
64 'daysuffix': '',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
65 'qunits': 'h|m|s|t|w|m|j',
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
66 'now': ['jetzt'],
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
67 })
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
68
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
69 # Used to adjust the returned date before/after the source
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
70 # still looking for insight on how to translate all of them to german.
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
71 Modifiers = {
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
72 'from': 1,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
73 'before': -1,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
74 'after': 1,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
75 'vergangener': -1,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
76 'vorheriger': -1,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
77 'prev': -1,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
78 'letzter': -1,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
79 'nächster': 1,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
80 'dieser': 0,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
81 'previous': -1,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
82 'in a': 2,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
83 'end of': 0,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
84 'eod': 0,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
85 'eo': 0,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
86 }
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
87
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
88 # morgen/abermorgen does not work, see
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
89 # http://code.google.com/p/parsedatetime/issues/detail?id=19
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
90 dayOffsets = {
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
91 'morgen': 1,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
92 'heute': 0,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
93 'gestern': -1,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
94 'vorgestern': -2,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
95 'übermorgen': 2,
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
96 }
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
97
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
98 # special day and/or times, i.e. lunch, noon, evening
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
99 # each element in the dictionary is a dictionary that is used
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
100 # to fill in any value to be replace - the current date/time will
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
101 # already have been populated by the method buildSources
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
102 re_sources = {
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
103 'mittag': {'hr': 12, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
104 'mittags': {'hr': 12, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
105 'mittagessen': {'hr': 12, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
106 'morgen': {'hr': 6, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
107 'morgens': {'hr': 6, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
108 'frühstück': {'hr': 8, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
109 'abendessen': {'hr': 19, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
110 'abend': {'hr': 18, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
111 'abends': {'hr': 18, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
112 'mitternacht': {'hr': 0, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
113 'nacht': {'hr': 21, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
114 'nachts': {'hr': 21, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
115 'heute abend': {'hr': 21, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
116 'heute nacht': {'hr': 21, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
117 'feierabend': {'hr': 17, 'mn': 0, 'sec': 0},
83b1bc99457c upgrade parsedatetime from 0.8.7 to 2.1
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
118 }