| 1 |
# Copyright (c) 1996-2026 Sullivan Beck. All rights reserved. |
| 2 |
# This program is free software; you can redistribute it and/or modify it |
| 3 |
# under the same terms as Perl itself. |
| 4 |
|
| 5 |
######################################################################## |
| 6 |
######################################################################## |
| 7 |
|
| 8 |
=pod |
| 9 |
|
| 10 |
=encoding utf-8 |
| 11 |
|
| 12 |
=head1 NAME |
| 13 |
|
| 14 |
Date::Manip::Lang::french - French language support. |
| 15 |
|
| 16 |
=head1 SYNOPSIS |
| 17 |
|
| 18 |
This module contains a list of words and expressions supporting |
| 19 |
the language. It is not intended to be used directly (other |
| 20 |
Date::Manip modules will load it as needed). |
| 21 |
|
| 22 |
=head1 LANGUAGE EXPRESSIONS |
| 23 |
|
| 24 |
The following is a list of all language words and expressions used |
| 25 |
to write times and/or dates. |
| 26 |
|
| 27 |
All strings are case insensitive. |
| 28 |
|
| 29 |
=over 4 |
| 30 |
|
| 31 |
=item B<Month names and abbreviations> |
| 32 |
|
| 33 |
When writing out the name of the month, several different variations may |
| 34 |
exist including full names and abbreviations. |
| 35 |
|
| 36 |
The following month names may be used: |
| 37 |
|
| 38 |
janvier |
| 39 |
|
| 40 |
février |
| 41 |
fevrier |
| 42 |
|
| 43 |
mars |
| 44 |
|
| 45 |
avril |
| 46 |
|
| 47 |
mai |
| 48 |
|
| 49 |
juin |
| 50 |
|
| 51 |
juillet |
| 52 |
|
| 53 |
août |
| 54 |
aout |
| 55 |
|
| 56 |
septembre |
| 57 |
|
| 58 |
octobre |
| 59 |
|
| 60 |
novembre |
| 61 |
|
| 62 |
décembre |
| 63 |
decembre |
| 64 |
|
| 65 |
|
| 66 |
The following abbreviations may be used: |
| 67 |
|
| 68 |
jan |
| 69 |
janv |
| 70 |
jan. |
| 71 |
janv. |
| 72 |
|
| 73 |
fév |
| 74 |
fev |
| 75 |
févr |
| 76 |
fev. |
| 77 |
fév. |
| 78 |
févr. |
| 79 |
|
| 80 |
mar |
| 81 |
mar. |
| 82 |
|
| 83 |
avr |
| 84 |
avr. |
| 85 |
|
| 86 |
mai |
| 87 |
mai. |
| 88 |
|
| 89 |
juin |
| 90 |
jui |
| 91 |
juin. |
| 92 |
jui. |
| 93 |
|
| 94 |
juil |
| 95 |
jul |
| 96 |
juil. |
| 97 |
jul. |
| 98 |
|
| 99 |
août |
| 100 |
aout |
| 101 |
aoû |
| 102 |
aou |
| 103 |
aout. |
| 104 |
août. |
| 105 |
|
| 106 |
sept |
| 107 |
sep |
| 108 |
sept. |
| 109 |
sep. |
| 110 |
|
| 111 |
oct |
| 112 |
oct. |
| 113 |
|
| 114 |
nov |
| 115 |
nov. |
| 116 |
|
| 117 |
déc |
| 118 |
dec |
| 119 |
dec. |
| 120 |
déc. |
| 121 |
|
| 122 |
|
| 123 |
=item B<Day names and abbreviations> |
| 124 |
|
| 125 |
When writing out the name of the day, several different variations may |
| 126 |
exist including full names and abbreviations. |
| 127 |
|
| 128 |
The following day names may be used: |
| 129 |
|
| 130 |
lundi |
| 131 |
|
| 132 |
mardi |
| 133 |
|
| 134 |
mercredi |
| 135 |
|
| 136 |
jeudi |
| 137 |
|
| 138 |
vendredi |
| 139 |
|
| 140 |
samedi |
| 141 |
|
| 142 |
dimanche |
| 143 |
|
| 144 |
|
| 145 |
The following abbreviations may be used: |
| 146 |
|
| 147 |
lun |
| 148 |
lun. |
| 149 |
|
| 150 |
mar |
| 151 |
mar. |
| 152 |
|
| 153 |
mer |
| 154 |
mer. |
| 155 |
|
| 156 |
jeu |
| 157 |
jeu. |
| 158 |
|
| 159 |
ven |
| 160 |
ven. |
| 161 |
|
| 162 |
sam |
| 163 |
sam. |
| 164 |
|
| 165 |
dim |
| 166 |
dim. |
| 167 |
|
| 168 |
|
| 169 |
The following short (1-2 characters) abbreviations may be used: |
| 170 |
|
| 171 |
l |
| 172 |
|
| 173 |
ma |
| 174 |
|
| 175 |
me |
| 176 |
|
| 177 |
j |
| 178 |
|
| 179 |
v |
| 180 |
|
| 181 |
s |
| 182 |
|
| 183 |
d |
| 184 |
|
| 185 |
|
| 186 |
=item B<Delta field names> |
| 187 |
|
| 188 |
These are the names (and abbreviations) for the fields in a delta. There are |
| 189 |
7 fields: years, months, weeks, days, hours, minutes, seconds. |
| 190 |
|
| 191 |
The names and abbreviations for these fields are: |
| 192 |
|
| 193 |
annees |
| 194 |
années |
| 195 |
an |
| 196 |
annee |
| 197 |
ans |
| 198 |
année |
| 199 |
|
| 200 |
mois |
| 201 |
m |
| 202 |
|
| 203 |
semaine |
| 204 |
semaines |
| 205 |
sem |
| 206 |
|
| 207 |
jours |
| 208 |
j |
| 209 |
jour |
| 210 |
journee |
| 211 |
journée |
| 212 |
|
| 213 |
heures |
| 214 |
h |
| 215 |
heure |
| 216 |
|
| 217 |
minutes |
| 218 |
mn |
| 219 |
min |
| 220 |
minute |
| 221 |
|
| 222 |
secondes |
| 223 |
s |
| 224 |
sec |
| 225 |
seconde |
| 226 |
|
| 227 |
|
| 228 |
=item B<Morning/afternoon times> |
| 229 |
|
| 230 |
This is a list of expressions use to designate morning or afternoon time |
| 231 |
when a time is entered as a 12-hour time rather than a 24-hour time. |
| 232 |
For example, in English, the time "17:00" could be specified as "5:00 PM". |
| 233 |
|
| 234 |
Morning and afternoon time may be designated by the following sets of |
| 235 |
words: |
| 236 |
|
| 237 |
du matin |
| 238 |
|
| 239 |
du soir |
| 240 |
|
| 241 |
|
| 242 |
=item B<Each or every> |
| 243 |
|
| 244 |
There are a list of words that specify every occurrence of something. These |
| 245 |
are used in the following phrases: |
| 246 |
|
| 247 |
EACH Monday |
| 248 |
EVERY Monday |
| 249 |
EVERY month |
| 250 |
|
| 251 |
The following words may be used: |
| 252 |
|
| 253 |
chaque |
| 254 |
tous les |
| 255 |
toutes les |
| 256 |
|
| 257 |
|
| 258 |
=item B<Next/Previous/Last occurrence> |
| 259 |
|
| 260 |
There are a list of words that may be used to specify the next, |
| 261 |
previous, or last occurrence of something. These words could be used |
| 262 |
in the following phrases: |
| 263 |
|
| 264 |
NEXT week |
| 265 |
|
| 266 |
LAST Tuesday |
| 267 |
PREVIOUS Tuesday |
| 268 |
|
| 269 |
LAST day of the month |
| 270 |
|
| 271 |
The following words may be used: |
| 272 |
|
| 273 |
Next occurrence: |
| 274 |
|
| 275 |
suivant |
| 276 |
suivante |
| 277 |
prochain |
| 278 |
prochaine |
| 279 |
|
| 280 |
|
| 281 |
Previous occurrence: |
| 282 |
|
| 283 |
precedent |
| 284 |
précédent |
| 285 |
precedente |
| 286 |
précédente |
| 287 |
derniere |
| 288 |
dernière |
| 289 |
|
| 290 |
|
| 291 |
Last occurrence: |
| 292 |
|
| 293 |
dernier |
| 294 |
|
| 295 |
|
| 296 |
=item B<Delta words for going forward/backward in time> |
| 297 |
|
| 298 |
When parsing deltas, there are words that may be used to specify |
| 299 |
the the delta will refer to a time in the future or to a time in |
| 300 |
the past (relative to some date). In English, for example, you |
| 301 |
might say: |
| 302 |
|
| 303 |
IN 5 days |
| 304 |
5 days AGO |
| 305 |
|
| 306 |
The following words may be used to specify deltas that refer to |
| 307 |
dates in the past or future respectively: |
| 308 |
|
| 309 |
il y a |
| 310 |
auparavant |
| 311 |
dans le passé |
| 312 |
plus tot |
| 313 |
plus tôt |
| 314 |
|
| 315 |
en |
| 316 |
plus tard |
| 317 |
dans l'avenir |
| 318 |
a venir |
| 319 |
à venir |
| 320 |
dans |
| 321 |
|
| 322 |
|
| 323 |
=item B<Business mode> |
| 324 |
|
| 325 |
This contains two lists of words which can be used to specify a standard |
| 326 |
(i.e. non-business) delta or a business delta. |
| 327 |
|
| 328 |
Previously, it was used to tell whether the delta was approximate or exact, |
| 329 |
but now this list is not used except to force the delta to be standard. |
| 330 |
|
| 331 |
The following words may be used: |
| 332 |
|
| 333 |
exactement |
| 334 |
approximativement |
| 335 |
environ |
| 336 |
|
| 337 |
|
| 338 |
The following words may be used to specify a business delta: |
| 339 |
|
| 340 |
professionel |
| 341 |
ouvrable |
| 342 |
ouvrables |
| 343 |
|
| 344 |
|
| 345 |
=item B<Numbers> |
| 346 |
|
| 347 |
Numbers may be spelled out in a variety of ways. The following sets correspond |
| 348 |
to the numbers from 1 to 53: |
| 349 |
|
| 350 |
1er |
| 351 |
1re |
| 352 |
premier |
| 353 |
un |
| 354 |
|
| 355 |
2e |
| 356 |
deux |
| 357 |
deuxieme |
| 358 |
deuxième |
| 359 |
|
| 360 |
3e |
| 361 |
trois |
| 362 |
troisieme |
| 363 |
troisième |
| 364 |
|
| 365 |
4e |
| 366 |
quatre |
| 367 |
quatrieme |
| 368 |
quatrième |
| 369 |
|
| 370 |
5e |
| 371 |
cinq |
| 372 |
cinquieme |
| 373 |
cinquième |
| 374 |
|
| 375 |
6e |
| 376 |
six |
| 377 |
sixieme |
| 378 |
sixième |
| 379 |
|
| 380 |
7e |
| 381 |
sept |
| 382 |
septieme |
| 383 |
septième |
| 384 |
|
| 385 |
8e |
| 386 |
huit |
| 387 |
huitieme |
| 388 |
huitième |
| 389 |
|
| 390 |
9e |
| 391 |
neuf |
| 392 |
neuvieme |
| 393 |
neuvième |
| 394 |
|
| 395 |
10e |
| 396 |
dix |
| 397 |
dixieme |
| 398 |
dixième |
| 399 |
|
| 400 |
|
| 401 |
11e |
| 402 |
onze |
| 403 |
onzieme |
| 404 |
onzième |
| 405 |
|
| 406 |
12e |
| 407 |
douze |
| 408 |
douzieme |
| 409 |
douzième |
| 410 |
|
| 411 |
13e |
| 412 |
treize |
| 413 |
treizieme |
| 414 |
treizième |
| 415 |
|
| 416 |
14e |
| 417 |
quatorze |
| 418 |
quatorzieme |
| 419 |
quatorzième |
| 420 |
|
| 421 |
15e |
| 422 |
quinze |
| 423 |
quinzieme |
| 424 |
quinzième |
| 425 |
|
| 426 |
16e |
| 427 |
seize |
| 428 |
seizieme |
| 429 |
seizième |
| 430 |
|
| 431 |
17e |
| 432 |
dix-sept |
| 433 |
dix-septieme |
| 434 |
dix-septième |
| 435 |
|
| 436 |
18e |
| 437 |
dix-huit |
| 438 |
dix-huitieme |
| 439 |
dix-huitième |
| 440 |
|
| 441 |
19e |
| 442 |
dix-neuf |
| 443 |
dix-neuvieme |
| 444 |
dix-neuvième |
| 445 |
|
| 446 |
20e |
| 447 |
vingt |
| 448 |
vingtieme |
| 449 |
vingtième |
| 450 |
|
| 451 |
|
| 452 |
21e |
| 453 |
vingt et un |
| 454 |
vingt et unieme |
| 455 |
vingt et unième |
| 456 |
|
| 457 |
22e |
| 458 |
vingt-deux |
| 459 |
vingt-deuxieme |
| 460 |
vingt-deuxième |
| 461 |
|
| 462 |
23e |
| 463 |
vingt-trois |
| 464 |
vingt-troisieme |
| 465 |
vingt-troisième |
| 466 |
|
| 467 |
24e |
| 468 |
vingt-quatre |
| 469 |
vingt-quatrieme |
| 470 |
vingt-quatrième |
| 471 |
|
| 472 |
25e |
| 473 |
vingt-cinq |
| 474 |
vingt-cinquieme |
| 475 |
vingt-cinquième |
| 476 |
|
| 477 |
26e |
| 478 |
vingt-six |
| 479 |
vingt-sixieme |
| 480 |
vingt-sixième |
| 481 |
|
| 482 |
27e |
| 483 |
vingt-sept |
| 484 |
vingt-septieme |
| 485 |
vingt-septième |
| 486 |
|
| 487 |
28e |
| 488 |
vingt-huit |
| 489 |
vingt-huitieme |
| 490 |
vingt-huitième |
| 491 |
|
| 492 |
29e |
| 493 |
vingt-neuf |
| 494 |
vingt-neuvieme |
| 495 |
vingt-neuvième |
| 496 |
|
| 497 |
30e |
| 498 |
trente |
| 499 |
trentieme |
| 500 |
trentième |
| 501 |
|
| 502 |
|
| 503 |
31e |
| 504 |
trente et un |
| 505 |
trente et unieme |
| 506 |
trente et unième |
| 507 |
|
| 508 |
32e |
| 509 |
trente-deux |
| 510 |
trente-deuxieme |
| 511 |
trente-deuxième |
| 512 |
|
| 513 |
33e |
| 514 |
trente-trois |
| 515 |
trente-troisieme |
| 516 |
trente-troisième |
| 517 |
|
| 518 |
34e |
| 519 |
trente-quatre |
| 520 |
trente-quatrieme |
| 521 |
trente-quatrième |
| 522 |
|
| 523 |
35e |
| 524 |
trente-cinq |
| 525 |
trente-cinquieme |
| 526 |
trente-cinquième |
| 527 |
|
| 528 |
36e |
| 529 |
trente-six |
| 530 |
trente-sixieme |
| 531 |
trente-sixième |
| 532 |
|
| 533 |
37e |
| 534 |
trente-sept |
| 535 |
trente-septieme |
| 536 |
trente-septième |
| 537 |
|
| 538 |
38e |
| 539 |
trente-huit |
| 540 |
trente-huitieme |
| 541 |
trente-huitième |
| 542 |
|
| 543 |
39e |
| 544 |
trente-neuf |
| 545 |
trente-neuvieme |
| 546 |
trente-neuvième |
| 547 |
|
| 548 |
40e |
| 549 |
quarante |
| 550 |
quarantieme |
| 551 |
quarantième |
| 552 |
|
| 553 |
|
| 554 |
41e |
| 555 |
quarante et un |
| 556 |
quarante et unieme |
| 557 |
quarante et unième |
| 558 |
|
| 559 |
42e |
| 560 |
quarante-deux |
| 561 |
quarante-deuxieme |
| 562 |
quarante-deuxième |
| 563 |
|
| 564 |
43e |
| 565 |
quarante-trois |
| 566 |
quarante-troisieme |
| 567 |
quarante-troisième |
| 568 |
|
| 569 |
44e |
| 570 |
quarante-quatre |
| 571 |
quarante-quatrieme |
| 572 |
quarante-quatrième |
| 573 |
|
| 574 |
45e |
| 575 |
quarante-cinq |
| 576 |
quarante-cinquieme |
| 577 |
quarante-cinquième |
| 578 |
|
| 579 |
46e |
| 580 |
quarante-six |
| 581 |
quarante-sixieme |
| 582 |
quarante-sixième |
| 583 |
|
| 584 |
47e |
| 585 |
quarante-sept |
| 586 |
quarante-septieme |
| 587 |
quarante-septième |
| 588 |
|
| 589 |
48e |
| 590 |
quarante-huit |
| 591 |
quarante-huitieme |
| 592 |
quarante-huitième |
| 593 |
|
| 594 |
49e |
| 595 |
quarante-neuf |
| 596 |
quarante-neuvieme |
| 597 |
quarante-neuvième |
| 598 |
|
| 599 |
50e |
| 600 |
cinquante |
| 601 |
cinquantieme |
| 602 |
cinquantième |
| 603 |
|
| 604 |
|
| 605 |
51e |
| 606 |
cinquante et un |
| 607 |
cinquante et unieme |
| 608 |
cinquante et unième |
| 609 |
|
| 610 |
52e |
| 611 |
cinquante-deux |
| 612 |
cinquante-deuxieme |
| 613 |
cinquante-deuxième |
| 614 |
|
| 615 |
53e |
| 616 |
cinquante-trois |
| 617 |
cinquante-troisieme |
| 618 |
cinquante-troisième |
| 619 |
|
| 620 |
|
| 621 |
=item B<Ignored words> |
| 622 |
|
| 623 |
In writing out dates in common forms, there are a number of words |
| 624 |
that are typically not important. |
| 625 |
|
| 626 |
There is frequently a word that appears in a phrase to designate |
| 627 |
that a time is going to be specified next. In English, you would |
| 628 |
use the word AT in the example: |
| 629 |
|
| 630 |
December 3 at 12:00 |
| 631 |
|
| 632 |
The following words may be used: |
| 633 |
|
| 634 |
a |
| 635 |
à |
| 636 |
|
| 637 |
|
| 638 |
Another word is used to designate one member of a set. In English, |
| 639 |
you would use the words IN or OF: |
| 640 |
|
| 641 |
1st day OF December |
| 642 |
1st day IN December |
| 643 |
|
| 644 |
The following words may be used: |
| 645 |
|
| 646 |
de |
| 647 |
en |
| 648 |
du |
| 649 |
|
| 650 |
|
| 651 |
Another word is use to specify that something is on a certain date. In |
| 652 |
English, you would use ON: |
| 653 |
|
| 654 |
ON July 5th |
| 655 |
|
| 656 |
The following words may be used: |
| 657 |
|
| 658 |
sur |
| 659 |
|
| 660 |
|
| 661 |
=item B<Words that set the date, time, or both> |
| 662 |
|
| 663 |
There are some words that can be used to specify a date, a |
| 664 |
time, or both relative to now. |
| 665 |
|
| 666 |
Words that set the date are similar to the English words 'yesterday' |
| 667 |
or 'tomorrow'. These are specified as a delta which is added to the |
| 668 |
current time to get a date. The time is NOT set however, so the delta |
| 669 |
is only partially used (it should only include year, month, week, and |
| 670 |
day fields). |
| 671 |
|
| 672 |
The following words may be used: |
| 673 |
|
| 674 |
aujourd'hui 0:0:0:0:0:0:0 |
| 675 |
aujourd’hui 0:0:0:0:0:0:0 |
| 676 |
demain +0:0:0:1:0:0:0 |
| 677 |
hier -0:0:0:1:0:0:0 |
| 678 |
|
| 679 |
|
| 680 |
Words that set only the time of day are similar to the English words |
| 681 |
'noon' or 'midnight'. |
| 682 |
|
| 683 |
The following words may be used: |
| 684 |
|
| 685 |
midi 12:00:00 |
| 686 |
minuit 00:00:00 |
| 687 |
|
| 688 |
|
| 689 |
Words that set the entire time and date (relative to the current |
| 690 |
time and date) are also available. |
| 691 |
|
| 692 |
In English, the word 'now' is one of these. |
| 693 |
|
| 694 |
The following words may be used: |
| 695 |
|
| 696 |
maintenant 0:0:0:0:0:0:0 |
| 697 |
|
| 698 |
|
| 699 |
=item B<Hour/Minute/Second separators> |
| 700 |
|
| 701 |
When specifying the time of day, the most common separator is a colon (:) |
| 702 |
which can be used for both separators. |
| 703 |
|
| 704 |
Some languages use different pairs. For example, French allows you to |
| 705 |
specify the time as 13h30:20, so it would use the following pairs: |
| 706 |
|
| 707 |
: : |
| 708 |
h : |
| 709 |
|
| 710 |
The first column is the hour-minute separator and the second column is |
| 711 |
the minute-second separator. Both are perl regular expressions. When |
| 712 |
creating a new translation, be aware that regular expressions with utf-8 |
| 713 |
characters may be tricky. For example, don't include the expression '[x]' |
| 714 |
where 'x' is a utf-8 character. |
| 715 |
|
| 716 |
A pair of colons is ALWAYS allowed for all languages. If a language allows |
| 717 |
additional pairs, they are listed here: |
| 718 |
|
| 719 |
h : |
| 720 |
|
| 721 |
|
| 722 |
=item B<Fractional second separator> |
| 723 |
|
| 724 |
When specifying fractional seconds, the most common way is to use a |
| 725 |
decimal point (.). Some languages may specify a different separator |
| 726 |
that might be used. If this is done, it is a regular expression. |
| 727 |
|
| 728 |
The decimal point is ALWAYS allowed for all languages. If a language allows |
| 729 |
another separator, it is listed here: |
| 730 |
|
| 731 |
Not defined in this language |
| 732 |
|
| 733 |
|
| 734 |
=back |
| 735 |
|
| 736 |
=head1 KNOWN BUGS |
| 737 |
|
| 738 |
None known. |
| 739 |
|
| 740 |
=head1 BUGS AND QUESTIONS |
| 741 |
|
| 742 |
Please refer to the L<Date::Manip::Problems> documentation for |
| 743 |
information on submitting bug reports or questions to the author. |
| 744 |
|
| 745 |
=head1 SEE ALSO |
| 746 |
|
| 747 |
L<Date::Manip> - main module documentation |
| 748 |
|
| 749 |
=head1 LICENSE |
| 750 |
|
| 751 |
This script is free software; you can redistribute it and/or |
| 752 |
modify it under the same terms as Perl itself. |
| 753 |
|
| 754 |
=head1 AUTHOR |
| 755 |
|
| 756 |
Sullivan Beck ([email protected]) |
| 757 |
|
| 758 |
=cut |