| 1 |
# Copyright (c) 2003-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::catalan - Catalan 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 |
Gener |
| 39 |
|
| 40 |
Febrer |
| 41 |
|
| 42 |
Març |
| 43 |
Marc |
| 44 |
|
| 45 |
Abril |
| 46 |
|
| 47 |
Maig |
| 48 |
|
| 49 |
Juny |
| 50 |
|
| 51 |
Juliol |
| 52 |
|
| 53 |
Agost |
| 54 |
|
| 55 |
Setembre |
| 56 |
|
| 57 |
Octubre |
| 58 |
|
| 59 |
Novembre |
| 60 |
|
| 61 |
Desembre |
| 62 |
|
| 63 |
|
| 64 |
The following abbreviations may be used: |
| 65 |
|
| 66 |
Gen |
| 67 |
gen. |
| 68 |
|
| 69 |
Feb |
| 70 |
febr |
| 71 |
feb. |
| 72 |
febr. |
| 73 |
|
| 74 |
Mar |
| 75 |
mar. |
| 76 |
|
| 77 |
Abr |
| 78 |
abr. |
| 79 |
|
| 80 |
Mai |
| 81 |
mai. |
| 82 |
|
| 83 |
Jun |
| 84 |
jun. |
| 85 |
|
| 86 |
Jul |
| 87 |
jul. |
| 88 |
|
| 89 |
Ago |
| 90 |
ag |
| 91 |
ago. |
| 92 |
ag. |
| 93 |
|
| 94 |
Set |
| 95 |
set. |
| 96 |
|
| 97 |
Oct |
| 98 |
oct. |
| 99 |
|
| 100 |
Nov |
| 101 |
nov. |
| 102 |
|
| 103 |
Des |
| 104 |
Dec |
| 105 |
des. |
| 106 |
dec. |
| 107 |
|
| 108 |
|
| 109 |
=item B<Day names and abbreviations> |
| 110 |
|
| 111 |
When writing out the name of the day, several different variations may |
| 112 |
exist including full names and abbreviations. |
| 113 |
|
| 114 |
The following day names may be used: |
| 115 |
|
| 116 |
Dilluns |
| 117 |
|
| 118 |
Dimarts |
| 119 |
|
| 120 |
Dimecres |
| 121 |
|
| 122 |
Dijous |
| 123 |
|
| 124 |
Divendres |
| 125 |
|
| 126 |
Dissabte |
| 127 |
|
| 128 |
Diumenge |
| 129 |
|
| 130 |
|
| 131 |
The following abbreviations may be used: |
| 132 |
|
| 133 |
Dll |
| 134 |
dl. |
| 135 |
dl |
| 136 |
|
| 137 |
Dmt |
| 138 |
Dim |
| 139 |
dt. |
| 140 |
dt |
| 141 |
|
| 142 |
Dmc |
| 143 |
Dic |
| 144 |
dc. |
| 145 |
dc |
| 146 |
|
| 147 |
Dij |
| 148 |
dj. |
| 149 |
dj |
| 150 |
|
| 151 |
Div |
| 152 |
dv. |
| 153 |
dv |
| 154 |
|
| 155 |
Dis |
| 156 |
ds. |
| 157 |
ds |
| 158 |
|
| 159 |
Diu |
| 160 |
dg. |
| 161 |
dg |
| 162 |
|
| 163 |
|
| 164 |
The following short (1-2 characters) abbreviations may be used: |
| 165 |
|
| 166 |
Dl |
| 167 |
L |
| 168 |
|
| 169 |
Dm |
| 170 |
M |
| 171 |
t |
| 172 |
|
| 173 |
Dc |
| 174 |
X |
| 175 |
c |
| 176 |
|
| 177 |
Dj |
| 178 |
J |
| 179 |
|
| 180 |
Dv |
| 181 |
V |
| 182 |
|
| 183 |
Ds |
| 184 |
S |
| 185 |
|
| 186 |
Du |
| 187 |
U |
| 188 |
g |
| 189 |
|
| 190 |
|
| 191 |
=item B<Delta field names> |
| 192 |
|
| 193 |
These are the names (and abbreviations) for the fields in a delta. There are |
| 194 |
7 fields: years, months, weeks, days, hours, minutes, seconds. |
| 195 |
|
| 196 |
The names and abbreviations for these fields are: |
| 197 |
|
| 198 |
anys |
| 199 |
a |
| 200 |
an |
| 201 |
any |
| 202 |
|
| 203 |
mes |
| 204 |
m |
| 205 |
me |
| 206 |
ms |
| 207 |
|
| 208 |
setmanes |
| 209 |
s |
| 210 |
se |
| 211 |
set |
| 212 |
setm |
| 213 |
setmana |
| 214 |
|
| 215 |
dies |
| 216 |
d |
| 217 |
dia |
| 218 |
|
| 219 |
hores |
| 220 |
h |
| 221 |
ho |
| 222 |
hora |
| 223 |
|
| 224 |
minuts |
| 225 |
mn |
| 226 |
min |
| 227 |
minut |
| 228 |
|
| 229 |
segons |
| 230 |
s |
| 231 |
seg |
| 232 |
segon |
| 233 |
|
| 234 |
|
| 235 |
=item B<Morning/afternoon times> |
| 236 |
|
| 237 |
This is a list of expressions use to designate morning or afternoon time |
| 238 |
when a time is entered as a 12-hour time rather than a 24-hour time. |
| 239 |
For example, in English, the time "17:00" could be specified as "5:00 PM". |
| 240 |
|
| 241 |
Morning and afternoon time may be designated by the following sets of |
| 242 |
words: |
| 243 |
|
| 244 |
AM |
| 245 |
A.M. |
| 246 |
de la matinada |
| 247 |
|
| 248 |
PM |
| 249 |
P.M. |
| 250 |
de la tarda |
| 251 |
|
| 252 |
|
| 253 |
=item B<Each or every> |
| 254 |
|
| 255 |
There are a list of words that specify every occurrence of something. These |
| 256 |
are used in the following phrases: |
| 257 |
|
| 258 |
EACH Monday |
| 259 |
EVERY Monday |
| 260 |
EVERY month |
| 261 |
|
| 262 |
The following words may be used: |
| 263 |
|
| 264 |
cadascuna |
| 265 |
cada |
| 266 |
cadascun |
| 267 |
|
| 268 |
|
| 269 |
=item B<Next/Previous/Last occurrence> |
| 270 |
|
| 271 |
There are a list of words that may be used to specify the next, |
| 272 |
previous, or last occurrence of something. These words could be used |
| 273 |
in the following phrases: |
| 274 |
|
| 275 |
NEXT week |
| 276 |
|
| 277 |
LAST Tuesday |
| 278 |
PREVIOUS Tuesday |
| 279 |
|
| 280 |
LAST day of the month |
| 281 |
|
| 282 |
The following words may be used: |
| 283 |
|
| 284 |
Next occurrence: |
| 285 |
|
| 286 |
proper |
| 287 |
seguent |
| 288 |
següent |
| 289 |
|
| 290 |
|
| 291 |
Previous occurrence: |
| 292 |
|
| 293 |
passat |
| 294 |
proppassat |
| 295 |
anterior |
| 296 |
|
| 297 |
|
| 298 |
Last occurrence: |
| 299 |
|
| 300 |
darrer |
| 301 |
darrera |
| 302 |
ultim |
| 303 |
últim |
| 304 |
ultima |
| 305 |
última |
| 306 |
passat |
| 307 |
|
| 308 |
|
| 309 |
=item B<Delta words for going forward/backward in time> |
| 310 |
|
| 311 |
When parsing deltas, there are words that may be used to specify |
| 312 |
the the delta will refer to a time in the future or to a time in |
| 313 |
the past (relative to some date). In English, for example, you |
| 314 |
might say: |
| 315 |
|
| 316 |
IN 5 days |
| 317 |
5 days AGO |
| 318 |
|
| 319 |
The following words may be used to specify deltas that refer to |
| 320 |
dates in the past or future respectively: |
| 321 |
|
| 322 |
fa |
| 323 |
|
| 324 |
d'aqui a |
| 325 |
d'aquí a |
| 326 |
mes tard |
| 327 |
més tard |
| 328 |
|
| 329 |
|
| 330 |
=item B<Business mode> |
| 331 |
|
| 332 |
This contains two lists of words which can be used to specify a standard |
| 333 |
(i.e. non-business) delta or a business delta. |
| 334 |
|
| 335 |
Previously, it was used to tell whether the delta was approximate or exact, |
| 336 |
but now this list is not used except to force the delta to be standard. |
| 337 |
|
| 338 |
The following words may be used: |
| 339 |
|
| 340 |
exactament |
| 341 |
approximadament |
| 342 |
|
| 343 |
|
| 344 |
The following words may be used to specify a business delta: |
| 345 |
|
| 346 |
empresa |
| 347 |
|
| 348 |
|
| 349 |
=item B<Numbers> |
| 350 |
|
| 351 |
Numbers may be spelled out in a variety of ways. The following sets correspond |
| 352 |
to the numbers from 1 to 53: |
| 353 |
|
| 354 |
1er |
| 355 |
primer |
| 356 |
un |
| 357 |
|
| 358 |
2n |
| 359 |
segon |
| 360 |
dos |
| 361 |
|
| 362 |
3r |
| 363 |
tercer |
| 364 |
tres |
| 365 |
|
| 366 |
4t |
| 367 |
quart |
| 368 |
quatre |
| 369 |
|
| 370 |
5è |
| 371 |
5e |
| 372 |
cinque |
| 373 |
Cinquè |
| 374 |
cinc |
| 375 |
|
| 376 |
6è |
| 377 |
6e |
| 378 |
sise |
| 379 |
sisè |
| 380 |
sis |
| 381 |
|
| 382 |
7è |
| 383 |
7e |
| 384 |
sete |
| 385 |
setè |
| 386 |
set |
| 387 |
|
| 388 |
8è |
| 389 |
8e |
| 390 |
vuite |
| 391 |
vuitè |
| 392 |
vuit |
| 393 |
|
| 394 |
9è |
| 395 |
9e |
| 396 |
nove |
| 397 |
novè |
| 398 |
nou |
| 399 |
|
| 400 |
10è |
| 401 |
10e |
| 402 |
dese |
| 403 |
desè |
| 404 |
deu |
| 405 |
|
| 406 |
|
| 407 |
11è |
| 408 |
11e |
| 409 |
onze |
| 410 |
onzè |
| 411 |
|
| 412 |
12è |
| 413 |
12e |
| 414 |
dotze |
| 415 |
dotzè |
| 416 |
|
| 417 |
13è |
| 418 |
13e |
| 419 |
tretze |
| 420 |
tretzè |
| 421 |
|
| 422 |
14è |
| 423 |
14e |
| 424 |
catorze |
| 425 |
catorzè |
| 426 |
|
| 427 |
15è |
| 428 |
15e |
| 429 |
quinze |
| 430 |
quinzè |
| 431 |
|
| 432 |
16è |
| 433 |
16e |
| 434 |
setze |
| 435 |
setzè |
| 436 |
|
| 437 |
17è |
| 438 |
17e |
| 439 |
dissete |
| 440 |
dissetè |
| 441 |
disset |
| 442 |
|
| 443 |
18è |
| 444 |
18e |
| 445 |
divuite |
| 446 |
divuitè |
| 447 |
divuit |
| 448 |
|
| 449 |
19è |
| 450 |
19e |
| 451 |
dinove |
| 452 |
dinovèe |
| 453 |
dinou |
| 454 |
|
| 455 |
20è |
| 456 |
20e |
| 457 |
vinte |
| 458 |
vintè |
| 459 |
vint |
| 460 |
|
| 461 |
|
| 462 |
21è |
| 463 |
21e |
| 464 |
vint-i-une |
| 465 |
vint-i-unè |
| 466 |
vint-i-u |
| 467 |
|
| 468 |
22è |
| 469 |
22e |
| 470 |
vint-i-dose |
| 471 |
vint-i-dosè |
| 472 |
vint-i-dos |
| 473 |
|
| 474 |
23è |
| 475 |
23e |
| 476 |
vint-i-trese |
| 477 |
vint-i-tresè |
| 478 |
vint-i-tres |
| 479 |
|
| 480 |
24è |
| 481 |
24e |
| 482 |
vint-i-quatre |
| 483 |
vint-i-quatrè |
| 484 |
|
| 485 |
25è |
| 486 |
25e |
| 487 |
vint-i-cinque |
| 488 |
vint-i-cinquè |
| 489 |
|
| 490 |
26è |
| 491 |
26e |
| 492 |
vint-i-sise |
| 493 |
vint-i-sisè |
| 494 |
|
| 495 |
27è |
| 496 |
27e |
| 497 |
vint-i-sete |
| 498 |
vint-i-setè |
| 499 |
|
| 500 |
28è |
| 501 |
28e |
| 502 |
vint-i-vuite |
| 503 |
vint-i-vuitè |
| 504 |
|
| 505 |
29è |
| 506 |
29e |
| 507 |
vint-i-nove |
| 508 |
vint-i-novè |
| 509 |
|
| 510 |
30è |
| 511 |
30e |
| 512 |
trente |
| 513 |
trentè |
| 514 |
trenta |
| 515 |
|
| 516 |
|
| 517 |
31è |
| 518 |
31e |
| 519 |
trenta-une |
| 520 |
trenta-unè |
| 521 |
trenta-u |
| 522 |
|
| 523 |
32è |
| 524 |
32e |
| 525 |
trenta-dos |
| 526 |
|
| 527 |
33è |
| 528 |
33e |
| 529 |
trenta-tres |
| 530 |
|
| 531 |
34è |
| 532 |
34e |
| 533 |
trenta-quatre |
| 534 |
|
| 535 |
35è |
| 536 |
35e |
| 537 |
trenta-cinc |
| 538 |
|
| 539 |
36è |
| 540 |
36e |
| 541 |
trenta-sis |
| 542 |
|
| 543 |
37è |
| 544 |
37e |
| 545 |
trenta-set |
| 546 |
trenta-setè |
| 547 |
trenta-sete |
| 548 |
|
| 549 |
38è |
| 550 |
38e |
| 551 |
trenta-vuit |
| 552 |
|
| 553 |
39è |
| 554 |
39e |
| 555 |
trenta-nou |
| 556 |
|
| 557 |
40è |
| 558 |
40e |
| 559 |
quaranta |
| 560 |
|
| 561 |
|
| 562 |
41è |
| 563 |
41e |
| 564 |
quaranta-un |
| 565 |
|
| 566 |
42è |
| 567 |
42e |
| 568 |
quaranta-dos |
| 569 |
|
| 570 |
43è |
| 571 |
43e |
| 572 |
quaranta-tres |
| 573 |
|
| 574 |
44è |
| 575 |
44e |
| 576 |
quaranta-quatre |
| 577 |
|
| 578 |
45è |
| 579 |
45e |
| 580 |
quaranta-cinc |
| 581 |
|
| 582 |
46è |
| 583 |
46e |
| 584 |
quaranta-sis |
| 585 |
|
| 586 |
47è |
| 587 |
47e |
| 588 |
quaranta-set |
| 589 |
|
| 590 |
48è |
| 591 |
48e |
| 592 |
quaranta-vuit |
| 593 |
quaranta-vuitena |
| 594 |
|
| 595 |
49è |
| 596 |
49e |
| 597 |
quaranta-nou |
| 598 |
|
| 599 |
50è |
| 600 |
50e |
| 601 |
cinquantè |
| 602 |
cinquante |
| 603 |
|
| 604 |
|
| 605 |
51è |
| 606 |
51e |
| 607 |
cinquanta-un |
| 608 |
|
| 609 |
52è |
| 610 |
52e |
| 611 |
cinquanta-dos |
| 612 |
|
| 613 |
53è |
| 614 |
53e |
| 615 |
cinquanta-tres |
| 616 |
|
| 617 |
|
| 618 |
=item B<Ignored words> |
| 619 |
|
| 620 |
In writing out dates in common forms, there are a number of words |
| 621 |
that are typically not important. |
| 622 |
|
| 623 |
There is frequently a word that appears in a phrase to designate |
| 624 |
that a time is going to be specified next. In English, you would |
| 625 |
use the word AT in the example: |
| 626 |
|
| 627 |
December 3 at 12:00 |
| 628 |
|
| 629 |
The following words may be used: |
| 630 |
|
| 631 |
a les |
| 632 |
a |
| 633 |
al |
| 634 |
|
| 635 |
|
| 636 |
Another word is used to designate one member of a set. In English, |
| 637 |
you would use the words IN or OF: |
| 638 |
|
| 639 |
1st day OF December |
| 640 |
1st day IN December |
| 641 |
|
| 642 |
The following words may be used: |
| 643 |
|
| 644 |
de |
| 645 |
d' |
| 646 |
|
| 647 |
|
| 648 |
Another word is use to specify that something is on a certain date. In |
| 649 |
English, you would use ON: |
| 650 |
|
| 651 |
ON July 5th |
| 652 |
|
| 653 |
The following words may be used: |
| 654 |
|
| 655 |
el |
| 656 |
|
| 657 |
|
| 658 |
=item B<Words that set the date, time, or both> |
| 659 |
|
| 660 |
There are some words that can be used to specify a date, a |
| 661 |
time, or both relative to now. |
| 662 |
|
| 663 |
Words that set the date are similar to the English words 'yesterday' |
| 664 |
or 'tomorrow'. These are specified as a delta which is added to the |
| 665 |
current time to get a date. The time is NOT set however, so the delta |
| 666 |
is only partially used (it should only include year, month, week, and |
| 667 |
day fields). |
| 668 |
|
| 669 |
The following words may be used: |
| 670 |
|
| 671 |
abans d'ahir -0:0:0:2:0:0:0 |
| 672 |
ahir -0:0:0:1:0:0:0 |
| 673 |
dema +0:0:0:1:0:0:0 |
| 674 |
dema passat +0:0:0:2:0:0:0 |
| 675 |
demà +0:0:0:1:0:0:0 |
| 676 |
demà passat +0:0:0:2:0:0:0 |
| 677 |
idag 0:0:0:0: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 |
migdia 12:00:00 |
| 686 |
mitjanit 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 |
ara 0:0:0:0:0:0:0 |
| 697 |
avui 0:0:0:0:0:0:0 |
| 698 |
|
| 699 |
|
| 700 |
=item B<Hour/Minute/Second separators> |
| 701 |
|
| 702 |
When specifying the time of day, the most common separator is a colon (:) |
| 703 |
which can be used for both separators. |
| 704 |
|
| 705 |
Some languages use different pairs. For example, French allows you to |
| 706 |
specify the time as 13h30:20, so it would use the following pairs: |
| 707 |
|
| 708 |
: : |
| 709 |
h : |
| 710 |
|
| 711 |
The first column is the hour-minute separator and the second column is |
| 712 |
the minute-second separator. Both are perl regular expressions. When |
| 713 |
creating a new translation, be aware that regular expressions with utf-8 |
| 714 |
characters may be tricky. For example, don't include the expression '[x]' |
| 715 |
where 'x' is a utf-8 character. |
| 716 |
|
| 717 |
A pair of colons is ALWAYS allowed for all languages. If a language allows |
| 718 |
additional pairs, they are listed here: |
| 719 |
|
| 720 |
Not defined in this language |
| 721 |
|
| 722 |
|
| 723 |
=item B<Fractional second separator> |
| 724 |
|
| 725 |
When specifying fractional seconds, the most common way is to use a |
| 726 |
decimal point (.). Some languages may specify a different separator |
| 727 |
that might be used. If this is done, it is a regular expression. |
| 728 |
|
| 729 |
The decimal point is ALWAYS allowed for all languages. If a language allows |
| 730 |
another separator, it is listed here: |
| 731 |
|
| 732 |
Not defined in this language |
| 733 |
|
| 734 |
|
| 735 |
=back |
| 736 |
|
| 737 |
=head1 KNOWN BUGS |
| 738 |
|
| 739 |
None known. |
| 740 |
|
| 741 |
=head1 BUGS AND QUESTIONS |
| 742 |
|
| 743 |
Please refer to the L<Date::Manip::Problems> documentation for |
| 744 |
information on submitting bug reports or questions to the author. |
| 745 |
|
| 746 |
=head1 SEE ALSO |
| 747 |
|
| 748 |
L<Date::Manip> - main module documentation |
| 749 |
|
| 750 |
=head1 LICENSE |
| 751 |
|
| 752 |
This script is free software; you can redistribute it and/or |
| 753 |
modify it under the same terms as Perl itself. |
| 754 |
|
| 755 |
=head1 AUTHOR |
| 756 |
|
| 757 |
Sullivan Beck ([email protected]) |
| 758 |
|
| 759 |
=cut |