Button.php
6 years ago
Date.php
6 years ago
Input.php
6 years ago
InputButton.php
6 years ago
InputCheckable.php
6 years ago
InputCheckbox.php
6 years ago
InputFile.php
6 years ago
InputHidden.php
6 years ago
InputImage.php
6 years ago
InputPassword.php
6 years ago
InputRadio.php
6 years ago
InputReset.php
6 years ago
InputSubmit.php
6 years ago
InputText.php
6 years ago
Select.php
6 years ago
Static.php
6 years ago
Textarea.php
6 years ago
Date.php
504 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Date element |
| 4 | * |
| 5 | * PHP version 5 |
| 6 | * |
| 7 | * LICENSE: |
| 8 | * |
| 9 | * Copyright (c) 2006-2009, Alexey Borzov <avb@php.net>, |
| 10 | * Bertrand Mansion <golgote@mamasam.com> |
| 11 | * All rights reserved. |
| 12 | * |
| 13 | * Redistribution and use in source and binary forms, with or without |
| 14 | * modification, are permitted provided that the following conditions |
| 15 | * are met: |
| 16 | * |
| 17 | * * Redistributions of source code must retain the above copyright |
| 18 | * notice, this list of conditions and the following disclaimer. |
| 19 | * * Redistributions in binary form must reproduce the above copyright |
| 20 | * notice, this list of conditions and the following disclaimer in the |
| 21 | * documentation and/or other materials provided with the distribution. |
| 22 | * * The names of the authors may not be used to endorse or promote products |
| 23 | * derived from this software without specific prior written permission. |
| 24 | * |
| 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS |
| 26 | * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 27 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 28 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
| 29 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 30 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 31 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 32 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 33 | * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
| 34 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 35 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 36 | * |
| 37 | * @category HTML |
| 38 | * @package HTML_QuickForm2 |
| 39 | * @author Alexey Borzov <avb@php.net> |
| 40 | * @author Bertrand Mansion <golgote@mamasam.com> |
| 41 | * @license http://opensource.org/licenses/bsd-license.php New BSD License |
| 42 | * @version SVN: $Id: Date.php 297453 2010-04-04 10:22:39Z mansion $ |
| 43 | * @link http://pear.php.net/package/HTML_QuickForm2 |
| 44 | */ |
| 45 | |
| 46 | /** |
| 47 | * Base class for HTML_QuickForm2 group of elements |
| 48 | */ |
| 49 | // require_once 'HTML/QuickForm2/Container/Group.php'; |
| 50 | /** |
| 51 | * Base class for HTML_QuickForm2 select element |
| 52 | */ |
| 53 | // require_once 'HTML/QuickForm2/Element/Select.php'; |
| 54 | |
| 55 | /** |
| 56 | * Class for a group of elements used to input dates (and times). |
| 57 | * |
| 58 | * @category HTML |
| 59 | * @package HTML_QuickForm2 |
| 60 | * @author Alexey Borzov <avb@php.net> |
| 61 | * @author Bertrand Mansion <golgote@mamasam.com> |
| 62 | * @version Release: @package_version@ |
| 63 | */ |
| 64 | class HTML_QuickForm2_Element_Date extends HTML_QuickForm2_Container_Group |
| 65 | { |
| 66 | public function getType() |
| 67 | { |
| 68 | return 'date'; |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Various options to control the element's display. |
| 73 | * @var array |
| 74 | */ |
| 75 | protected $data = array( |
| 76 | 'language' => 'en', |
| 77 | 'format' => 'dMY', |
| 78 | 'minYear' => 2001, |
| 79 | 'maxYear' => 2010, |
| 80 | 'addEmptyOption' => false, |
| 81 | 'emptyOptionValue' => '', |
| 82 | 'emptyOptionText' => ' ', |
| 83 | 'optionIncrement' => array('i' => 1, 's' => 1) |
| 84 | ); |
| 85 | |
| 86 | /** |
| 87 | * Class constructor |
| 88 | * |
| 89 | * The following keys may appear in $data array: |
| 90 | * - 'language': date language |
| 91 | * - 'format': Format of the date, based on PHP's date() function. |
| 92 | * The following characters are currently recognised in format string: |
| 93 | * <pre> |
| 94 | * D => Short names of days |
| 95 | * l => Long names of days |
| 96 | * d => Day numbers |
| 97 | * M => Short names of months |
| 98 | * F => Long names of months |
| 99 | * m => Month numbers |
| 100 | * Y => Four digit year |
| 101 | * y => Two digit year |
| 102 | * h => 12 hour format |
| 103 | * H => 23 hour format |
| 104 | * i => Minutes |
| 105 | * s => Seconds |
| 106 | * a => am/pm |
| 107 | * A => AM/PM |
| 108 | * </pre> |
| 109 | * - 'minYear': Minimum year in year select |
| 110 | * - 'maxYear': Maximum year in year select |
| 111 | * - 'addEmptyOption': Should an empty option be added to the top of |
| 112 | * each select box? |
| 113 | * - 'emptyOptionValue': The value passed by the empty option. |
| 114 | * - 'emptyOptionText': The text displayed for the empty option. |
| 115 | * - 'optionIncrement': Step to increase the option values by (works for 'i' and 's') |
| 116 | * |
| 117 | * @param string Element name |
| 118 | * @param mixed Attributes (either a string or an array) |
| 119 | * @param array Element data (label, options and data used for element creation) |
| 120 | */ |
| 121 | public function __construct($name = null, $attributes = null, $data = null) |
| 122 | { |
| 123 | parent::__construct($name, $attributes, $data); |
| 124 | |
| 125 | $locale =& $this->locale[$this->data['language']]; |
| 126 | $backslash = false; |
| 127 | $separators = array(); |
| 128 | $separator = ''; |
| 129 | |
| 130 | for ($i = 0, $length = strlen($this->data['format']); $i < $length; $i++) { |
| 131 | $sign = $this->data['format'][$i]; |
| 132 | if ($backslash) { |
| 133 | $backslash = false; |
| 134 | $separator .= $sign; |
| 135 | } else { |
| 136 | $loadSelect = true; |
| 137 | switch ($sign) { |
| 138 | case 'D': |
| 139 | // Sunday is 0 like with 'w' in date() |
| 140 | $options = $locale['weekdays_short']; |
| 141 | break; |
| 142 | case 'l': |
| 143 | $options = $locale['weekdays_long']; |
| 144 | break; |
| 145 | case 'd': |
| 146 | $options = $this->createOptionList(1, 31); |
| 147 | break; |
| 148 | case 'M': |
| 149 | $options = $locale['months_short']; |
| 150 | array_unshift($options , ''); |
| 151 | unset($options[0]); |
| 152 | break; |
| 153 | case 'm': |
| 154 | $options = $this->createOptionList(1, 12); |
| 155 | break; |
| 156 | case 'F': |
| 157 | $options = $locale['months_long']; |
| 158 | array_unshift($options , ''); |
| 159 | unset($options[0]); |
| 160 | break; |
| 161 | case 'Y': |
| 162 | $options = $this->createOptionList( |
| 163 | $this->data['minYear'], |
| 164 | $this->data['maxYear'], |
| 165 | $this->data['minYear'] > $this->data['maxYear']? -1: 1 |
| 166 | ); |
| 167 | break; |
| 168 | case 'y': |
| 169 | $options = $this->createOptionList( |
| 170 | $this->data['minYear'], |
| 171 | $this->data['maxYear'], |
| 172 | $this->data['minYear'] > $this->data['maxYear']? -1: 1 |
| 173 | ); |
| 174 | array_walk($options, create_function('&$v,$k','$v = substr($v,-2);')); |
| 175 | break; |
| 176 | case 'h': |
| 177 | $options = $this->createOptionList(1, 12); |
| 178 | break; |
| 179 | case 'g': |
| 180 | $options = $this->createOptionList(1, 12); |
| 181 | array_walk($options, create_function('&$v,$k', '$v = intval($v);')); |
| 182 | break; |
| 183 | case 'H': |
| 184 | $options = $this->createOptionList(0, 23); |
| 185 | break; |
| 186 | case 'i': |
| 187 | $options = $this->createOptionList(0, 59, $this->data['optionIncrement']['i']); |
| 188 | break; |
| 189 | case 's': |
| 190 | $options = $this->createOptionList(0, 59, $this->data['optionIncrement']['s']); |
| 191 | break; |
| 192 | case 'a': |
| 193 | $options = array('am' => 'am', 'pm' => 'pm'); |
| 194 | break; |
| 195 | case 'A': |
| 196 | $options = array('AM' => 'AM', 'PM' => 'PM'); |
| 197 | break; |
| 198 | case 'W': |
| 199 | $options = $this->createOptionList(1, 53); |
| 200 | break; |
| 201 | case '\\': |
| 202 | $backslash = true; |
| 203 | $loadSelect = false; |
| 204 | break; |
| 205 | default: |
| 206 | $separator .= (' ' == $sign? ' ': $sign); |
| 207 | $loadSelect = false; |
| 208 | } |
| 209 | |
| 210 | if ($loadSelect) { |
| 211 | if (0 < count($this)) { |
| 212 | $separators[] = $separator; |
| 213 | } |
| 214 | $separator = ''; |
| 215 | // Should we add an empty option to the top of the select? |
| 216 | if (!is_array($this->data['addEmptyOption']) && $this->data['addEmptyOption'] || |
| 217 | is_array($this->data['addEmptyOption']) && !empty($this->data['addEmptyOption'][$sign])) { |
| 218 | |
| 219 | // Using '+' array operator to preserve the keys |
| 220 | if (is_array($this->data['emptyOptionText']) && !empty($this->data['emptyOptionText'][$sign])) { |
| 221 | $options = array($this->data['emptyOptionValue'] => $this->data['emptyOptionText'][$sign]) + $options; |
| 222 | } else { |
| 223 | $options = array($this->data['emptyOptionValue'] => $this->data['emptyOptionText']) + $options; |
| 224 | } |
| 225 | } |
| 226 | $this->addSelect($sign, $this->getAttributes())->loadOptions($options); |
| 227 | } |
| 228 | } |
| 229 | } |
| 230 | $separators[] = $separator . ($backslash? '\\': ''); |
| 231 | $this->setSeparator($separators); |
| 232 | } |
| 233 | |
| 234 | /** |
| 235 | * Creates an option list containing the numbers from the start number to the end, inclusive |
| 236 | * |
| 237 | * @param int The start number |
| 238 | * @param int The end number |
| 239 | * @param int Increment by this value |
| 240 | * @return array An array of numeric options. |
| 241 | */ |
| 242 | protected function createOptionList($start, $end, $step = 1) |
| 243 | { |
| 244 | for ($i = $start, $options = array(); $start > $end? $i >= $end: $i <= $end; $i += $step) { |
| 245 | $options[$i] = sprintf('%02d', $i); |
| 246 | } |
| 247 | return $options; |
| 248 | } |
| 249 | |
| 250 | /** |
| 251 | * Trims leading zeros from the (numeric) string |
| 252 | * |
| 253 | * @param string A numeric string, possibly with leading zeros |
| 254 | * @return string String with leading zeros removed |
| 255 | */ |
| 256 | protected function trimLeadingZeros($str) |
| 257 | { |
| 258 | if (0 == strcmp($str, $this->data['emptyOptionValue'])) { |
| 259 | return $str; |
| 260 | } |
| 261 | $trimmed = ltrim($str, '0'); |
| 262 | return strlen($trimmed)? $trimmed: '0'; |
| 263 | } |
| 264 | |
| 265 | |
| 266 | /** |
| 267 | * Tries to convert the given value to a usable date before setting the |
| 268 | * element value |
| 269 | * @param int|string|array A timestamp, a string compatible with strtotime() |
| 270 | * or an array that fits the element names |
| 271 | */ |
| 272 | public function setValue($value) |
| 273 | { |
| 274 | if (empty($value)) { |
| 275 | $value = array(); |
| 276 | } elseif (is_scalar($value)) { |
| 277 | if (!is_numeric($value)) { |
| 278 | $value = strtotime($value); |
| 279 | } |
| 280 | // might be a unix epoch, then we fill all possible values |
| 281 | $arr = explode('-', date('w-j-n-Y-g-G-i-s-a-A-W', (int)$value)); |
| 282 | $value = array( |
| 283 | 'D' => $arr[0], |
| 284 | 'l' => $arr[0], |
| 285 | 'd' => $arr[1], |
| 286 | 'M' => $arr[2], |
| 287 | 'm' => $arr[2], |
| 288 | 'F' => $arr[2], |
| 289 | 'Y' => $arr[3], |
| 290 | 'y' => $arr[3], |
| 291 | 'h' => $arr[4], |
| 292 | 'g' => $arr[4], |
| 293 | 'H' => $arr[5], |
| 294 | 'i' => $this->trimLeadingZeros($arr[6]), |
| 295 | 's' => $this->trimLeadingZeros($arr[7]), |
| 296 | 'a' => $arr[8], |
| 297 | 'A' => $arr[9], |
| 298 | 'W' => $this->trimLeadingZeros($arr[10]) |
| 299 | ); |
| 300 | } else { |
| 301 | $value = array_map(array($this, 'trimLeadingZeros'), $value); |
| 302 | } |
| 303 | return parent::setValue($value); |
| 304 | } |
| 305 | |
| 306 | /** |
| 307 | * Called when the element needs to update its value from form's data sources |
| 308 | * |
| 309 | * Since the date element also accepts a timestamp as value, the default |
| 310 | * group behavior is changed. |
| 311 | */ |
| 312 | public function updateValue() |
| 313 | { |
| 314 | $name = $this->getName(); |
| 315 | foreach ($this->getDataSources() as $ds) { |
| 316 | if (null !== ($value = $ds->getValue($name))) { |
| 317 | $this->setValue($value); |
| 318 | return; |
| 319 | } |
| 320 | } |
| 321 | parent::updateValue(); |
| 322 | } |
| 323 | |
| 324 | /** |
| 325 | * Options in different languages |
| 326 | * |
| 327 | * Note to potential translators: to avoid encoding problems please send |
| 328 | * your translations with "weird" letters encoded as HTML Unicode entities |
| 329 | * |
| 330 | * @var array |
| 331 | */ |
| 332 | protected $locale = array( |
| 333 | 'en' => array ( |
| 334 | 'weekdays_short'=> array ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'), |
| 335 | 'weekdays_long' => array ('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'), |
| 336 | 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'), |
| 337 | 'months_long' => array ('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December') |
| 338 | ), |
| 339 | 'de' => array ( |
| 340 | 'weekdays_short'=> array ('So', 'Mon', 'Di', 'Mi', 'Do', 'Fr', 'Sa'), |
| 341 | 'weekdays_long' => array ('Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'), |
| 342 | 'months_short' => array ('Jan', 'Feb', 'März', 'April', 'Mai', 'Juni', 'Juli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dez'), |
| 343 | 'months_long' => array ('Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember') |
| 344 | ), |
| 345 | 'fr' => array ( |
| 346 | 'weekdays_short'=> array ('Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'), |
| 347 | 'weekdays_long' => array ('Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'), |
| 348 | 'months_short' => array ('Jan', 'Fév', 'Mar', 'Avr', 'Mai', 'Juin', 'Juil', 'Août', 'Sep', 'Oct', 'Nov', 'Déc'), |
| 349 | 'months_long' => array ('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre') |
| 350 | ), |
| 351 | 'hu' => array ( |
| 352 | 'weekdays_short'=> array ('V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'), |
| 353 | 'weekdays_long' => array ('vasárnap', 'hétfő', 'kedd', 'szerda', 'csütörtök', 'péntek', 'szombat'), |
| 354 | 'months_short' => array ('jan', 'feb', 'márc', 'ápr', 'máj', 'jún', 'júl', 'aug', 'szept', 'okt', 'nov', 'dec'), |
| 355 | 'months_long' => array ('január', 'február', 'március', 'április', 'május', 'június', 'július', 'augusztus', 'szeptember', 'október', 'november', 'december') |
| 356 | ), |
| 357 | 'pl' => array ( |
| 358 | 'weekdays_short'=> array ('Nie', 'Pn', 'Wt', 'Śr', 'Czw', 'Pt', 'Sob'), |
| 359 | 'weekdays_long' => array ('Niedziela', 'Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota'), |
| 360 | 'months_short' => array ('Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru'), |
| 361 | 'months_long' => array ('Styczeń', 'Luty', 'Marzec', 'Kwiecień', 'Maj', 'Czerwiec', 'Lipiec', 'Sierpień', 'Wrzesień', 'Październik', 'Listopad', 'Grudzień') |
| 362 | ), |
| 363 | 'sl' => array ( |
| 364 | 'weekdays_short'=> array ('Ned', 'Pon', 'Tor', 'Sre', 'Cet', 'Pet', 'Sob'), |
| 365 | 'weekdays_long' => array ('Nedelja', 'Ponedeljek', 'Torek', 'Sreda', 'Cetrtek', 'Petek', 'Sobota'), |
| 366 | 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Avg', 'Sep', 'Okt', 'Nov', 'Dec'), |
| 367 | 'months_long' => array ('Januar', 'Februar', 'Marec', 'April', 'Maj', 'Junij', 'Julij', 'Avgust', 'September', 'Oktober', 'November', 'December') |
| 368 | ), |
| 369 | 'ru' => array ( |
| 370 | 'weekdays_short'=> array ('Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'), |
| 371 | 'weekdays_long' => array ('Воскресенье', 'Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота'), |
| 372 | 'months_short' => array ('Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'), |
| 373 | 'months_long' => array ('Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь') |
| 374 | ), |
| 375 | 'es' => array ( |
| 376 | 'weekdays_short'=> array ('Dom', 'Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb'), |
| 377 | 'weekdays_long' => array ('Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'), |
| 378 | 'months_short' => array ('Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'), |
| 379 | 'months_long' => array ('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre') |
| 380 | ), |
| 381 | 'da' => array ( |
| 382 | 'weekdays_short'=> array ('Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'), |
| 383 | 'weekdays_long' => array ('Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'), |
| 384 | 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'), |
| 385 | 'months_long' => array ('Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December') |
| 386 | ), |
| 387 | 'is' => array ( |
| 388 | 'weekdays_short'=> array ('Sun', 'Mán', 'Þri', 'Mið', 'Fim', 'Fös', 'Lau'), |
| 389 | 'weekdays_long' => array ('Sunnudagur', 'Mánudagur', 'Þriðjudagur', 'Miðvikudagur', 'Fimmtudagur', 'Föstudagur', 'Laugardagur'), |
| 390 | 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maí', 'Jún', 'Júl', 'Ágú', 'Sep', 'Okt', 'Nóv', 'Des'), |
| 391 | 'months_long' => array ('Janúar', 'Febrúar', 'Mars', 'Apríl', 'Maí', 'Júní', 'Júlí', 'Ágúst', 'September', 'Október', 'Nóvember', 'Desember') |
| 392 | ), |
| 393 | 'it' => array ( |
| 394 | 'weekdays_short'=> array ('Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'), |
| 395 | 'weekdays_long' => array ('Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'), |
| 396 | 'months_short' => array ('Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'), |
| 397 | 'months_long' => array ('Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre') |
| 398 | ), |
| 399 | 'sk' => array ( |
| 400 | 'weekdays_short'=> array ('Ned', 'Pon', 'Uto', 'Str', 'Štv', 'Pia', 'Sob'), |
| 401 | 'weekdays_long' => array ('Nedeža', 'Pondelok', 'Utorok', 'Streda', 'Štvrtok', 'Piatok', 'Sobota'), |
| 402 | 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Máj', 'Jún', 'Júl', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'), |
| 403 | 'months_long' => array ('Január', 'Február', 'Marec', 'Apríl', 'Máj', 'Jún', 'Júl', 'August', 'September', 'Október', 'November', 'December') |
| 404 | ), |
| 405 | 'cs' => array ( |
| 406 | 'weekdays_short'=> array ('Ne', 'Po', 'Út', 'St', 'Čt', 'Pá', 'So'), |
| 407 | 'weekdays_long' => array ('Neděle', 'Pondělí', 'Úterý', 'Středa', 'Čtvrtek', 'Pátek', 'Sobota'), |
| 408 | 'months_short' => array ('Led', 'Úno', 'Bře', 'Dub', 'Kvě', 'Čen', 'Čec', 'Srp', 'Zář', 'Říj', 'Lis', 'Pro'), |
| 409 | 'months_long' => array ('Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec') |
| 410 | ), |
| 411 | 'hy' => array ( |
| 412 | 'weekdays_short'=> array ('Կրկ', 'Երկ', 'Երք', 'Չրք', 'Հնգ', 'Ուր', 'Շբթ'), |
| 413 | 'weekdays_long' => array ('Կիրակի', 'Երկուշաբթի', 'Երեքշաբթի', 'Չորեքշաբթի', 'Հինգշաբթի', 'Ուրբաթ', 'Շաբաթ'), |
| 414 | 'months_short' => array ('Հնվ', 'Փտր', 'Մրտ', 'Ապր', 'Մյս', 'Հնս', 'Հլս', 'Օգս', 'Սպտ', 'Հկտ', 'Նյմ', 'Դկտ'), |
| 415 | 'months_long' => array ('Հունվար', 'Փետրվար', 'Մարտ', 'Ապրիլ', 'Մայիս', 'Հունիս', 'Հուլիս', 'Օգոստոս', 'Սեպտեմբեր', 'Հոկտեմբեր', 'Նոյեմբեր', 'Դեկտեմբեր') |
| 416 | ), |
| 417 | 'nl' => array ( |
| 418 | 'weekdays_short'=> array ('Zo', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Za'), |
| 419 | 'weekdays_long' => array ('Zondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'), |
| 420 | 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'), |
| 421 | 'months_long' => array ('Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni', 'Juli', 'Augustus', 'September', 'Oktober', 'November', 'December') |
| 422 | ), |
| 423 | 'et' => array ( |
| 424 | 'weekdays_short'=> array ('P', 'E', 'T', 'K', 'N', 'R', 'L'), |
| 425 | 'weekdays_long' => array ('Pühapäev', 'Esmaspäev', 'Teisipäev', 'Kolmapäev', 'Neljapäev', 'Reede', 'Laupäev'), |
| 426 | 'months_short' => array ('Jaan', 'Veebr', 'Märts', 'Aprill', 'Mai', 'Juuni', 'Juuli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dets'), |
| 427 | 'months_long' => array ('Jaanuar', 'Veebruar', 'Märts', 'Aprill', 'Mai', 'Juuni', 'Juuli', 'August', 'September', 'Oktoober', 'November', 'Detsember') |
| 428 | ), |
| 429 | 'tr' => array ( |
| 430 | 'weekdays_short'=> array ('Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cts'), |
| 431 | 'weekdays_long' => array ('Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'), |
| 432 | 'months_short' => array ('Ock', 'Şbt', 'Mrt', 'Nsn', 'Mys', 'Hzrn', 'Tmmz', 'Ağst', 'Eyl', 'Ekm', 'Ksm', 'Arlk'), |
| 433 | 'months_long' => array ('Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık') |
| 434 | ), |
| 435 | 'no' => array ( |
| 436 | 'weekdays_short'=> array ('Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'), |
| 437 | 'weekdays_long' => array ('Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'), |
| 438 | 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'), |
| 439 | 'months_long' => array ('Januar', 'Februar', 'Mars', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Desember') |
| 440 | ), |
| 441 | 'eo' => array ( |
| 442 | 'weekdays_short'=> array ('Dim', 'Lun', 'Mar', 'Mer', 'Ĵaŭ', 'Ven', 'Sab'), |
| 443 | 'weekdays_long' => array ('Dimanĉo', 'Lundo', 'Mardo', 'Merkredo', 'Ĵaŭdo', 'Vendredo', 'Sabato'), |
| 444 | 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aŭg', 'Sep', 'Okt', 'Nov', 'Dec'), |
| 445 | 'months_long' => array ('Januaro', 'Februaro', 'Marto', 'Aprilo', 'Majo', 'Junio', 'Julio', 'Aŭgusto', 'Septembro', 'Oktobro', 'Novembro', 'Decembro') |
| 446 | ), |
| 447 | 'ua' => array ( |
| 448 | 'weekdays_short'=> array ('Ндл', 'Пнд', 'Втр', 'Срд', 'Чтв', 'Птн', 'Сбт'), |
| 449 | 'weekdays_long' => array ('Неділя', 'Понеділок', 'Вівторок', 'Середа', 'Четвер', 'П\'ятниця', 'Субота'), |
| 450 | 'months_short' => array ('Січ', 'Лют', 'Бер', 'Кві', 'Тра', 'Чер', 'Лип', 'Сер', 'Вер', 'Жов', 'Лис', 'Гру'), |
| 451 | 'months_long' => array ('Січень', 'Лютий', 'Березень', 'Квітень', 'Травень', 'Червень', 'Липень', 'Серпень', 'Вересень', 'Жовтень', 'Листопад', 'Грудень') |
| 452 | ), |
| 453 | 'ro' => array ( |
| 454 | 'weekdays_short'=> array ('Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sam'), |
| 455 | 'weekdays_long' => array ('Duminica', 'Luni', 'Marti', 'Miercuri', 'Joi', 'Vineri', 'Sambata'), |
| 456 | 'months_short' => array ('Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun', 'Iul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'), |
| 457 | 'months_long' => array ('Ianuarie', 'Februarie', 'Martie', 'Aprilie', 'Mai', 'Iunie', 'Iulie', 'August', 'Septembrie', 'Octombrie', 'Noiembrie', 'Decembrie') |
| 458 | ), |
| 459 | 'he' => array ( |
| 460 | 'weekdays_short'=> array ('ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'), |
| 461 | 'weekdays_long' => array ('יום ראשון', 'יום שני', 'יום שלישי', 'יום רביעי', 'יום חמישי', 'יום שישי', 'שבת'), |
| 462 | 'months_short' => array ('ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'), |
| 463 | 'months_long' => array ('ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר') |
| 464 | ), |
| 465 | 'sv' => array ( |
| 466 | 'weekdays_short'=> array ('Sön', 'Mån', 'Tis', 'Ons', 'Tor', 'Fre', 'Lör'), |
| 467 | 'weekdays_long' => array ('Söndag', 'Måndag', 'Tisdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lördag'), |
| 468 | 'months_short' => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'), |
| 469 | 'months_long' => array ('Januari', 'Februari', 'Mars', 'April', 'Maj', 'Juni', 'Juli', 'Augusti', 'September', 'Oktober', 'November', 'December') |
| 470 | ), |
| 471 | 'pt' => array ( |
| 472 | 'weekdays_short'=> array ('Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'), |
| 473 | 'weekdays_long' => array ('Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado'), |
| 474 | 'months_short' => array ('Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'), |
| 475 | 'months_long' => array ('Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro') |
| 476 | ), |
| 477 | 'tw' => array ( |
| 478 | 'weekdays_short'=> array ('週日','週一', '週二','週三', '週四','週五', '週六'), |
| 479 | 'weekdays_long' => array ('星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'), |
| 480 | 'months_short' => array ('一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'), |
| 481 | 'months_long' => array ('一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月') |
| 482 | ), |
| 483 | 'pt-br' => array ( |
| 484 | 'weekdays_short'=> array ('Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'), |
| 485 | 'weekdays_long' => array ('Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'), |
| 486 | 'months_short' => array ('Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'), |
| 487 | 'months_long' => array ('Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro') |
| 488 | ), |
| 489 | 'sr' => array ( |
| 490 | 'weekdays_short'=> array ('Нед', 'Пон', 'Уто', 'Сре', 'Чет', 'Пет', 'Суб'), |
| 491 | 'weekdays_long' => array ('Недеља', 'Понедељак', 'Уторак', 'Среда', 'Четвртак', 'Петак', 'Субота'), |
| 492 | 'months_short' => array ('Јан', 'Феб', 'Мар', 'Апр', 'Мај', 'Јун', 'Јул', 'Авг', 'Сеп', 'Окт', 'Нов', 'Дец'), |
| 493 | 'months_long' => array ('Јануар', 'Фебруар', 'Март', 'Април', 'Мај', 'Јун', 'Јул', 'Август', 'Септембар', 'Октобар', 'Новембар', 'Децембар') |
| 494 | ), |
| 495 | 'el' => array ( |
| 496 | 'weekdays_short'=> array ('Δευ', 'Τρί', 'Τετ', 'Πέμ', 'Παρ', 'Σάβ', 'Κυρ'), |
| 497 | 'weekdays_long' => array ('Δευτέρα', 'Τρίτη', 'Τετάρτη', 'Πέμπτη', 'Παρασκευή', 'Σάββατο', 'Κυριακή'), |
| 498 | 'months_short' => array ('Ιαν', 'Φεβ', 'Μάρ', 'Απρ', 'Μάϊ', 'Ioύν', 'Ιούλ', 'Αύγ', 'Σεπ', 'Οκτ', 'Νοέ', 'Δεκ'), |
| 499 | 'months_long' => array ('Ιανουάριος', 'Φεβρουάριος', 'Μάρτιος', 'Απρίλιος', 'Μάϊος', 'Ιούνιος', 'Ioύλιος', 'Αύγουστος', 'Σεπτέμβριος', 'Οκτώβριος', 'Νοέμβριος', 'Δεκέμβριος') |
| 500 | ) |
| 501 | ); |
| 502 | } |
| 503 | ?> |
| 504 |