Modified the 'How to use?' message for info about mousewheel zoom and panning feature
[phpmyadmin/ammaryasirr.git] / js / messages.php
blob8a606dc6eb93d565ebe2b2f090d1020679068827
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 // Close session early as we won't write anything there
23 session_write_close();
24 // But this one is needed for PMA_escapeJsString()
25 require_once './libraries/js_escape.lib.php';
27 $js_messages['strClickToSelect'] = __('Click to select');
28 $js_messages['strClickToUnselect'] = __('Click to unselect');
29 $js_messages['strNoDropDatabases'] = $cfg['AllowUserDropDatabase'] ? '' : __('"DROP DATABASE" statements are disabled.');
31 /* For confirmations */
32 $js_messages['strDoYouReally'] = __('Do you really want to ');
33 $js_messages['strDropDatabaseStrongWarning'] = __('You are about to DESTROY a complete database!');
34 $js_messages['strDropTableStrongWarning'] = __('You are about to DESTROY a complete table!');
35 $js_messages['strTruncateTableStrongWarning'] = __('You are about to TRUNCATE a complete table!');
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 /* Charts */
50 /* l10n: Default description for the y-Axis of Charts */
51 $js_messages['strTotalCount'] = __('Total count');
53 /* For server_privileges.js */
54 $js_messages['strHostEmpty'] = __('The host name is empty!');
55 $js_messages['strUserEmpty'] = __('The user name is empty!');
56 $js_messages['strPasswordEmpty'] = __('The password is empty!');
57 $js_messages['strPasswordNotSame'] = __('The passwords aren\'t the same!');
58 $js_messages['strAddUser'] = __('Add user');
59 $js_messages['strReloadingPrivileges'] = __('Reloading Privileges');
60 $js_messages['strRemovingSelectedUsers'] = __('Removing Selected Users');
61 $js_messages['strClose'] = __('Close');
63 /* for server_status.js */
64 $js_messages['strEdit'] = __('Edit');
65 $js_messages['strLiveTrafficChart'] = __('Live traffic chart');
66 $js_messages['strLiveConnChart'] = __('Live conn./process chart');
67 $js_messages['strLiveQueryChart'] = __('Live query chart');
69 $js_messages['strStaticData'] = __('Static data');
70 /* l10n: Total number of queries */
71 $js_messages['strTotal'] = __('Total');
72 /* l10n: Other, small valued, queries */
73 $js_messages['strOther'] = __('Other');
74 /* l10n: Thousands separator */
75 $js_messages['strThousandsSeperator'] = __(',');
76 /* l10n: Decimal separator */
77 $js_messages['strDecimalSeperator'] = __('.');
79 $js_messages['strChartKBSent'] = __('KiB sent since last refresh');
80 $js_messages['strChartKBReceived'] = __('KiB received since last refresh');
81 $js_messages['strChartServerTraffic'] = __('Server traffic (in KiB)');
82 $js_messages['strChartConnections'] = __('Connections since last refresh');
83 $js_messages['strChartProcesses'] = __('Processes');
84 $js_messages['strChartConnectionsTitle'] = __('Connections / Processes');
85 /* l10n: Questions is the name of a MySQL Status variable */
86 $js_messages['strChartIssuedQueries'] = __('Questions since last refresh');
87 /* l10n: Questions is the name of a MySQL Status variable */
88 $js_messages['strChartIssuedQueriesTitle'] = __('Questions (executed statements by the server)');
90 $js_messages['strChartQueryPie'] = __('Query statistics');
92 /* server status monitor */
93 $js_messages['strIncompatibleMonitorConfig'] = __('Local monitor configuration incompatible');
94 $js_messages['strIncompatibleMonitorConfigDescription'] = __('The chart arrangement configuration in your browsers local storage is not compatible anymore to the newer version of the monitor dialog. It is very likely that your current configuration will not work anymore. Please reset your configuration to default in the <i>Settings</i> menu.');
96 $js_messages['strQueryCacheEfficiency'] = __('Query cache efficiency');
97 $js_messages['strQueryCacheUsage'] = __('Query cache usage');
98 $js_messages['strQueryCacheUsed'] = __('Query cache used');
100 $js_messages['strSystemCPUUsage'] = __('System CPU Usage');
101 $js_messages['strSystemMemory'] = __('System memory');
102 $js_messages['strSystemSwap'] = __('System swap');
103 $js_messages['strMiB'] = __('MiB');
104 $js_messages['strKiB'] = __('KiB');
106 $js_messages['strAverageLoad'] = __('Average load');
107 $js_messages['strTotalMemory'] = __('Total memory');
108 $js_messages['strCachedMemory'] = __('Cached memory');
109 $js_messages['strBufferedMemory'] = __('Buffered memory');
110 $js_messages['strFreeMemory'] = __('Free memory');
111 $js_messages['strUsedMemory'] = __('Used memory');
113 $js_messages['strTotalSwap'] = __('Total Swap');
114 $js_messages['strCachedSwap'] = __('Cached Swap');
115 $js_messages['strUsedSwap'] = __('Used Swap');
116 $js_messages['strFreeSwap'] = __('Free Swap');
118 $js_messages['strBytesSent'] = __('Bytes sent');
119 $js_messages['strBytesReceived'] = __('Bytes received');
120 $js_messages['strConnections'] = __('Connections');
121 $js_messages['strProcesses'] = __('Processes');
123 /* l10n: Questions is the name of a MySQL Status variable */
124 $js_messages['strQuestions'] = __('Questions');
125 $js_messages['strTraffic'] = __('Traffic');
126 $js_messages['strSettings'] = __('Settings');
127 $js_messages['strRemoveChart'] = __('Remove chart');
128 $js_messages['strEditChart'] = __('Edit title and labels');
129 $js_messages['strAddChart'] = __('Add chart to grid');
130 $js_messages['strClose'] = __('Close');
131 $js_messages['strAddOneSeriesWarning'] = __('Please add at least one variable to the series');
132 $js_messages['strNone'] = __('None');
133 $js_messages['strResumeMonitor'] = __('Resume monitor');
134 $js_messages['strPauseMonitor'] = __('Pause monitor');
135 /* Monitor: Instructions Dialog */
136 $js_messages['strBothLogOn'] = __('general_log and slow_query_log are enabled.');
137 $js_messages['strGenLogOn'] = __('general_log is enabled.');
138 $js_messages['strSlowLogOn'] = __('slow_query_log is enabled.');
139 $js_messages['strBothLogOff'] = __('slow_query_log and general_log are disabled.');
140 $js_messages['strLogOutNotTable'] = __('log_output is not set to TABLE.');
141 $js_messages['strLogOutIsTable'] = __('log_output is set to TABLE.');
142 $js_messages['strSmallerLongQueryTimeAdvice'] = __('slow_query_log is enabled, but the server logs only queries that take longer than %d seconds. It is advisable to set this long_query_time 0-2 seconds, depending on your system.');
143 $js_messages['strLongQueryTimeSet'] = __('long_query_time is set to %d second(s).');
144 $js_messages['strSettingsAppliedGlobal'] = __('Following settings will be applied globally and reset to default on server restart:');
145 /* l10n: %s is FILE or TABLE */
146 $js_messages['strSetLogOutput'] = __('Set log_output to %s');
147 /* l10n: Enable in this context means setting a status variable to ON */
148 $js_messages['strEnableVar'] = __('Enable %s');
149 /* l10n: Disable in this context means setting a status variable to OFF */
150 $js_messages['strDisableVar'] = __('Disable %s');
151 /* l10n: %d seconds */
152 $js_messages['setSetLongQueryTime'] = __('Set long_query_time to %ds');
153 $js_messages['strNoSuperUser'] = __('You can\'t change these variables. Please log in as root or contact your database administrator.');
154 $js_messages['strChangeSettings'] = __('Change settings');
155 $js_messages['strCurrentSettings'] = __('Current settings');
157 $js_messages['strChartTitle'] = __('Chart Title');
158 /* l10n: As in differential values */
159 $js_messages['strDifferential'] = __('Differential');
160 $js_messages['strDividedBy'] = __('Divided by %s:');
162 $js_messages['strFromSlowLog'] = __('From slow log');
163 $js_messages['strFromGeneralLog'] = __('From general log');
164 $js_messages['strAnalysingLogs'] = __('Analysing & loading logs. This may take a while.');
165 $js_messages['strCountColumnExplanation'] = __('This column shows the amount of identical queries that are grouped together. However only the SQL query itself has been used as a grouping criteria, so the other attributes of queries, such as start time, may differ.');
166 $js_messages['strMoreCountColumnExplanation'] = __('Since grouping of INSERTs queries has been selected, INSERT queries into the same table are also being grouped together, disregarding of the inserted data.');
167 $js_messages['strLogDataLoaded'] = __('Log data loaded. Queries executed in this time span:');
169 $js_messages['strJumpToTable'] = __('Jump to Log table');
170 $js_messages['strNoDataFound'] = __('Log analysed, but no data found in this time span.');
172 /* l10n: A collection of available filters */
173 $js_messages['strFiltersForLogTable'] = __('Log table filter options');
174 /* l10n: Filter as in "Start Filtering" */
175 $js_messages['strFilter'] = __('Filter');
176 $js_messages['strFilterByWordRegexp'] = __('Filter queries by word/regexp:');
177 $js_messages['strIgnoreWhereAndGroup'] = __('Group queries, ignoring variable data in WHERE clauses');
178 $js_messages['strSumRows'] = __('Sum of grouped rows:');
179 $js_messages['strTotal'] = __('Total:');
181 $js_messages['strLoadingLogs'] = __('Loading logs');
182 $js_messages['strRefreshFailed'] = __('Monitor refresh failed');
183 $js_messages['strInvalidResponseExplanation'] = __('While requesting new chart data the server returned an invalid response. This is most likely because your session expired. Reloading the page and reentering your credentials should help.');
184 $js_messages['strReloadPage'] = __('Reload page');
186 $js_messages['strAffectedRows'] = __('Affected rows:');
188 $js_messages['strFailedParsingConfig'] = __('Failed parsing config file. It doesn\'t seem to be valid JSON code');
189 $js_messages['strFailedBuildingGrid'] = __('Failed building chart grid with imported config. Resetting to default config...');
190 $js_messages['strImport'] = __('Import');
192 $js_messages['strAnalyzeQuery'] = __('Analyse Query');
194 /* Server status advisor */
196 $js_messages['strAdvisorSystem'] = __('Advisor system');
197 $js_messages['strPerformanceIssues'] = __('Possible performance issues');
198 $js_messages['strIssuse'] = __('Issue');
199 $js_messages['strRecommendation'] = __('Recommendation');
200 $js_messages['strRuleDetails'] = __('Rule details');
201 $js_messages['strJustification'] = __('Justification');
202 $js_messages['strFormula'] = __('Used variable / formula');
203 $js_messages['strTest'] = __('Test');
206 /* For inline query editing */
207 $js_messages['strGo'] = __('Go');
208 $js_messages['strCancel'] = __('Cancel');
210 /* For Ajax Notifications */
211 $js_messages['strLoading'] = __('Loading');
212 $js_messages['strProcessingRequest'] = __('Processing Request');
213 $js_messages['strErrorProcessingRequest'] = __('Error in Processing Request');
214 $js_messages['strDroppingColumn'] = __('Dropping Column');
215 $js_messages['strAddingPrimaryKey'] = __('Adding Primary Key');
216 $js_messages['strOK'] = __('OK');
218 /* For db_operations.js */
219 $js_messages['strRenamingDatabases'] = __('Renaming Databases');
220 $js_messages['strReloadDatabase'] = __('Reload Database');
221 $js_messages['strCopyingDatabase'] = __('Copying Database');
222 $js_messages['strChangingCharset'] = __('Changing Charset');
223 $js_messages['strTableMustHaveAtleastOneColumn'] = __('Table must have at least one column');
224 $js_messages['strCreateTable'] = __('Create Table');
225 $js_messages['strYes'] = __('Yes');
226 $js_messages['strNo'] = __('No');
228 /* For db_stucture.js */
229 $js_messages['strInsertTable'] = __('Insert Table');
230 $js_messages['strHideIndexes'] = __('Hide indexes');
231 $js_messages['strShowIndexes'] = __('Show indexes');
233 /* For db_search.js */
234 $js_messages['strSearching'] = __('Searching');
235 $js_messages['strHideSearchResults'] = __('Hide search results');
236 $js_messages['strShowSearchResults'] = __('Show search results');
237 $js_messages['strBrowsing'] = __('Browsing');
238 $js_messages['strDeleting'] = __('Deleting');
240 /* For db_routines.js */
241 $js_messages['MissingReturn'] = __('The definition of a stored function must contain a RETURN statement!');
243 /* For import.js */
244 $js_messages['strImportCSV'] = __('Note: If the file contains multiple tables, they will be combined into one');
246 /* For sql.js */
247 $js_messages['strHideQueryBox'] = __('Hide query box');
248 $js_messages['strShowQueryBox'] = __('Show query box');
249 $js_messages['strEdit'] = __('Edit');
250 $js_messages['strNoRowSelected'] = __('No rows selected');
251 $js_messages['strChangeTbl'] = __('Change');
252 $js_messages['strQueryExecutionTime'] = __('Query execution time');
254 /* For server_variables.js */
255 $js_messages['strSave'] = __('Save');
257 /* For tbl_select.js */
258 $js_messages['strHideSearchCriteria'] = __('Hide search criteria');
259 $js_messages['strShowSearchCriteria'] = __('Show search criteria');
261 /* For tbl_zoom_plot.js */
262 $js_messages['strZoomSearch'] = __('Zoom Search');
263 $js_messages['strDisplayHelp'] = '<ul><li>'
264 . __('Each point represents a data row.')
265 . '</li><li>'
266 . __('Hovering over a point will show its label.')
267 . '</li><li>'
268 . __('Use mousewheel to zoom in or out of the plot.')
269 . '</li><li>'
270 . __('Click and drag the mouse to navigate the plot.')
271 . '</li><li>'
272 . __('Click reset zoom link to come back to original state.')
273 . '</li><li>'
274 . __('Click a data point to view and possibly edit the data row.')
275 . '</li><li>'
276 . __('The plot can be resized by dragging it along the bottom right corner.')
277 . '</li><li>'
278 . __('Strings are converted into integer for plotting')
279 . '</li></ul>';
280 $js_messages['strInputNull'] = '<strong>' . __('Select two columns') . '</strong>';
281 $js_messages['strSameInputs'] = '<strong>' . __('Select two different columns') . '</strong>';
283 /* For tbl_change.js */
284 $js_messages['strIgnore'] = __('Ignore');
285 $js_messages['strCopy'] = __('Copy');
286 $js_messages['strX'] = __('X');
287 $js_messages['strY'] = __('Y');
288 $js_messages['strPoint'] = __('Point');
289 $js_messages['strLineString'] = __('Linestring');
290 $js_messages['strPolygon'] = __('Polygon');
291 $js_messages['strGeometry'] = __('Geometry');
292 $js_messages['strInnerRing'] = __('Inner Ring');
293 $js_messages['strOuterRing'] = __('Outer Ring');
294 $js_messages['strAddPoint'] = __('Add a point');
295 $js_messages['strAddInnerRing'] = __('Add an inner ring');
296 $js_messages['strAddPolygon'] = __('Add a polygon');
298 /* For tbl_structure.js */
299 $js_messages['strAddColumns'] = __('Add columns');
301 /* Designer (js/pmd/move.js) */
302 $js_messages['strSelectReferencedKey'] = __('Select referenced key');
303 $js_messages['strSelectForeignKey'] = __('Select Foreign Key');
304 $js_messages['strPleaseSelectPrimaryOrUniqueKey'] = __('Please select the primary key or a unique key');
305 $js_messages['strChangeDisplay'] = __('Choose column to display');
306 $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?');
308 /* Visual query builder (js/pmd/move.js) */
309 $js_messages['strAddOption'] = __('Add an option for column ');
311 /* For makegrid.js (column reordering, show/hide column, grid editing) */
312 $js_messages['strCellEditHint'] = __('Press escape to cancel editing');
313 $js_messages['strSaveCellWarning'] = __('You have edited some data and they have not been saved. Are you sure you want to leave this page before saving the data?');
314 $js_messages['strColOrderHint'] = __('Drag to reorder');
315 $js_messages['strSortHint'] = __('Click to sort');
316 $js_messages['strColMarkHint'] = __('Click to mark/unmark');
317 $js_messages['strColVisibHint'] = __('Click the drop-down arrow<br />to toggle column\'s visibility');
318 $js_messages['strShowAllCol'] = __('Show all');
319 $js_messages['strAlertNonUnique'] = __('This table does not contain a unique column. Features related to the grid edit, checkbox, Edit, Copy and Delete links may not work after saving.');
320 $js_messages['strGridEditFeatureHint'] = __('You can also edit most columns<br />by clicking directly on their content.');
321 $js_messages['strGoToLink'] = __('Go to link');
323 /* password generation */
324 $js_messages['strGeneratePassword'] = __('Generate password');
325 $js_messages['strGenerate'] = __('Generate');
326 $js_messages['strChangePassword'] = __('Change Password');
328 /* navigation tabs */
329 $js_messages['strMore'] = __('More');
331 /* update */
332 $js_messages['strNewerVersion'] = __('A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is %s, released on %s.');
333 /* l10n: Latest available phpMyAdmin version */
334 $js_messages['strLatestAvailable'] = __(', latest stable version:');
335 $js_messages['strUpToDate'] = __('up to date');
338 echo "var PMA_messages = new Array();\n";
339 foreach ($js_messages as $name => $js_message) {
340 PMA_printJsValue("PMA_messages['" . $name . "']", $js_message);
343 /* Calendar */
344 echo "var themeCalendarImage = '" . $GLOBALS['pmaThemeImage'] . 'b_calendar.png' . "';\n";
346 /* Image path */
347 echo "var pmaThemeImage = '" . $GLOBALS['pmaThemeImage'] . "';\n";
349 /* Version */
350 echo "var pmaversion = '" . PMA_VERSION . "';\n";
352 echo "if ($.datepicker) {\n";
353 /* l10n: Display text for calendar close link */
354 PMA_printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
355 /* l10n: Display text for previous month link in calendar */
356 PMA_printJsValue(
357 "$.datepicker.regional['']['prevText']",
358 _pgettext('Previous month', 'Prev')
360 /* l10n: Display text for next month link in calendar */
361 PMA_printJsValue(
362 "$.datepicker.regional['']['nextText']",
363 _pgettext('Next month', 'Next')
365 /* l10n: Display text for current month link in calendar */
366 PMA_printJsValue("$.datepicker.regional['']['currentText']", __('Today'));
367 PMA_printJsValue("$.datepicker.regional['']['monthNames']",
368 array(
369 __('January'),
370 __('February'),
371 __('March'),
372 __('April'),
373 __('May'),
374 __('June'),
375 __('July'),
376 __('August'),
377 __('September'),
378 __('October'),
379 __('November'),
380 __('December')));
381 PMA_printJsValue("$.datepicker.regional['']['monthNamesShort']",
382 array(
383 /* l10n: Short month name */
384 __('Jan'),
385 /* l10n: Short month name */
386 __('Feb'),
387 /* l10n: Short month name */
388 __('Mar'),
389 /* l10n: Short month name */
390 __('Apr'),
391 /* l10n: Short month name */
392 _pgettext('Short month name', 'May'),
393 /* l10n: Short month name */
394 __('Jun'),
395 /* l10n: Short month name */
396 __('Jul'),
397 /* l10n: Short month name */
398 __('Aug'),
399 /* l10n: Short month name */
400 __('Sep'),
401 /* l10n: Short month name */
402 __('Oct'),
403 /* l10n: Short month name */
404 __('Nov'),
405 /* l10n: Short month name */
406 __('Dec')));
407 PMA_printJsValue("$.datepicker.regional['']['dayNames']",
408 array(
409 __('Sunday'),
410 __('Monday'),
411 __('Tuesday'),
412 __('Wednesday'),
413 __('Thursday'),
414 __('Friday'),
415 __('Saturday')));
416 PMA_printJsValue("$.datepicker.regional['']['dayNamesShort']",
417 array(
418 /* l10n: Short week day name */
419 __('Sun'),
420 /* l10n: Short week day name */
421 __('Mon'),
422 /* l10n: Short week day name */
423 __('Tue'),
424 /* l10n: Short week day name */
425 __('Wed'),
426 /* l10n: Short week day name */
427 __('Thu'),
428 /* l10n: Short week day name */
429 __('Fri'),
430 /* l10n: Short week day name */
431 __('Sat')));
432 PMA_printJsValue("$.datepicker.regional['']['dayNamesMin']",
433 array(
434 /* l10n: Minimal week day name */
435 __('Su'),
436 /* l10n: Minimal week day name */
437 __('Mo'),
438 /* l10n: Minimal week day name */
439 __('Tu'),
440 /* l10n: Minimal week day name */
441 __('We'),
442 /* l10n: Minimal week day name */
443 __('Th'),
444 /* l10n: Minimal week day name */
445 __('Fr'),
446 /* l10n: Minimal week day name */
447 __('Sa')));
448 /* l10n: Column header for week of the year in calendar */
449 PMA_printJsValue("$.datepicker.regional['']['weekHeader']", __('Wk'));
451 PMA_printJsValue("$.datepicker.regional['']['hourText']", __('Hour'));
452 PMA_printJsValue("$.datepicker.regional['']['minuteText']", __('Minute'));
453 PMA_printJsValue("$.datepicker.regional['']['secondText']", __('Second'));
455 $.extend($.datepicker._defaults, $.datepicker.regional['']);
456 } /* if ($.datepicker) */