| 1 | ## | ||||||||||
| 2 | ## Amharic tables | ||||||||||
| 3 | ## | ||||||||||
| 4 | |||||||||||
| 5 | package Date::Language::Amharic; | ||||||||||
| 6 | |||||||||||
| 7 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 2 | ▶ | use Date::Language (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 2 | ▶ | use base 'Date::Language'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | 2 | our $VERSION = '2.35'; # VERSION: generated | |||||||||
| 14 | # ABSTRACT: Amharic localization for Date::Format | ||||||||||
| 15 | |||||||||||
| 16 | 2 | our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW); | |||||||||
| 17 | |||||||||||
| 18 | 2 | ▶ | if ( $] >= 5.006 ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | 2 | @DoW = ( | |||||||||
| 20 | "\x{12a5}\x{1211}\x{12f5}", | ||||||||||
| 21 | "\x{1230}\x{129e}", | ||||||||||
| 22 | "\x{121b}\x{12ad}\x{1230}\x{129e}", | ||||||||||
| 23 | "\x{1228}\x{1261}\x{12d5}", | ||||||||||
| 24 | "\x{1210}\x{1219}\x{1235}", | ||||||||||
| 25 | "\x{12d3}\x{122d}\x{1265}", | ||||||||||
| 26 | "\x{1245}\x{12f3}\x{121c}" | ||||||||||
| 27 | ); | ||||||||||
| 28 | 2 | @MoY = ( | |||||||||
| 29 | "\x{1303}\x{1295}\x{12e9}\x{12c8}\x{122a}", | ||||||||||
| 30 | "\x{134c}\x{1265}\x{1229}\x{12c8}\x{122a}", | ||||||||||
| 31 | "\x{121b}\x{122d}\x{127d}", | ||||||||||
| 32 | "\x{12a4}\x{1355}\x{1228}\x{120d}", | ||||||||||
| 33 | "\x{121c}\x{12ed}", | ||||||||||
| 34 | "\x{1301}\x{1295}", | ||||||||||
| 35 | "\x{1301}\x{120b}\x{12ed}", | ||||||||||
| 36 | "\x{12a6}\x{1308}\x{1235}\x{1275}", | ||||||||||
| 37 | "\x{1234}\x{1355}\x{1274}\x{121d}\x{1260}\x{122d}", | ||||||||||
| 38 | "\x{12a6}\x{12ad}\x{1270}\x{12cd}\x{1260}\x{122d}", | ||||||||||
| 39 | "\x{1296}\x{126c}\x{121d}\x{1260}\x{122d}", | ||||||||||
| 40 | "\x{12f2}\x{1234}\x{121d}\x{1260}\x{122d}" | ||||||||||
| 41 | ); | ||||||||||
| 42 | 2 | @DoWs = map { substr($_,0,3) } @DoW; | |||||||||
| 43 | 2 | @MoYs = map { substr($_,0,3) } @MoY; | |||||||||
| 44 | 2 | @AMPM = ( "\x{1320}\x{12cb}\x{1275}", "\x{12a8}\x{1230}\x{12d3}\x{1275}" ); | |||||||||
| 45 | |||||||||||
| 46 | 2 | @Dsuf = ("\x{129b}" x 31); | |||||||||
| 47 | } | ||||||||||
| 48 | else { | ||||||||||
| 49 | 0 | @DoW = ( | |||||||||
| 50 | "እሑድ", | ||||||||||
| 51 | "ሰኞ", | ||||||||||
| 52 | "ማክሰኞ", | ||||||||||
| 53 | "ረቡዕ", | ||||||||||
| 54 | "ሐሙስ", | ||||||||||
| 55 | "ዓርብ", | ||||||||||
| 56 | "ቅዳሜ" | ||||||||||
| 57 | ); | ||||||||||
| 58 | 0 | @MoY = ( | |||||||||
| 59 | "ጃንዩወሪ", | ||||||||||
| 60 | "ፌብሩወሪ", | ||||||||||
| 61 | "ማርች", | ||||||||||
| 62 | "ኤፕረል", | ||||||||||
| 63 | "ሜይ", | ||||||||||
| 64 | "ጁን", | ||||||||||
| 65 | "ጁላይ", | ||||||||||
| 66 | "ኦገስት", | ||||||||||
| 67 | "ሴፕቴምበር", | ||||||||||
| 68 | "ኦክተውበር", | ||||||||||
| 69 | "ኖቬምበር", | ||||||||||
| 70 | "ዲሴምበር" | ||||||||||
| 71 | ); | ||||||||||
| 72 | 0 | @DoWs = map { substr($_,0,9) } @DoW; | |||||||||
| 73 | 0 | @MoYs = map { substr($_,0,9) } @MoY; | |||||||||
| 74 | 0 | @AMPM = ( "ጠዋት", "ከሰዓት" ); | |||||||||
| 75 | |||||||||||
| 76 | 0 | @Dsuf = ("ኛ" x 31); | |||||||||
| 77 | } | ||||||||||
| 78 | |||||||||||
| 79 | 2 | Date::Language::_build_lookups(); | |||||||||
| 80 | |||||||||||
| 81 | # Formatting routines | ||||||||||
| 82 | |||||||||||
| 83 | 2 | ▶ | sub format_a { $DoWs[$_[0]->[6]] } | ||||||||
|
Subroutine
format_a: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 84 | 2 | ▶ | sub format_A { $DoW[$_[0]->[6]] } | ||||||||
|
Subroutine
format_A: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 85 | 2 | ▶ | sub format_b { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_b: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 86 | 2 | ▶ | sub format_B { $MoY[$_[0]->[4]] } | ||||||||
|
Subroutine
format_B: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 87 | 0 | ▶ | sub format_h { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_h: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 88 | 0 | ▶ | sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] } | ||||||||
|
Subroutine
format_p: not called CC=2 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||
| 89 | |||||||||||
| 90 | 2 | 1; | |||||||||
| 91 | |||||||||||
| 92 | __END__ | ||||||||||