Cleanup of po files.
[phpmyadmin/dkf.git] / js / messages.php
blob3d10d496ab533dc1d33ae9f1d0906c4b0c6903e2
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Exporting of translated messages from PHP to Javascript
6 * @package phpMyAdmin
7 */
9 chdir('..');
11 // Send correct type:
12 header('Content-Type: text/javascript; charset=UTF-8');
14 // Cache output in client - the nocache query parameter makes sure that this
15 // file is reloaded when config changes
16 header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');
18 // Avoid loading the full common.inc.php because this would add many
19 // non-js-compatible stuff like DOCTYPE
20 define('PMA_MINIMUM_COMMON', true);
21 require_once './libraries/common.inc.php';
22 // But this one is needed for PMA_escapeJsString()
23 require_once './libraries/js_escape.lib.php';
25 $js_messages['strFormEmpty'] = $GLOBALS['strFormEmpty'];
26 $js_messages['strNotNumber'] = $GLOBALS['strNotNumber'];
27 $js_messages['strClickToSelect'] = $GLOBALS['strClickToSelect'];
28 $js_messages['strClickToUnselect'] = $GLOBALS['strClickToUnselect'];
29 $js_messages['strNoDropDatabases'] = $GLOBALS['strNoDropDatabases'];
31 /* For confirmations */
32 $js_messages['strDoYouReally'] = $GLOBALS['strDoYouReally'];
33 $js_messages['strDropDatabaseStrongWarning'] = $GLOBALS['strDropDatabaseStrongWarning'];
35 /* For blobstreaming */
36 $js_messages['strBLOBRepositoryDisableStrongWarning'] = $GLOBALS['strBLOBRepositoryDisableStrongWarning'];
37 $js_messages['strBLOBRepositoryDisableAreYouSure'] = sprintf($GLOBALS['strBLOBRepositoryDisableAreYouSure'], $GLOBALS['db']);
39 /* For indexes */
40 $js_messages['strFormEmpty'] = $GLOBALS['strFormEmpty'];
41 $js_messages['strNotNumber'] = $GLOBALS['strNotNumber'];
43 /* For server_privileges.js */
44 $js_messages['strHostEmpty'] = $GLOBALS['strHostEmpty'];
45 $js_messages['strUserEmpty'] = $GLOBALS['strUserEmpty'];
46 $js_messages['strPasswordEmpty'] = $GLOBALS['strPasswordEmpty'];
47 $js_messages['strPasswordNotSame'] = $GLOBALS['strPasswordNotSame'];
49 /* For inline query editing */
50 $js_messages['strGo'] = __('Go');
51 $js_messages['strCancel'] = __('Cancel');
53 /* Designer */
54 $js_messages['strModifications'] = $GLOBALS['strModifications'];
55 $js_messages['strRelationDeleted'] = $GLOBALS['strRelationDeleted'];
56 $js_messages['strForeignKeyRelationAdded'] = $GLOBALS['strForeignKeyRelationAdded'];
57 $js_messages['strInternalRelationAdded'] = $GLOBALS['strInternalRelationAdded'];
58 $js_messages['strErrorRelationAdded'] = $GLOBALS['strErrorRelationAdded'];
59 $js_messages['strErrorRelationExists'] = $GLOBALS['strErrorRelationExists'];
60 $js_messages['strErrorSaveTable'] = $GLOBALS['strErrorSaveTable'];
61 $js_messages['strGeneralRelationFeat:strDisabled'] = $GLOBALS['strGeneralRelationFeat'] . ': ' . $GLOBALS['strDisabled'];
62 $js_messages['strSelectReferencedKey'] = $GLOBALS['strSelectReferencedKey'];
63 $js_messages['strSelectForeignKey'] = $GLOBALS['strSelectForeignKey'];
64 $js_messages['strPleaseSelectPrimaryOrUniqueKey'] = $GLOBALS['strPleaseSelectPrimaryOrUniqueKey'];
65 $js_messages['strChangeDisplay'] = $GLOBALS['strChangeDisplay'];
67 echo "var PMA_messages = new Array();\n";
68 foreach ($js_messages as $name => $js_message) {
69 PMA_printJsValue("PMA_messages['" . $name . "']", $js_message);
72 /* Calendar */
73 /* l10n: Display text for calendar close link */
74 PMA_printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
75 /* l10n: Display text for previous month link in calendar */
76 PMA_printJsValue("$.datepicker.regional['']['prevText']", __('Prev'));
77 /* l10n: Display text for next month link in calendar */
78 PMA_printJsValue("$.datepicker.regional['']['nextText']", __('Next'));
79 /* l10n: Display text for current month link in calendar */
80 PMA_printJsValue("$.datepicker.regional['']['currentText']", __('Today'));
81 PMA_printJsValue("$.datepicker.regional['']['monthNames']",
82 array(
83 __('January'),
84 __('February'),
85 __('March'),
86 __('April'),
87 __('May'),
88 __('June'),
89 __('July'),
90 __('August'),
91 __('September'),
92 __('October'),
93 __('November'),
94 __('December')));
95 PMA_printJsValue("$.datepicker.regional['']['monthNamesShort']",
96 array(
97 /* l10n: Short month name */
98 __('Jan'),
99 /* l10n: Short month name */
100 __('Feb'),
101 /* l10n: Short month name */
102 __('Mar'),
103 /* l10n: Short month name */
104 __('Apr'),
105 /* l10n: Short month name */
106 _pgettext('Short month name', 'May'),
107 /* l10n: Short month name */
108 __('Jun'),
109 /* l10n: Short month name */
110 __('Jul'),
111 /* l10n: Short month name */
112 __('Aug'),
113 /* l10n: Short month name */
114 __('Sep'),
115 /* l10n: Short month name */
116 __('Oct'),
117 /* l10n: Short month name */
118 __('Nov'),
119 /* l10n: Short month name */
120 __('Dec')));
121 PMA_printJsValue("$.datepicker.regional['']['dayNames']",
122 array(
123 __('Sunday'),
124 __('Monday'),
125 __('Tuesday'),
126 __('Wednesday'),
127 __('Thursday'),
128 __('Friday'),
129 __('Saturday')));
130 PMA_printJsValue("$.datepicker.regional['']['dayNamesShort']",
131 array(
132 /* l10n: Short week day name */
133 __('Sun'),
134 /* l10n: Short week day name */
135 __('Mon'),
136 /* l10n: Short week day name */
137 __('Tue'),
138 /* l10n: Short week day name */
139 __('Wed'),
140 /* l10n: Short week day name */
141 __('Thu'),
142 /* l10n: Short week day name */
143 __('Fri'),
144 /* l10n: Short week day name */
145 __('Sat')));
146 PMA_printJsValue("$.datepicker.regional['']['dayNamesMin']",
147 array(
148 /* l10n: Minimal week day name */
149 __('Su'),
150 /* l10n: Minimal week day name */
151 __('Mo'),
152 /* l10n: Minimal week day name */
153 __('Tu'),
154 /* l10n: Minimal week day name */
155 __('We'),
156 /* l10n: Minimal week day name */
157 __('Th'),
158 /* l10n: Minimal week day name */
159 __('Fr'),
160 /* l10n: Minimal week day name */
161 __('Sa')));
162 /* l10n: Column header for week of the year in calendar */
163 PMA_printJsValue("$.datepicker.regional['']['weekHeader']", __('Wk'));
165 PMA_printJsValue("$.datepicker.regional['']['hourText']", __('Hour'));
166 PMA_printJsValue("$.datepicker.regional['']['minuteText']", __('Minute'));
167 PMA_printJsValue("$.datepicker.regional['']['secondText']", __('Second'));
169 $.extend($.datepicker._defaults, $.datepicker.regional['']);