Test
[phpmyadmin/ammaryasirr.git] / js / messages.php
blob307250527e5298563b3cd400cdb712a90ea7f5d5
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'] = $cfg['AllowUserDropDatabase'] ? '' : __('"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['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 /* Charts */
48 /* l10n: Default description for the y-Axis of Charts */
49 $js_messages['strTotalCount'] = __('Total count');
51 /* For server_privileges.js */
52 $js_messages['strHostEmpty'] = __('The host name is empty!');
53 $js_messages['strUserEmpty'] = __('The user name is empty!');
54 $js_messages['strPasswordEmpty'] = __('The password is empty!');
55 $js_messages['strPasswordNotSame'] = __('The passwords aren\'t the same!');
56 $js_messages['strAddUser'] = __('Add user');
57 $js_messages['strReloadingPrivileges'] = __('Reloading Privileges');
58 $js_messages['strRemovingSelectedUsers'] = __('Removing Selected Users');
59 $js_messages['strClose'] = __('Close');
61 /* for server_status.js */
62 $js_messages['strEdit'] = __('Edit');
64 $js_messages['strLiveTrafficChart'] = __('Live traffic chart');
65 $js_messages['strLiveConnChart'] = __('Live conn./process chart');
66 $js_messages['strLiveQueryChart'] = __('Live query chart');
68 $js_messages['strStaticData'] = __('Static data');
69 /* l10n: Total number of queries */
70 $js_messages['strTotal'] = __('Total');
71 /* l10n: Other, small valued, queries */
72 $js_messages['strOther'] = __('Other');
73 /* l10n: Thousands separator */
74 $js_messages['strThousandsSeperator'] = __(',');
75 /* l10n: Decimal separator */
76 $js_messages['strDecimalSeperator'] = __('.');
78 $js_messages['strChartKBSent'] = __('KiB sent since last refresh');
79 $js_messages['strChartKBReceived'] = __('KiB received since last refresh');
80 $js_messages['strChartServerTraffic'] = __('Server traffic (in KiB)');
81 $js_messages['strChartConnections'] = __('Connections since last refresh');
82 $js_messages['strChartProcesses'] = __('Processes');
83 $js_messages['strChartConnectionsTitle'] = __('Connections / Processes');
84 $js_messages['strChartIssuedQueries'] = __('Issued queries since last refresh');
85 $js_messages['strChartIssuedQueriesTitle'] = __('Issued queries');
87 $js_messages['strChartQueryPie'] = __('Query statistics');
89 /* For inline query editing */
90 $js_messages['strGo'] = __('Go');
91 $js_messages['strCancel'] = __('Cancel');
93 /* For Ajax Notifications */
94 $js_messages['strLoading'] = __('Loading');
95 $js_messages['strProcessingRequest'] = __('Processing Request');
96 $js_messages['strErrorProcessingRequest'] = __('Error in Processing Request');
97 $js_messages['strDroppingColumn'] = __('Dropping Column');
98 $js_messages['strAddingPrimaryKey'] = __('Adding Primary Key');
99 $js_messages['strOK'] = __('OK');
101 /* For db_operations.js */
102 $js_messages['strRenamingDatabases'] = __('Renaming Databases');
103 $js_messages['strReloadDatabase'] = __('Reload Database');
104 $js_messages['strCopyingDatabase'] = __('Copying Database');
105 $js_messages['strChangingCharset'] = __('Changing Charset');
106 $js_messages['strTableMustHaveAtleastOneColumn'] = __('Table must have at least one column');
107 $js_messages['strCreateTable'] = __('Create Table');
108 $js_messages['strYes'] = __('Yes');
109 $js_messages['strNo'] = __('No');
111 /* For db_stucture.js */
112 $js_messages['strInsertTable'] = __('Insert Table');
114 /* For db_search.js */
115 $js_messages['strSearching'] = __('Searching');
116 $js_messages['strHideSearchResults'] = __('Hide search results');
117 $js_messages['strShowSearchResults'] = __('Show search results');
118 $js_messages['strBrowsing'] = __('Browsing');
119 $js_messages['strDeleting'] = __('Deleting');
121 /* For db_routines.js */
122 $js_messages['MissingReturn'] = __('The definition of a stored function must contain a RETURN statement!');
123 $js_messages['strValueTooLong'] = __('Value too long in the form!');
125 /* For import.js */
126 $js_messages['strImportCSV'] = __('Note: If the file contains multiple tables, they will be combined into one');
128 /* For sql.js */
129 $js_messages['strHideQueryBox'] = __('Hide query box');
130 $js_messages['strShowQueryBox'] = __('Show query box');
131 $js_messages['strInlineEdit'] = __('Inline Edit');
132 $js_messages['strEdit'] = __('Edit');
133 $js_messages['strSave'] = __('Save');
134 $js_messages['strHide'] = __('Hide');
135 $js_messages['strNoRowSelected'] = __('No rows selected');
136 $js_messages['strChangeTbl'] = __('Change');
138 /* For tbl_select.js */
139 $js_messages['strHideSearchCriteria'] = __('Hide search criteria');
140 $js_messages['strShowSearchCriteria'] = __('Show search criteria');
141 $js_messages['strTableSearch'] = __('Table Search');
143 /* For tbl_zoom_plot.js */
144 $js_messages['strZoomSearch'] = __('Zoom Search');
145 $js_messages['strDisplayHelp'] = __('* Each point represents a data row.<br>* Hovering over a point will show its label.<br>* Drag and select an area in the plot to zoom into it.<br>* Click reset zoom link to come back to original state.<br>* Click data points to view the data row.<br>* The plot can be resized by dragging it along the bottom right corner.<br>');
148 /* For tbl_change.js */
149 $js_messages['strIgnore'] = __('Ignore');
151 /* Designer (pmd/scripts/move.js) */
152 $js_messages['strSelectReferencedKey'] = __('Select referenced key');
153 $js_messages['strSelectForeignKey'] = __('Select Foreign Key');
154 $js_messages['strPleaseSelectPrimaryOrUniqueKey'] = __('Please select the primary key or a unique key');
155 $js_messages['strChangeDisplay'] = __('Choose column to display');
156 $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?');
158 /* Visual query builder (pmd/scripts/move.js) */
159 $js_messages['strAddOption'] = __('Add an option for column ');
161 /* password generation */
162 $js_messages['strGeneratePassword'] = __('Generate password');
163 $js_messages['strGenerate'] = __('Generate');
164 $js_messages['strChangePassword'] = __('Change Password');
166 /* navigation tabs */
167 $js_messages['strMore'] = __('More');
169 /* update */
170 $js_messages['strNewerVersion'] = __('A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is %s, released on %s.');
171 /* l10n: Latest available phpMyAdmin version */
172 $js_messages['strLatestAvailable'] = __(', latest stable version:');
173 $js_messages['strUpToDate'] = __('up to date');
175 echo "var PMA_messages = new Array();\n";
176 foreach ($js_messages as $name => $js_message) {
177 PMA_printJsValue("PMA_messages['" . $name . "']", $js_message);
180 /* Calendar */
181 echo "var themeCalendarImage = '" . $GLOBALS['pmaThemeImage'] . 'b_calendar.png' . "';\n";
183 /* Image path */
184 echo "var pmaThemeImage = '" . $GLOBALS['pmaThemeImage'] . "';\n";
186 /* Version */
187 echo "var pmaversion = '" . PMA_VERSION . "';\n";
189 echo "if ($.datepicker) {\n";
190 /* l10n: Display text for calendar close link */
191 PMA_printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
192 /* l10n: Display text for previous month link in calendar */
193 PMA_printJsValue("$.datepicker.regional['']['prevText']", __('Prev'));
194 /* l10n: Display text for next month link in calendar */
195 PMA_printJsValue("$.datepicker.regional['']['nextText']", __('Next'));
196 /* l10n: Display text for current month link in calendar */
197 PMA_printJsValue("$.datepicker.regional['']['currentText']", __('Today'));
198 PMA_printJsValue("$.datepicker.regional['']['monthNames']",
199 array(
200 __('January'),
201 __('February'),
202 __('March'),
203 __('April'),
204 __('May'),
205 __('June'),
206 __('July'),
207 __('August'),
208 __('September'),
209 __('October'),
210 __('November'),
211 __('December')));
212 PMA_printJsValue("$.datepicker.regional['']['monthNamesShort']",
213 array(
214 /* l10n: Short month name */
215 __('Jan'),
216 /* l10n: Short month name */
217 __('Feb'),
218 /* l10n: Short month name */
219 __('Mar'),
220 /* l10n: Short month name */
221 __('Apr'),
222 /* l10n: Short month name */
223 _pgettext('Short month name', 'May'),
224 /* l10n: Short month name */
225 __('Jun'),
226 /* l10n: Short month name */
227 __('Jul'),
228 /* l10n: Short month name */
229 __('Aug'),
230 /* l10n: Short month name */
231 __('Sep'),
232 /* l10n: Short month name */
233 __('Oct'),
234 /* l10n: Short month name */
235 __('Nov'),
236 /* l10n: Short month name */
237 __('Dec')));
238 PMA_printJsValue("$.datepicker.regional['']['dayNames']",
239 array(
240 __('Sunday'),
241 __('Monday'),
242 __('Tuesday'),
243 __('Wednesday'),
244 __('Thursday'),
245 __('Friday'),
246 __('Saturday')));
247 PMA_printJsValue("$.datepicker.regional['']['dayNamesShort']",
248 array(
249 /* l10n: Short week day name */
250 __('Sun'),
251 /* l10n: Short week day name */
252 __('Mon'),
253 /* l10n: Short week day name */
254 __('Tue'),
255 /* l10n: Short week day name */
256 __('Wed'),
257 /* l10n: Short week day name */
258 __('Thu'),
259 /* l10n: Short week day name */
260 __('Fri'),
261 /* l10n: Short week day name */
262 __('Sat')));
263 PMA_printJsValue("$.datepicker.regional['']['dayNamesMin']",
264 array(
265 /* l10n: Minimal week day name */
266 __('Su'),
267 /* l10n: Minimal week day name */
268 __('Mo'),
269 /* l10n: Minimal week day name */
270 __('Tu'),
271 /* l10n: Minimal week day name */
272 __('We'),
273 /* l10n: Minimal week day name */
274 __('Th'),
275 /* l10n: Minimal week day name */
276 __('Fr'),
277 /* l10n: Minimal week day name */
278 __('Sa')));
279 /* l10n: Column header for week of the year in calendar */
280 PMA_printJsValue("$.datepicker.regional['']['weekHeader']", __('Wk'));
282 PMA_printJsValue("$.datepicker.regional['']['hourText']", __('Hour'));
283 PMA_printJsValue("$.datepicker.regional['']['minuteText']", __('Minute'));
284 PMA_printJsValue("$.datepicker.regional['']['secondText']", __('Second'));
286 $.extend($.datepicker._defaults, $.datepicker.regional['']);
287 } /* if ($.datepicker) */