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