/usr/lib/python3/dist-packages/parsedatetime/pdt_locales/fr_FR.py is in python3-parsedatetime 2.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from .base import * # noqa
# don't use an unicode string
localeID = 'fr_FR'
dateSep = ['\/']
timeSep = [':', 'h']
meridian = ['du matin', 'du soir']
usesMeridian = True
uses24 = True
WeekdayOffsets = {}
MonthOffsets = {}
# always lowercase any lookup values - helper code expects that
Weekdays = [
'lundi', 'mardi', 'mercredi', 'jeudi',
'vendredi', 'samedi', 'dimanche',
]
shortWeekdays = [
'lun', 'mar', 'mer', 'jeu', 'ven', 'sam', 'dim',
]
Months = [
'janvier', 'février|fevrier', 'mars', 'avril', 'mai', 'juin', 'juillet',
'août|aout', 'septembre', 'octobre', 'novembre', 'décembre|decembre',
]
# We do not list 'mar' as a short name for 'mars' as it conflicts with
# the 'mar' of 'mardi'
shortMonths = [
'jan', 'fév|fev', 'mars', 'avr', 'mai', 'jui',
'juil', 'aoû|aou', 'sep', 'oct', 'nov', 'déc|dec',
]
# use the same formats as ICU by default
dateFormats = {
'full': 'EEEE d MMMM yyyy',
'long': 'd MMMM yyyy',
'medium': 'd MMM yyyy',
'short': 'd/M/yy'
}
timeFormats = {
'full': 'h:mm:ss a z',
'long': 'h:mm:ss a z',
'medium': 'h:mm:ss a',
'short': 'h:mm a',
}
dp_order = ['d', 'm', 'y']
# Used to parse expressions like "in 5 hours"
numbers = {
'zéro': 0,
'zero': 0,
'un': 1,
'une': 1,
'deux': 2,
'trois': 3,
'quatre': 4,
'cinq': 5,
'six': 6,
'sept': 7,
'huit': 8,
'neuf': 9,
'dix': 10,
'onze': 11,
'douze': 12,
'treize': 13,
'quatorze': 14,
'quinze': 15,
'seize': 16,
'dix-sept': 17,
'dix sept': 17,
'dix-huit': 18,
'dix huit': 18,
'dix-neuf': 19,
'dix neuf': 19,
'vingt': 20,
'vingt-et-un': 21,
'vingt et un': 21,
'vingt-deux': 22,
'vingt deux': 22,
'vingt-trois': 23,
'vingt trois': 23,
'vingt-quatre': 24,
'vingt quatre': 24,
}
decimal_mark = ','
# this will be added to re_values later
units = {
'seconds': ['seconde', 'secondes', 'sec', 's'],
'minutes': ['minute', 'minutes', 'min', 'mn'],
'hours': ['heure', 'heures', 'h'],
'days': ['jour', 'jours', 'journée', 'journee', 'journées', 'journees', 'j'],
'weeks': ['semaine', 'semaines', 'sem'],
'months': ['mois', 'm'],
'years': ['année', 'annee', 'an', 'années', 'annees', 'ans'],
}
# text constants to be used by later regular expressions
re_values = {
'specials': 'à|a|le|la|du|de',
'timeseparator': '(?:\:|h|\s*heures?\s*)',
'rangeseparator': '-',
'daysuffix': 'ième|ieme|ème|eme|ère|ere|nde',
'meridian': None,
'qunits': 'h|m|s|j|sem|a',
'now': ['maintenant', 'tout de suite', 'immédiatement', 'immediatement', 'à l\'instant', 'a l\'instant'],
}
# Used to adjust the returned date before/after the source
Modifiers = {
'avant': -1,
'il y a': -1,
'plus tot': -1,
'plus tôt': -1,
'y a': -1,
'antérieur': -1,
'anterieur': -1,
'dernier': -1,
'dernière': -1,
'derniere': -1,
'précédent': -1,
'précedent': -1,
'precédent': -1,
'precedent': -1,
'fin de': 0,
'fin du': 0,
'fin de la': 0,
'fin des': 0,
'fin d\'': 0,
'ce': 0,
'cette': 0,
'depuis': 1,
'dans': 1,
'à partir': 1,
'a partir': 1,
'après': 1,
'apres': 1,
'lendemain': 1,
'prochain': 1,
'prochaine': 1,
'suivant': 1,
'suivante': 1,
'plus tard': 1
}
dayOffsets = {
'après-demain': 2,
'apres-demain': 2,
'après demain': 2,
'apres demain': 2,
'demain': 1,
'aujourd\'hui': 0,
'hier': -1,
'avant-hier': -2,
'avant hier': -2
}
# special day and/or times, i.e. lunch, noon, evening
# each element in the dictionary is a dictionary that is used
# to fill in any value to be replace - the current date/time will
# already have been populated by the method buildSources
re_sources = {
'après-midi': {'hr': 13, 'mn': 0, 'sec': 0},
'apres-midi': {'hr': 13, 'mn': 0, 'sec': 0},
'après midi': {'hr': 13, 'mn': 0, 'sec': 0},
'apres midi': {'hr': 13, 'mn': 0, 'sec': 0},
'midi': {'hr': 12, 'mn': 0, 'sec': 0},
'déjeuner': {'hr': 12, 'mn': 0, 'sec': 0},
'dejeuner': {'hr': 12, 'mn': 0, 'sec': 0},
'matin': {'hr': 6, 'mn': 0, 'sec': 0},
'petit-déjeuner': {'hr': 8, 'mn': 0, 'sec': 0},
'petit-dejeuner': {'hr': 8, 'mn': 0, 'sec': 0},
'petit déjeuner': {'hr': 8, 'mn': 0, 'sec': 0},
'petit dejeuner': {'hr': 8, 'mn': 0, 'sec': 0},
'diner': {'hr': 19, 'mn': 0, 'sec': 0},
'dîner': {'hr': 19, 'mn': 0, 'sec': 0},
'soir': {'hr': 18, 'mn': 0, 'sec': 0},
'soirée': {'hr': 18, 'mn': 0, 'sec': 0},
'soiree': {'hr': 18, 'mn': 0, 'sec': 0},
'minuit': {'hr': 0, 'mn': 0, 'sec': 0},
'nuit': {'hr': 21, 'mn': 0, 'sec': 0},
}
small = {
'zéro': 0,
'zero': 0,
'un': 1,
'une': 1,
'deux': 2,
'trois': 3,
'quatre': 4,
'cinq': 5,
'six': 6,
'sept': 7,
'huit': 8,
'neuf': 9,
'dix': 10,
'onze': 11,
'douze': 12,
'treize': 13,
'quatorze': 14,
'quinze': 15,
'seize': 16,
'dix-sept': 17,
'dix sept': 17,
'dix-huit': 18,
'dix huit': 18,
'dix-neuf': 19,
'dix neuf': 19,
'vingt': 20,
'vingt-et-un': 21,
'vingt et un': 21,
'trente': 30,
'quarante': 40,
'cinquante': 50,
'soixante': 60,
'soixante-dix': 70,
'soixante dix': 70,
'quatre-vingt': 80,
'quatre vingt': 80,
'quatre-vingt-dix': 90,
'quatre vingt dix': 90
}
magnitude = {
'mille': 1000,
'millier': 1000,
'million': 1000000,
'milliard': 1000000000,
'trillion': 1000000000000,
'quadrillion': 1000000000000000,
'quintillion': 1000000000000000000,
'sextillion': 1000000000000000000000,
'septillion': 1000000000000000000000000,
'octillion': 1000000000000000000000000000,
'nonillion': 1000000000000000000000000000000,
'décillion': 1000000000000000000000000000000000,
'decillion': 1000000000000000000000000000000000,
}
ignore = ('et', ',')
|