| 1 |
# Copyright (c) 1998-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::norwegian - Norwegian 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 |
januar |
| 39 |
|
| 40 |
februar |
| 41 |
|
| 42 |
mars |
| 43 |
|
| 44 |
april |
| 45 |
|
| 46 |
mai |
| 47 |
|
| 48 |
juni |
| 49 |
|
| 50 |
juli |
| 51 |
|
| 52 |
august |
| 53 |
|
| 54 |
september |
| 55 |
|
| 56 |
oktober |
| 57 |
|
| 58 |
november |
| 59 |
|
| 60 |
desember |
| 61 |
|
| 62 |
|
| 63 |
The following abbreviations may be used: |
| 64 |
|
| 65 |
jan |
| 66 |
|
| 67 |
feb |
| 68 |
|
| 69 |
mar |
| 70 |
mars |
| 71 |
|
| 72 |
apr |
| 73 |
april |
| 74 |
|
| 75 |
mai |
| 76 |
|
| 77 |
jun |
| 78 |
juni |
| 79 |
|
| 80 |
jul |
| 81 |
juli |
| 82 |
|
| 83 |
aug |
| 84 |
|
| 85 |
sep |
| 86 |
|
| 87 |
okt |
| 88 |
|
| 89 |
nov |
| 90 |
|
| 91 |
des |
| 92 |
|
| 93 |
|
| 94 |
=item B<Day names and abbreviations> |
| 95 |
|
| 96 |
When writing out the name of the day, several different variations may |
| 97 |
exist including full names and abbreviations. |
| 98 |
|
| 99 |
The following day names may be used: |
| 100 |
|
| 101 |
mandag |
| 102 |
|
| 103 |
tirsdag |
| 104 |
|
| 105 |
onsdag |
| 106 |
|
| 107 |
torsdag |
| 108 |
|
| 109 |
fredag |
| 110 |
|
| 111 |
lørdag |
| 112 |
loerdag |
| 113 |
|
| 114 |
søndag |
| 115 |
soendag |
| 116 |
|
| 117 |
|
| 118 |
The following abbreviations may be used: |
| 119 |
|
| 120 |
man |
| 121 |
ma |
| 122 |
|
| 123 |
tir |
| 124 |
ti |
| 125 |
|
| 126 |
ons |
| 127 |
on |
| 128 |
|
| 129 |
tor |
| 130 |
to |
| 131 |
|
| 132 |
fre |
| 133 |
fr |
| 134 |
|
| 135 |
lør |
| 136 |
loer |
| 137 |
lø |
| 138 |
|
| 139 |
søn |
| 140 |
soen |
| 141 |
sø |
| 142 |
|
| 143 |
|
| 144 |
The following short (1-2 characters) abbreviations may be used: |
| 145 |
|
| 146 |
m |
| 147 |
|
| 148 |
ti |
| 149 |
|
| 150 |
o |
| 151 |
|
| 152 |
to |
| 153 |
|
| 154 |
f |
| 155 |
|
| 156 |
l |
| 157 |
|
| 158 |
s |
| 159 |
|
| 160 |
|
| 161 |
=item B<Delta field names> |
| 162 |
|
| 163 |
These are the names (and abbreviations) for the fields in a delta. There are |
| 164 |
7 fields: years, months, weeks, days, hours, minutes, seconds. |
| 165 |
|
| 166 |
The names and abbreviations for these fields are: |
| 167 |
|
| 168 |
aar |
| 169 |
år |
| 170 |
å |
| 171 |
aa |
| 172 |
|
| 173 |
maaneder |
| 174 |
måneder |
| 175 |
måned |
| 176 |
mnd |
| 177 |
maaned |
| 178 |
mnd |
| 179 |
|
| 180 |
uker |
| 181 |
uke |
| 182 |
uk |
| 183 |
ukr |
| 184 |
u |
| 185 |
|
| 186 |
dager |
| 187 |
dag |
| 188 |
d |
| 189 |
|
| 190 |
timer |
| 191 |
time |
| 192 |
t |
| 193 |
|
| 194 |
minutter |
| 195 |
minutt |
| 196 |
min |
| 197 |
m |
| 198 |
|
| 199 |
sekunder |
| 200 |
sekund |
| 201 |
sek |
| 202 |
s |
| 203 |
|
| 204 |
|
| 205 |
=item B<Morning/afternoon times> |
| 206 |
|
| 207 |
This is a list of expressions use to designate morning or afternoon time |
| 208 |
when a time is entered as a 12-hour time rather than a 24-hour time. |
| 209 |
For example, in English, the time "17:00" could be specified as "5:00 PM". |
| 210 |
|
| 211 |
Morning and afternoon time may be designated by the following sets of |
| 212 |
words: |
| 213 |
|
| 214 |
FM |
| 215 |
|
| 216 |
EM |
| 217 |
|
| 218 |
|
| 219 |
=item B<Each or every> |
| 220 |
|
| 221 |
There are a list of words that specify every occurrence of something. These |
| 222 |
are used in the following phrases: |
| 223 |
|
| 224 |
EACH Monday |
| 225 |
EVERY Monday |
| 226 |
EVERY month |
| 227 |
|
| 228 |
The following words may be used: |
| 229 |
|
| 230 |
hver |
| 231 |
|
| 232 |
|
| 233 |
=item B<Next/Previous/Last occurrence> |
| 234 |
|
| 235 |
There are a list of words that may be used to specify the next, |
| 236 |
previous, or last occurrence of something. These words could be used |
| 237 |
in the following phrases: |
| 238 |
|
| 239 |
NEXT week |
| 240 |
|
| 241 |
LAST Tuesday |
| 242 |
PREVIOUS Tuesday |
| 243 |
|
| 244 |
LAST day of the month |
| 245 |
|
| 246 |
The following words may be used: |
| 247 |
|
| 248 |
Next occurrence: |
| 249 |
|
| 250 |
neste |
| 251 |
|
| 252 |
|
| 253 |
Previous occurrence: |
| 254 |
|
| 255 |
forrige |
| 256 |
|
| 257 |
|
| 258 |
Last occurrence: |
| 259 |
|
| 260 |
siste |
| 261 |
|
| 262 |
|
| 263 |
=item B<Delta words for going forward/backward in time> |
| 264 |
|
| 265 |
When parsing deltas, there are words that may be used to specify |
| 266 |
the the delta will refer to a time in the future or to a time in |
| 267 |
the past (relative to some date). In English, for example, you |
| 268 |
might say: |
| 269 |
|
| 270 |
IN 5 days |
| 271 |
5 days AGO |
| 272 |
|
| 273 |
The following words may be used to specify deltas that refer to |
| 274 |
dates in the past or future respectively: |
| 275 |
|
| 276 |
siden |
| 277 |
|
| 278 |
om |
| 279 |
senere |
| 280 |
|
| 281 |
|
| 282 |
=item B<Business mode> |
| 283 |
|
| 284 |
This contains two lists of words which can be used to specify a standard |
| 285 |
(i.e. non-business) delta or a business delta. |
| 286 |
|
| 287 |
Previously, it was used to tell whether the delta was approximate or exact, |
| 288 |
but now this list is not used except to force the delta to be standard. |
| 289 |
|
| 290 |
The following words may be used: |
| 291 |
|
| 292 |
eksakt |
| 293 |
cirka |
| 294 |
omtrent |
| 295 |
|
| 296 |
|
| 297 |
The following words may be used to specify a business delta: |
| 298 |
|
| 299 |
arbeidsdag |
| 300 |
arbeidsdager |
| 301 |
|
| 302 |
|
| 303 |
=item B<Numbers> |
| 304 |
|
| 305 |
Numbers may be spelled out in a variety of ways. The following sets correspond |
| 306 |
to the numbers from 1 to 53: |
| 307 |
|
| 308 |
første |
| 309 |
foerste |
| 310 |
en |
| 311 |
|
| 312 |
andre |
| 313 |
to |
| 314 |
|
| 315 |
tredje |
| 316 |
tre |
| 317 |
|
| 318 |
fjerde |
| 319 |
fire |
| 320 |
|
| 321 |
femte |
| 322 |
fem |
| 323 |
|
| 324 |
sjette |
| 325 |
seks |
| 326 |
|
| 327 |
syvende |
| 328 |
syv |
| 329 |
|
| 330 |
åttende |
| 331 |
aattende |
| 332 |
åtte |
| 333 |
aatte |
| 334 |
|
| 335 |
niende |
| 336 |
ni |
| 337 |
|
| 338 |
tiende |
| 339 |
ti |
| 340 |
|
| 341 |
|
| 342 |
ellevte |
| 343 |
elleve |
| 344 |
|
| 345 |
tolvte |
| 346 |
tolv |
| 347 |
|
| 348 |
trettende |
| 349 |
tretten |
| 350 |
|
| 351 |
fjortende |
| 352 |
fjorten |
| 353 |
|
| 354 |
femtende |
| 355 |
femten |
| 356 |
|
| 357 |
sekstende |
| 358 |
seksten |
| 359 |
|
| 360 |
syttende |
| 361 |
sytten |
| 362 |
|
| 363 |
attende |
| 364 |
atten |
| 365 |
|
| 366 |
nittende |
| 367 |
nitten |
| 368 |
|
| 369 |
tjuende |
| 370 |
tjue |
| 371 |
|
| 372 |
|
| 373 |
tjueførste |
| 374 |
tjuefoerste |
| 375 |
tjueen |
| 376 |
|
| 377 |
tjueandre |
| 378 |
tjueto |
| 379 |
|
| 380 |
tjuetredje |
| 381 |
tjuetre |
| 382 |
|
| 383 |
tjuefjerde |
| 384 |
tjuefire |
| 385 |
|
| 386 |
tjuefemte |
| 387 |
tjuefem |
| 388 |
|
| 389 |
tjuesjette |
| 390 |
tjueseks |
| 391 |
|
| 392 |
tjuesyvende |
| 393 |
tjuesyv |
| 394 |
|
| 395 |
tjueåttende |
| 396 |
tjueaattende |
| 397 |
tjueåtte |
| 398 |
tjueaatte |
| 399 |
|
| 400 |
tjueniende |
| 401 |
tjueni |
| 402 |
|
| 403 |
trettiende |
| 404 |
tretti |
| 405 |
|
| 406 |
|
| 407 |
trettiførste |
| 408 |
trettifoerste |
| 409 |
trettien |
| 410 |
|
| 411 |
trettiandre |
| 412 |
trettito |
| 413 |
|
| 414 |
trettitredje |
| 415 |
trettitre |
| 416 |
|
| 417 |
trettifjerde |
| 418 |
trettifire |
| 419 |
|
| 420 |
trettifemte |
| 421 |
trettifem |
| 422 |
|
| 423 |
trettisjette |
| 424 |
trettiseks |
| 425 |
|
| 426 |
trettisyvende |
| 427 |
trettisyv |
| 428 |
|
| 429 |
trettiåttende |
| 430 |
trettiaattende |
| 431 |
trettiåtte |
| 432 |
trettiaatte |
| 433 |
|
| 434 |
trettiniende |
| 435 |
trettini |
| 436 |
|
| 437 |
førtiende |
| 438 |
foertiende |
| 439 |
førti |
| 440 |
foerti |
| 441 |
|
| 442 |
|
| 443 |
førtiførste |
| 444 |
foertifoerste |
| 445 |
førtien |
| 446 |
foertien |
| 447 |
|
| 448 |
førtiandre |
| 449 |
foertiandre |
| 450 |
førtito |
| 451 |
foertito |
| 452 |
|
| 453 |
førtitredje |
| 454 |
foertitredje |
| 455 |
førtitre |
| 456 |
foertitre |
| 457 |
|
| 458 |
førtifjerde |
| 459 |
foertifjerde |
| 460 |
førtifire |
| 461 |
foertifire |
| 462 |
|
| 463 |
førtifemte |
| 464 |
foertifemte |
| 465 |
førtifem |
| 466 |
foertifem |
| 467 |
|
| 468 |
førtisjette |
| 469 |
foertisjette |
| 470 |
førtiseks |
| 471 |
foertiseks |
| 472 |
|
| 473 |
førtisyvende |
| 474 |
foertisyvende |
| 475 |
førtisyv |
| 476 |
foertisyv |
| 477 |
|
| 478 |
førtiåttende |
| 479 |
foertiaattende |
| 480 |
førtiåtte |
| 481 |
foertiaatte |
| 482 |
|
| 483 |
førtiniende |
| 484 |
foertiniende |
| 485 |
førtini |
| 486 |
foertini |
| 487 |
|
| 488 |
femtiende |
| 489 |
femti |
| 490 |
|
| 491 |
|
| 492 |
femtiførste |
| 493 |
femtifoerste |
| 494 |
femtien |
| 495 |
|
| 496 |
femtiandre |
| 497 |
femtito |
| 498 |
|
| 499 |
femtitredje |
| 500 |
femtitre |
| 501 |
|
| 502 |
|
| 503 |
=item B<Ignored words> |
| 504 |
|
| 505 |
In writing out dates in common forms, there are a number of words |
| 506 |
that are typically not important. |
| 507 |
|
| 508 |
There is frequently a word that appears in a phrase to designate |
| 509 |
that a time is going to be specified next. In English, you would |
| 510 |
use the word AT in the example: |
| 511 |
|
| 512 |
December 3 at 12:00 |
| 513 |
|
| 514 |
The following words may be used: |
| 515 |
|
| 516 |
kl |
| 517 |
kl. |
| 518 |
klokken |
| 519 |
|
| 520 |
|
| 521 |
Another word is used to designate one member of a set. In English, |
| 522 |
you would use the words IN or OF: |
| 523 |
|
| 524 |
1st day OF December |
| 525 |
1st day IN December |
| 526 |
|
| 527 |
The following words may be used: |
| 528 |
|
| 529 |
første |
| 530 |
foerste |
| 531 |
|
| 532 |
|
| 533 |
Another word is use to specify that something is on a certain date. In |
| 534 |
English, you would use ON: |
| 535 |
|
| 536 |
ON July 5th |
| 537 |
|
| 538 |
The following words may be used: |
| 539 |
|
| 540 |
på |
| 541 |
paa |
| 542 |
|
| 543 |
|
| 544 |
=item B<Words that set the date, time, or both> |
| 545 |
|
| 546 |
There are some words that can be used to specify a date, a |
| 547 |
time, or both relative to now. |
| 548 |
|
| 549 |
Words that set the date are similar to the English words 'yesterday' |
| 550 |
or 'tomorrow'. These are specified as a delta which is added to the |
| 551 |
current time to get a date. The time is NOT set however, so the delta |
| 552 |
is only partially used (it should only include year, month, week, and |
| 553 |
day fields). |
| 554 |
|
| 555 |
The following words may be used: |
| 556 |
|
| 557 |
i dag 0:0:0:0:0:0:0 |
| 558 |
i gaar -0:0:0:1:0:0:0 |
| 559 |
i går -0:0:0:1:0:0:0 |
| 560 |
i morgen +0:0:0:1:0:0:0 |
| 561 |
|
| 562 |
|
| 563 |
Words that set only the time of day are similar to the English words |
| 564 |
'noon' or 'midnight'. |
| 565 |
|
| 566 |
The following words may be used: |
| 567 |
|
| 568 |
midnatt 00:00:00 |
| 569 |
midt paa dagen 12:00:00 |
| 570 |
midt på dagen 12:00:00 |
| 571 |
|
| 572 |
|
| 573 |
Words that set the entire time and date (relative to the current |
| 574 |
time and date) are also available. |
| 575 |
|
| 576 |
In English, the word 'now' is one of these. |
| 577 |
|
| 578 |
The following words may be used: |
| 579 |
|
| 580 |
naa 0:0:0:0:0:0:0 |
| 581 |
nå 0:0:0:0:0:0:0 |
| 582 |
|
| 583 |
|
| 584 |
=item B<Hour/Minute/Second separators> |
| 585 |
|
| 586 |
When specifying the time of day, the most common separator is a colon (:) |
| 587 |
which can be used for both separators. |
| 588 |
|
| 589 |
Some languages use different pairs. For example, French allows you to |
| 590 |
specify the time as 13h30:20, so it would use the following pairs: |
| 591 |
|
| 592 |
: : |
| 593 |
h : |
| 594 |
|
| 595 |
The first column is the hour-minute separator and the second column is |
| 596 |
the minute-second separator. Both are perl regular expressions. When |
| 597 |
creating a new translation, be aware that regular expressions with utf-8 |
| 598 |
characters may be tricky. For example, don't include the expression '[x]' |
| 599 |
where 'x' is a utf-8 character. |
| 600 |
|
| 601 |
A pair of colons is ALWAYS allowed for all languages. If a language allows |
| 602 |
additional pairs, they are listed here: |
| 603 |
|
| 604 |
Not defined in this language |
| 605 |
|
| 606 |
|
| 607 |
=item B<Fractional second separator> |
| 608 |
|
| 609 |
When specifying fractional seconds, the most common way is to use a |
| 610 |
decimal point (.). Some languages may specify a different separator |
| 611 |
that might be used. If this is done, it is a regular expression. |
| 612 |
|
| 613 |
The decimal point is ALWAYS allowed for all languages. If a language allows |
| 614 |
another separator, it is listed here: |
| 615 |
|
| 616 |
Not defined in this language |
| 617 |
|
| 618 |
|
| 619 |
=back |
| 620 |
|
| 621 |
=head1 KNOWN BUGS |
| 622 |
|
| 623 |
None known. |
| 624 |
|
| 625 |
=head1 BUGS AND QUESTIONS |
| 626 |
|
| 627 |
Please refer to the L<Date::Manip::Problems> documentation for |
| 628 |
information on submitting bug reports or questions to the author. |
| 629 |
|
| 630 |
=head1 SEE ALSO |
| 631 |
|
| 632 |
L<Date::Manip> - main module documentation |
| 633 |
|
| 634 |
=head1 LICENSE |
| 635 |
|
| 636 |
This script is free software; you can redistribute it and/or |
| 637 |
modify it under the same terms as Perl itself. |
| 638 |
|
| 639 |
=head1 AUTHOR |
| 640 |
|
| 641 |
Sullivan Beck ([email protected]) |
| 642 |
|
| 643 |
=cut |