ar_TN.php
6 years ago
ca_ES.php
6 years ago
cs_CZ.php
6 years ago
da_DK.php
6 years ago
de_DE.php
6 years ago
en_GB.php
6 years ago
en_US.php
6 years ago
es_ES.php
6 years ago
fr_FR.php
6 years ago
hu_HU.php
6 years ago
id_ID.php
6 years ago
it_IT.php
6 years ago
ja_JP.php
6 years ago
ko_KR.php
6 years ago
lv_LV.php
6 years ago
nl_NL.php
6 years ago
no_NO.php
6 years ago
oc_LNC.php
6 years ago
pl_PL.php
6 years ago
pt_BR.php
6 years ago
pt_PT.php
6 years ago
ro_RO.php
6 years ago
ru_RU.php
6 years ago
se_SV.php
6 years ago
th_TH.php
6 years ago
tr_TR.php
6 years ago
uk_UA.php
6 years ago
vi_VN.php
6 years ago
zh_CN.php
6 years ago
zh_TW.php
6 years ago
ro_RO.php
82 lines
| 1 | <?php |
| 2 | |
| 3 | // locale: romanian (ro-ro) |
| 4 | // author: Calin Rada https://github.com/calinrada |
| 5 | |
| 6 | use Moment\Moment; |
| 7 | |
| 8 | $rtwp = function ($count, $direction, Moment $m, $key) |
| 9 | { |
| 10 | $format = array( |
| 11 | 'mm' => 'minute', |
| 12 | 'hh' => 'ore', |
| 13 | 'dd' => 'zile', |
| 14 | 'MM' => 'luni', |
| 15 | 'yy' => 'ani' |
| 16 | ); |
| 17 | |
| 18 | $separator = ' '; |
| 19 | |
| 20 | if ($count % 100 >= 20 || ($count >= 100 && $count % 100 === 0)) |
| 21 | { |
| 22 | $separator = ' de '; |
| 23 | } |
| 24 | |
| 25 | return $count . $separator . $format[$key]; |
| 26 | }; |
| 27 | |
| 28 | return array( |
| 29 | "months" => explode('_', 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'), |
| 30 | "monthsShort" => explode('_', 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'), |
| 31 | "weekdays" => explode('_', 'luni_marți_miercuri_joi_vineri_sâmbătă_duminică'), |
| 32 | "weekdaysShort" => explode('_', 'Lun_Mar_Mie_Joi_Vin_Sâm_Dum'), |
| 33 | "calendar" => array( |
| 34 | "sameDay" => '[azi]', |
| 35 | "nextDay" => '[mâine la]', |
| 36 | "lastDay" => '[ieri la]', |
| 37 | "lastWeek" => '[fosta] dddd [la]', |
| 38 | "sameElse" => 'l', |
| 39 | "withTime" => '[at] H:i', |
| 40 | "default" => 'd/m/Y', |
| 41 | ), |
| 42 | "relativeTime" => array( |
| 43 | "future" => 'peste %s', |
| 44 | "past" => 'În urmă cu %s', |
| 45 | "s" => 'câteva secunde', |
| 46 | "ss" => '%d secunde', |
| 47 | "m" => 'un minut', |
| 48 | "mm" => function ($count, $direction, Moment $m) use ($rtwp) |
| 49 | { |
| 50 | return $rtwp($count, $direction, $m, 'mm'); |
| 51 | }, |
| 52 | "h" => 'o oră', |
| 53 | "hh" => function ($count, $direction, Moment $m) use ($rtwp) |
| 54 | { |
| 55 | return $rtwp($count, $direction, $m, 'hh'); |
| 56 | }, |
| 57 | "d" => 'o zi', |
| 58 | "dd" => function ($count, $direction, Moment $m) use ($rtwp) |
| 59 | { |
| 60 | return $rtwp($count, $direction, $m, 'dd'); |
| 61 | }, |
| 62 | "M" => 'o lună', |
| 63 | "MM" => function ($count, $direction, Moment $m) use ($rtwp) |
| 64 | { |
| 65 | return $rtwp($count, $direction, $m, 'MM'); |
| 66 | }, |
| 67 | "y" => 'un an', |
| 68 | "yy" => function ($count, $direction, Moment $m) use ($rtwp) |
| 69 | { |
| 70 | return $rtwp($count, $direction, $m, 'yy'); |
| 71 | }, |
| 72 | ), |
| 73 | "ordinal" => function ($number) |
| 74 | { |
| 75 | return $number; |
| 76 | }, |
| 77 | "week" => array( |
| 78 | "dow" => 1, // Monday is the first day of the week. |
| 79 | "doy" => 7 // The week that contains Jan 7th is the first week of the year. |
| 80 | ), |
| 81 | ); |
| 82 |