| @@ 479-485 (lines=7) @@ | ||
| 476 | ||
| 477 | if (is_int($format)) { |
|
| 478 | switch ($format) { |
|
| 479 | case DATE_FORMAT_ONLY_DAYNAME: |
|
| 480 | $date_format = get_lang('dateFormatOnlyDayName', '', $language); |
|
| 481 | if (INTL_INSTALLED) { |
|
| 482 | $datetype = IntlDateFormatter::SHORT; |
|
| 483 | $timetype = IntlDateFormatter::NONE; |
|
| 484 | } |
|
| 485 | break; |
|
| 486 | case DATE_FORMAT_NUMBER_NO_YEAR: |
|
| 487 | $date_format = get_lang('dateFormatShortNumberNoYear', '', $language); |
|
| 488 | if (INTL_INSTALLED) { |
|
| @@ 486-492 (lines=7) @@ | ||
| 483 | $timetype = IntlDateFormatter::NONE; |
|
| 484 | } |
|
| 485 | break; |
|
| 486 | case DATE_FORMAT_NUMBER_NO_YEAR: |
|
| 487 | $date_format = get_lang('dateFormatShortNumberNoYear', '', $language); |
|
| 488 | if (INTL_INSTALLED) { |
|
| 489 | $datetype = IntlDateFormatter::SHORT; |
|
| 490 | $timetype = IntlDateFormatter::NONE; |
|
| 491 | } |
|
| 492 | break; |
|
| 493 | case DATE_FORMAT_NUMBER: |
|
| 494 | $date_format = get_lang('dateFormatShortNumber', '', $language); |
|
| 495 | if (INTL_INSTALLED) { |
|
| @@ 493-499 (lines=7) @@ | ||
| 490 | $timetype = IntlDateFormatter::NONE; |
|
| 491 | } |
|
| 492 | break; |
|
| 493 | case DATE_FORMAT_NUMBER: |
|
| 494 | $date_format = get_lang('dateFormatShortNumber', '', $language); |
|
| 495 | if (INTL_INSTALLED) { |
|
| 496 | $datetype = IntlDateFormatter::SHORT; |
|
| 497 | $timetype = IntlDateFormatter::NONE; |
|
| 498 | } |
|
| 499 | break; |
|
| 500 | case TIME_NO_SEC_FORMAT: |
|
| 501 | $date_format = get_lang('timeNoSecFormat', '', $language); |
|
| 502 | if (INTL_INSTALLED) { |
|
| @@ 500-506 (lines=7) @@ | ||
| 497 | $timetype = IntlDateFormatter::NONE; |
|
| 498 | } |
|
| 499 | break; |
|
| 500 | case TIME_NO_SEC_FORMAT: |
|
| 501 | $date_format = get_lang('timeNoSecFormat', '', $language); |
|
| 502 | if (INTL_INSTALLED) { |
|
| 503 | $datetype = IntlDateFormatter::NONE; |
|
| 504 | $timetype = IntlDateFormatter::SHORT; |
|
| 505 | } |
|
| 506 | break; |
|
| 507 | case DATE_FORMAT_SHORT: |
|
| 508 | $date_format = get_lang('dateFormatShort', '', $language); |
|
| 509 | if (INTL_INSTALLED) { |
|
| @@ 507-513 (lines=7) @@ | ||
| 504 | $timetype = IntlDateFormatter::SHORT; |
|
| 505 | } |
|
| 506 | break; |
|
| 507 | case DATE_FORMAT_SHORT: |
|
| 508 | $date_format = get_lang('dateFormatShort', '', $language); |
|
| 509 | if (INTL_INSTALLED) { |
|
| 510 | $datetype = IntlDateFormatter::LONG; |
|
| 511 | $timetype = IntlDateFormatter::NONE; |
|
| 512 | } |
|
| 513 | break; |
|
| 514 | case DATE_FORMAT_LONG: |
|
| 515 | $date_format = get_lang('dateFormatLong', '', $language); |
|
| 516 | if (INTL_INSTALLED) { |
|
| @@ 514-520 (lines=7) @@ | ||
| 511 | $timetype = IntlDateFormatter::NONE; |
|
| 512 | } |
|
| 513 | break; |
|
| 514 | case DATE_FORMAT_LONG: |
|
| 515 | $date_format = get_lang('dateFormatLong', '', $language); |
|
| 516 | if (INTL_INSTALLED) { |
|
| 517 | $datetype = IntlDateFormatter::FULL; |
|
| 518 | $timetype = IntlDateFormatter::NONE; |
|
| 519 | } |
|
| 520 | break; |
|
| 521 | case DATE_TIME_FORMAT_LONG: |
|
| 522 | $date_format = get_lang('dateTimeFormatLong', '', $language); |
|
| 523 | if (INTL_INSTALLED) { |
|
| @@ 521-527 (lines=7) @@ | ||
| 518 | $timetype = IntlDateFormatter::NONE; |
|
| 519 | } |
|
| 520 | break; |
|
| 521 | case DATE_TIME_FORMAT_LONG: |
|
| 522 | $date_format = get_lang('dateTimeFormatLong', '', $language); |
|
| 523 | if (INTL_INSTALLED) { |
|
| 524 | $datetype = IntlDateFormatter::FULL; |
|
| 525 | $timetype = IntlDateFormatter::SHORT; |
|
| 526 | } |
|
| 527 | break; |
|
| 528 | case DATE_FORMAT_LONG_NO_DAY: |
|
| 529 | $date_format = get_lang('dateFormatLongNoDay', '', $language); |
|
| 530 | if (INTL_INSTALLED) { |
|
| @@ 528-534 (lines=7) @@ | ||
| 525 | $timetype = IntlDateFormatter::SHORT; |
|
| 526 | } |
|
| 527 | break; |
|
| 528 | case DATE_FORMAT_LONG_NO_DAY: |
|
| 529 | $date_format = get_lang('dateFormatLongNoDay', '', $language); |
|
| 530 | if (INTL_INSTALLED) { |
|
| 531 | $datetype = IntlDateFormatter::FULL; |
|
| 532 | $timetype = IntlDateFormatter::SHORT; |
|
| 533 | } |
|
| 534 | break; |
|
| 535 | case DATE_TIME_FORMAT_SHORT: |
|
| 536 | $date_format = get_lang('dateTimeFormatShort', '', $language); |
|
| 537 | if (INTL_INSTALLED) { |
|
| @@ 535-541 (lines=7) @@ | ||
| 532 | $timetype = IntlDateFormatter::SHORT; |
|
| 533 | } |
|
| 534 | break; |
|
| 535 | case DATE_TIME_FORMAT_SHORT: |
|
| 536 | $date_format = get_lang('dateTimeFormatShort', '', $language); |
|
| 537 | if (INTL_INSTALLED) { |
|
| 538 | $datetype = IntlDateFormatter::FULL; |
|
| 539 | $timetype = IntlDateFormatter::SHORT; |
|
| 540 | } |
|
| 541 | break; |
|
| 542 | case DATE_TIME_FORMAT_SHORT_TIME_FIRST: |
|
| 543 | $date_format = get_lang('dateTimeFormatShortTimeFirst', '', $language); |
|
| 544 | if (INTL_INSTALLED) { |
|
| @@ 542-548 (lines=7) @@ | ||
| 539 | $timetype = IntlDateFormatter::SHORT; |
|
| 540 | } |
|
| 541 | break; |
|
| 542 | case DATE_TIME_FORMAT_SHORT_TIME_FIRST: |
|
| 543 | $date_format = get_lang('dateTimeFormatShortTimeFirst', '', $language); |
|
| 544 | if (INTL_INSTALLED) { |
|
| 545 | $datetype = IntlDateFormatter::FULL; |
|
| 546 | $timetype = IntlDateFormatter::SHORT; |
|
| 547 | } |
|
| 548 | break; |
|
| 549 | case DATE_TIME_FORMAT_LONG_24H: |
|
| 550 | $date_format = get_lang('dateTimeFormatLong24H', '', $language); |
|
| 551 | if (INTL_INSTALLED) { |
|
| @@ 549-555 (lines=7) @@ | ||
| 546 | $timetype = IntlDateFormatter::SHORT; |
|
| 547 | } |
|
| 548 | break; |
|
| 549 | case DATE_TIME_FORMAT_LONG_24H: |
|
| 550 | $date_format = get_lang('dateTimeFormatLong24H', '', $language); |
|
| 551 | if (INTL_INSTALLED) { |
|
| 552 | $datetype = IntlDateFormatter::FULL; |
|
| 553 | $timetype = IntlDateFormatter::SHORT; |
|
| 554 | } |
|
| 555 | break; |
|
| 556 | default: |
|
| 557 | $date_format = get_lang('dateTimeFormatLong', '', $language); |
|
| 558 | if (INTL_INSTALLED) { |
|