bug #3305606 [interface] Show all button wraps on privileges page
[phpmyadmin/crack.git] / js / messages.php
blobafc73e07f9897d1e8f274284b849d1cff040efa5
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['strClickToSelect'] = __('Click to select');
26 $js_messages['strClickToUnselect'] = __('Click to unselect');
27 $js_messages['strNoDropDatabases'] = __('"DROP DATABASE" statements are disabled.');
29 /* For confirmations */
30 $js_messages['strDoYouReally'] = __('Do you really want to ');
31 $js_messages['strDropDatabaseStrongWarning'] = __('You are about to DESTROY a complete database!');
32 $js_messages['strDroppingEvent'] = __('Dropping Event');
33 $js_messages['strDroppingProcedure'] = __('Dropping Procedure');
34 $js_messages['strDeleteTrackingData'] = __('Delete tracking data for this table');
35 $js_messages['strDeletingTrackingData'] = __('Deleting tracking data');
36 $js_messages['strDroppingPrimaryKeyIndex'] = __('Dropping Primary Key/Index');
37 $js_messages['strOperationTakesLongTime'] = __('This operation could take a long time. Proceed anyway?');
39 /* For blobstreaming */
40 $js_messages['strBLOBRepositoryDisableStrongWarning'] = __('You are about to DISABLE a BLOB Repository!');
41 $js_messages['strBLOBRepositoryDisableAreYouSure'] = sprintf(__('Are you sure you want to disable all BLOB references for database %s?'), PMA_escapeJsString($GLOBALS['db']));
43 /* For indexes */
44 $js_messages['strFormEmpty'] = __('Missing value in the form!');
45 $js_messages['strNotNumber'] = __('This is not a number!');
47 /* For server_privileges.js */
48 $js_messages['strHostEmpty'] = __('The host name is empty!');
49 $js_messages['strUserEmpty'] = __('The user name is empty!');
50 $js_messages['strPasswordEmpty'] = __('The password is empty!');
51 $js_messages['strPasswordNotSame'] = __('The passwords aren\'t the same!');
52 $js_messages['strAddNewUser'] = __('Add a New User');
53 $js_messages['strCreateUser'] = __('Create User');
54 $js_messages['strReloadingPrivileges'] = __('Reloading Privileges');
55 $js_messages['strRemovingSelectedUsers'] = __('Removing Selected Users');
56 $js_messages['strClose'] = __('Close');
58 /* For inline query editing */
59 $js_messages['strGo'] = __('Go');
60 $js_messages['strCancel'] = __('Cancel');
62 /* For Ajax Notifications */
63 $js_messages['strLoading'] = __('Loading');
64 $js_messages['strProcessingRequest'] = __('Processing Request');
65 $js_messages['strErrorProcessingRequest'] = __('Error in Processing Request');
66 $js_messages['strDroppingColumn'] = __('Dropping Column');
67 $js_messages['strAddingPrimaryKey'] = __('Adding Primary Key');
68 $js_messages['strOK'] = __('OK');
70 /* For db_operations.js */
71 $js_messages['strRenamingDatabases'] = __('Renaming Databases');
72 $js_messages['strReloadDatabase'] = __('Reload Database');
73 $js_messages['strCopyingDatabase'] = __('Copying Database');
74 $js_messages['strChangingCharset'] = __('Changing Charset');
75 $js_messages['strTableMustHaveAtleastOneColumn'] = __('Table must have at least one column');
76 $js_messages['strCreateTable'] = __('Create Table');
77 $js_messages['strYes'] = __('Yes');
78 $js_messages['strNo'] = __('No');
80 /* For db_search.js */
81 $js_messages['strSearching'] = __('Searching');
82 //$js_messages['strBrowsing'] = __('Browsing');
83 //$js_messages['strDeleting'] = __('Deleting');
85 /* For sql.js */
86 $js_messages['strHideQueryBox'] = __('Hide query box');
87 $js_messages['strShowQueryBox'] = __('Show query box');
88 $js_messages['strInlineEdit'] = __('Inline Edit');
89 $js_messages['strEdit'] = __('Edit');
90 $js_messages['strSave'] = __('Save');
91 $js_messages['strHide'] = __('Hide');
93 /* For tbl_select.js */
94 $js_messages['strHideSearchCriteria'] = __('Hide search criteria');
95 $js_messages['strShowSearchCriteria'] = __('Show search criteria');
97 /* For tbl_change.js */
98 $js_messages['strIgnore'] = __('Ignore');
100 /* Designer (pmd/scripts/move.js) */
101 $js_messages['strSelectReferencedKey'] = __('Select referenced key');
102 $js_messages['strSelectForeignKey'] = __('Select Foreign Key');
103 $js_messages['strPleaseSelectPrimaryOrUniqueKey'] = __('Please select the primary key or a unique key');
104 $js_messages['strChangeDisplay'] = __('Choose column to display');
106 /* Visual query builder (pmd/scripts/move.js) */
107 $js_messages['strAddOption'] = __('Add an option for column ');
109 /* password generation */
110 $js_messages['strGeneratePassword'] = __('Generate password');
111 $js_messages['strGenerate'] = __('Generate');
112 $js_messages['strChangePassword'] = __('Change Password');
114 /* navigation tabs */
115 $js_messages['strMore'] = __('More');
117 /* update */
118 $js_messages['strNewerVersion'] = __('A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is %s, released on %s.');
119 /* l10n: Latest available phpMyAdmin version */
120 $js_messages['strLatestAvailable'] = __(', latest stable version:');
122 echo "var PMA_messages = new Array();\n";
123 foreach ($js_messages as $name => $js_message) {
124 PMA_printJsValue("PMA_messages['" . $name . "']", $js_message);
127 /* Calendar */
128 echo "var themeCalendarImage = '" . $GLOBALS['pmaThemeImage'] . 'b_calendar.png' . "';\n";
130 /* Image path */
131 echo "var pmaThemeImage = '" . $GLOBALS['pmaThemeImage'] . "';\n";
133 /* Version */
134 echo "var pmaversion = '" . PMA_VERSION . "';\n";
136 echo "if ($.datepicker) {\n";
137 /* l10n: Display text for calendar close link */
138 PMA_printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
139 /* l10n: Display text for previous month link in calendar */
140 PMA_printJsValue("$.datepicker.regional['']['prevText']", __('Prev'));
141 /* l10n: Display text for next month link in calendar */
142 PMA_printJsValue("$.datepicker.regional['']['nextText']", __('Next'));
143 /* l10n: Display text for current month link in calendar */
144 PMA_printJsValue("$.datepicker.regional['']['currentText']", __('Today'));
145 PMA_printJsValue("$.datepicker.regional['']['monthNames']",
146 array(
147 __('January'),
148 __('February'),
149 __('March'),
150 __('April'),
151 __('May'),
152 __('June'),
153 __('July'),
154 __('August'),
155 __('September'),
156 __('October'),
157 __('November'),
158 __('December')));
159 PMA_printJsValue("$.datepicker.regional['']['monthNamesShort']",
160 array(
161 /* l10n: Short month name */
162 __('Jan'),
163 /* l10n: Short month name */
164 __('Feb'),
165 /* l10n: Short month name */
166 __('Mar'),
167 /* l10n: Short month name */
168 __('Apr'),
169 /* l10n: Short month name */
170 _pgettext('Short month name', 'May'),
171 /* l10n: Short month name */
172 __('Jun'),
173 /* l10n: Short month name */
174 __('Jul'),
175 /* l10n: Short month name */
176 __('Aug'),
177 /* l10n: Short month name */
178 __('Sep'),
179 /* l10n: Short month name */
180 __('Oct'),
181 /* l10n: Short month name */
182 __('Nov'),
183 /* l10n: Short month name */
184 __('Dec')));
185 PMA_printJsValue("$.datepicker.regional['']['dayNames']",
186 array(
187 __('Sunday'),
188 __('Monday'),
189 __('Tuesday'),
190 __('Wednesday'),
191 __('Thursday'),
192 __('Friday'),
193 __('Saturday')));
194 PMA_printJsValue("$.datepicker.regional['']['dayNamesShort']",
195 array(
196 /* l10n: Short week day name */
197 __('Sun'),
198 /* l10n: Short week day name */
199 __('Mon'),
200 /* l10n: Short week day name */
201 __('Tue'),
202 /* l10n: Short week day name */
203 __('Wed'),
204 /* l10n: Short week day name */
205 __('Thu'),
206 /* l10n: Short week day name */
207 __('Fri'),
208 /* l10n: Short week day name */
209 __('Sat')));
210 PMA_printJsValue("$.datepicker.regional['']['dayNamesMin']",
211 array(
212 /* l10n: Minimal week day name */
213 __('Su'),
214 /* l10n: Minimal week day name */
215 __('Mo'),
216 /* l10n: Minimal week day name */
217 __('Tu'),
218 /* l10n: Minimal week day name */
219 __('We'),
220 /* l10n: Minimal week day name */
221 __('Th'),
222 /* l10n: Minimal week day name */
223 __('Fr'),
224 /* l10n: Minimal week day name */
225 __('Sa')));
226 /* l10n: Column header for week of the year in calendar */
227 PMA_printJsValue("$.datepicker.regional['']['weekHeader']", __('Wk'));
229 PMA_printJsValue("$.datepicker.regional['']['hourText']", __('Hour'));
230 PMA_printJsValue("$.datepicker.regional['']['minuteText']", __('Minute'));
231 PMA_printJsValue("$.datepicker.regional['']['secondText']", __('Second'));
233 $.extend($.datepicker._defaults, $.datepicker.regional['']);
234 } /* if ($.datepicker) */