| 1 |
<?php |
| 2 |
// Let's figure out i18n for the date- and timepickers |
| 3 |
if ( !isset( $jquery_ui_datetime_dayNames ) ) |
| 4 |
$jquery_ui_datetime_dayNames = array( __( "Sunday", 'timed-content' ), |
| 5 |
__( "Monday", 'timed-content' ), |
| 6 |
__( "Tuesday", 'timed-content' ), |
| 7 |
__( "Wednesday", 'timed-content' ), |
| 8 |
__( "Thursday", 'timed-content' ), |
| 9 |
__( "Friday", 'timed-content' ), |
| 10 |
__( "Saturday", 'timed-content' ) ); |
| 11 |
|
| 12 |
if ( !isset( $jquery_ui_datetime_dayNamesShort ) ) |
| 13 |
$jquery_ui_datetime_dayNamesShort = array( _x( "Sun", "Three-letter abbreviation for Sunday", 'timed-content' ), |
| 14 |
_x( "Mon", "Three-letter abbreviation for Monday", 'timed-content' ), |
| 15 |
_x( "Tue", "Three-letter abbreviation for Tuesday", 'timed-content' ), |
| 16 |
_x( "Wed", "Three-letter abbreviation for Wednesday", 'timed-content' ), |
| 17 |
_x( "Thu", "Three-letter abbreviation for Thursday", 'timed-content' ), |
| 18 |
_x( "Fri", "Three-letter abbreviation for Friday", 'timed-content' ), |
| 19 |
_x( "Sat", "Three-letter abbreviation for Saturday", 'timed-content' ) ); |
| 20 |
|
| 21 |
if ( !isset( $jquery_ui_datetime_dayNamesMin ) ) |
| 22 |
$jquery_ui_datetime_dayNamesMin = array( _x( "Su", "Two-letter abbreviation for Sunday", 'timed-content' ), |
| 23 |
_x( "Mo", "Two-letter abbreviation for Monday", 'timed-content' ), |
| 24 |
_x( "Tu", "Two-letter abbreviation for Tuesday", 'timed-content' ), |
| 25 |
_x( "We", "Two-letter abbreviation for Wednesday", 'timed-content' ), |
| 26 |
_x( "Th", "Two-letter abbreviation for Thursday", 'timed-content' ), |
| 27 |
_x( "Fr", "Two-letter abbreviation for Friday", 'timed-content' ), |
| 28 |
_x( "Sa", "Two-letter abbreviation for Saturday", 'timed-content' ) ); |
| 29 |
|
| 30 |
if ( !isset( $jquery_ui_datetime_monthNames ) ) |
| 31 |
$jquery_ui_datetime_monthNames = array( __( "January", 'timed-content' ), |
| 32 |
__( "February", 'timed-content' ), |
| 33 |
__( "March", 'timed-content' ), |
| 34 |
__( "April", 'timed-content' ), |
| 35 |
__( "May", 'timed-content' ), |
| 36 |
__( "June", 'timed-content' ), |
| 37 |
__( "July", 'timed-content' ), |
| 38 |
__( "August", 'timed-content' ), |
| 39 |
__( "September", 'timed-content' ), |
| 40 |
__( "October", 'timed-content' ), |
| 41 |
__( "November", 'timed-content' ), |
| 42 |
__( "December", 'timed-content' ) ); |
| 43 |
|
| 44 |
if ( !isset( $jquery_ui_datetime_monthNamesShort ) ) |
| 45 |
$jquery_ui_datetime_monthNamesShort = array( _x( "Jan", "Three-letter abbreviation for January", 'timed-content' ), |
| 46 |
_x( "Feb", "Three-letter abbreviation for February", 'timed-content' ), |
| 47 |
_x( "Mar", "Three-letter abbreviation for March", 'timed-content' ), |
| 48 |
_x( "Apr", "Three-letter abbreviation for April", 'timed-content' ), |
| 49 |
_x( "May", "Three-letter abbreviation for May", 'timed-content' ), |
| 50 |
_x( "Jun", "Three-letter abbreviation for June", 'timed-content' ), |
| 51 |
_x( "Jul", "Three-letter abbreviation for July", 'timed-content' ), |
| 52 |
_x( "Aug", "Three-letter abbreviation for August", 'timed-content' ), |
| 53 |
_x( "Sep", "Three-letter abbreviation for September", 'timed-content' ), |
| 54 |
_x( "Oct", "Three-letter abbreviation for October", 'timed-content' ), |
| 55 |
_x( "Nov", "Three-letter abbreviation for November", 'timed-content' ), |
| 56 |
_x( "Dec", "Three-letter abbreviation for December", 'timed-content' ) ); |
| 57 |
|
| 58 |
if ( !isset( $jquery_ui_datetime_timePeriods ) ) |
| 59 |
$jquery_ui_datetime_timePeriods = array( _x( "AM", "Abbreviation for first 12-hour period in a day", 'timed-content' ), |
| 60 |
_x( "PM", "Abbreviation for second 12-hour period in a day", 'timed-content' ) ); |
| 61 |
|
| 62 |
if ( !isset( $jquery_ui_datetime_datepicker_i18n ) ) |
| 63 |
$jquery_ui_datetime_datepicker_i18n = array( |
| 64 |
"closeText" => _x( "Done", "jQuery UI Datepicker Close label", "timed-content" ), // Display text for close link |
| 65 |
"prevText" => _x( "Prev", "jQuery UI Datepicker Previous label", "timed-content" ), // Display text for previous month link |
| 66 |
"nextText" => _x( "Next", "jQuery UI Datepicker Next label", "timed-content" ), // Display text for next month link |
| 67 |
"currentText" => _x( "Today", "jQuery UI Datepicker Today label", "timed-content" ), // Display text for current month link |
| 68 |
"monthNames" => $jquery_ui_datetime_monthNames, // Names of months for drop-down and formatting |
| 69 |
"monthNamesShort" => $jquery_ui_datetime_monthNamesShort, // For formatting |
| 70 |
"dayNames" => $jquery_ui_datetime_dayNames, // For formatting |
| 71 |
"dayNamesShort" => $jquery_ui_datetime_dayNamesShort, // For formatting |
| 72 |
"dayNamesMin" => $jquery_ui_datetime_dayNamesShort, // Column headings for days starting at Sunday |
| 73 |
"weekHeader" => _x( "Wk", "jQuery UI Datepicker Week label", "timed-content" ), // Column header for week of the year |
| 74 |
/* translators: http://jqueryui.com/datepicker/#date-formats */ |
| 75 |
"dateFormat" => _x( "MM d, yy", "jQuery UI Datepicker Date format", 'timed-content' ), |
| 76 |
"firstDay" => ( int )( _x( "0", "jQuery UI Datepicker 'First day of week' as integer ( Sunday = 0 ( 'zero' ), Monday = 1, ... )", 'timed-content' ) ), // The first day of the week, Sun = 0, Mon = 1, ... |
| 77 |
"isRTL" => ( _x( "false", "jQuery UI Datepicker: Is translated language read right-to-left ( Value must be either English 'true' or 'false' )?", 'timed-content' ) == "false" ? false : true ), // True if right-to-left language, false if left-to-right |
| 78 |
"showMonthAfterYear" => false, // True if the year select precedes month, false for month then year |
| 79 |
"yearSuffix" => '' // Additional text to append to the year in the month headers |
| 80 |
); |
| 81 |
|
| 82 |
if ( !isset( $jquery_ui_datetime_timepicker_i18n ) ) |
| 83 |
$jquery_ui_datetime_timepicker_i18n = array( |
| 84 |
"hourText" => _x( "Hour", "jQuery UI Timepicker 'Hour' label", "timed-content" ), |
| 85 |
"minuteText" => _x( "Minute", "jQuery UI Timepicker 'Minute' label", "timed-content" ), |
| 86 |
"amPmText" => $jquery_ui_datetime_timePeriods, |
| 87 |
"showPeriod" => ( _x( "true", "jQuery UI Datepicker: Does translated language show 'AM' or 'PM' (or equivalent) when displaying a time ( Value must be either English 'true' or 'false' )?", 'timed-content' ) == "true" ? true : false ), |
| 88 |
"timeSeparator" => _x( ":", "jQuery UI Datepicker: Character used to separate hours and minutes in translated language", 'timed-content' ), |
| 89 |
"closeButtonText" => _x( "Done", "jQuery UI Timepicker 'Done' label", "timed-content" ), |
| 90 |
"nowButtonText" => _x( "Now", "jQuery UI Timepicker 'Now' label", "timed-content" ), |
| 91 |
"deselectButtonText" => _x( "Deselect", "jQuery UI Timepicker 'Deselect' label", "timed-content" ) ); |
| 92 |
|
| 93 |
?> |