2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Exporting of translated messages from PHP to Javascript
9 if (!defined('TESTSUITE')) {
13 header('Content-Type: text/javascript; charset=UTF-8');
15 // Cache output in client - the nocache query parameter makes sure that this
16 // file is reloaded when config changes
17 header('Expires: ' . gmdate('D, d M Y H:i:s', time() +
3600) . ' GMT');
19 // Avoid loading the full common.inc.php because this would add many
20 // non-js-compatible stuff like DOCTYPE
21 define('PMA_MINIMUM_COMMON', true);
22 define('PMA_PATH_TO_BASEDIR', '../');
23 require_once './libraries/common.inc.php';
24 // Close session early as we won't write anything there
25 session_write_close();
28 // But this one is needed for Sanitize::escapeJsString()
29 use PMA\libraries\Sanitize
;
32 $buffer = PMA\libraries\OutputBuffering
::getInstance();
34 if (!defined('TESTSUITE')) {
35 register_shutdown_function(
37 echo PMA\libraries\OutputBuffering
::getInstance()->getContents();
42 $js_messages['strNoDropDatabases'] = __('"DROP DATABASE" statements are disabled.');
43 if ($cfg['AllowUserDropDatabase']) {
44 $js_messages['strNoDropDatabases'] = '';
47 /* For confirmations */
48 $js_messages['strConfirm'] = __('Confirm');
49 $js_messages['strDoYouReally'] = __('Do you really want to execute "%s"?');
50 $js_messages['strDropDatabaseStrongWarning']
51 = __('You are about to DESTROY a complete database!');
52 $js_messages['strDropTableStrongWarning']
53 = __('You are about to DESTROY a complete table!');
54 $js_messages['strTruncateTableStrongWarning']
55 = __('You are about to TRUNCATE a complete table!');
56 $js_messages['strDeleteTrackingData'] = __('Delete tracking data for this table?');
57 $js_messages['strDeleteTrackingDataMultiple']
58 = __('Delete tracking data for these tables?');
59 $js_messages['strDeleteTrackingVersion']
60 = __('Delete tracking data for this version?');
61 $js_messages['strDeleteTrackingVersionMultiple']
62 = __('Delete tracking data for these versions?');
63 $js_messages['strDeletingTrackingEntry'] = __('Delete entry from tracking report?');
64 $js_messages['strDeletingTrackingData'] = __('Deleting tracking data');
65 $js_messages['strDroppingPrimaryKeyIndex'] = __('Dropping Primary Key/Index');
66 $js_messages['strDroppingForeignKey'] = __('Dropping Foreign key.');
67 $js_messages['strOperationTakesLongTime']
68 = __('This operation could take a long time. Proceed anyway?');
69 $js_messages['strDropUserGroupWarning']
70 = __('Do you really want to delete user group "%s"?');
71 $js_messages['strConfirmDeleteQBESearch']
72 = __('Do you really want to delete the search "%s"?');
73 $js_messages['strConfirmNavigation']
74 = __('You have unsaved changes; are you sure you want to leave this page?');
75 $js_messages['strDropUserWarning']
76 = __('Do you really want to revoke the selected user(s) ?');
77 $js_messages['strDeleteCentralColumnWarning']
78 = __('Do you really want to delete this central column?');
79 $js_messages['strDropRTEitems']
80 = __('Do you really want to delete the selected items?');
81 $js_messages['strDropPartitionWarning'] = __(
82 'Do you really want to DROP the selected partition(s)? This will also DELETE ' .
83 'the data related to the selected partition(s)!'
85 $js_messages['strTruncatePartitionWarning']
86 = __('Do you really want to TRUNCATE the selected partition(s)?');
87 $js_messages['strRemovePartitioningWarning']
88 = __('Do you really want to remove partitioning?');
89 $js_messages['strResetSlaveWarning'] = __('Do you really want to RESET SLAVE?');
90 $js_messages['strChangeColumnCollation'] = __(
91 'This operation will attempt to convert your data to the new collation. In '
92 . 'rare cases, especially where a character doesn\'t exist in the new '
93 . 'collation, this process could cause the data to appear incorrectly under '
94 . 'the new collation; in this case we suggest you revert to the original '
95 . 'collation and refer to the tips at '
97 . '<a href="%s" target="garbled_data_wiki">' . __('Garbled Data') . '</a>.'
99 . __('Are you sure you wish to change the collation and convert the data?');
100 $js_messages['strChangeAllColumnCollationsWarning'] = __(
101 'Through this operation, MySQL attempts to map the data values between '
102 . 'collations. If the character sets are incompatible, there may be data loss '
103 . 'and this lost data may <b>NOT</b> be recoverable simply by changing back the '
104 . 'column collation(s). <b>To convert existing data, it is suggested to use the '
105 . 'column(s) editing feature (the "Change" Link) on the table structure page. '
110 'Are you sure you wish to change all the column collations and convert the data?'
113 /* For modal dialog buttons */
114 $js_messages['strSaveAndClose'] = __('Save & close');
115 $js_messages['strReset'] = __('Reset');
116 $js_messages['strResetAll'] = __('Reset all');
119 $js_messages['strFormEmpty'] = __('Missing value in the form!');
120 $js_messages['strRadioUnchecked'] = __('Select at least one of the options!');
121 $js_messages['strEnterValidNumber'] = __('Please enter a valid number!');
122 $js_messages['strEnterValidLength'] = __('Please enter a valid length!');
123 $js_messages['strAddIndex'] = __('Add index');
124 $js_messages['strEditIndex'] = __('Edit index');
125 $js_messages['strAddToIndex'] = __('Add %s column(s) to index');
126 $js_messages['strCreateSingleColumnIndex'] = __('Create single-column index');
127 $js_messages['strCreateCompositeIndex'] = __('Create composite index');
128 $js_messages['strCompositeWith'] = __('Composite with:');
129 $js_messages['strMissingColumn'] = __('Please select column(s) for the index.');
131 /* For Create Table */
132 $js_messages['strLeastColumnError'] = __('You have to add at least one column.');
135 $js_messages['strPreviewSQL'] = __('Preview SQL');
137 /* For Simulate DML*/
138 $js_messages['strSimulateDML'] = __('Simulate query');
139 $js_messages['strMatchedRows'] = __('Matched rows:');
140 $js_messages['strSQLQuery'] = __('SQL query:');
143 /* l10n: Default label for the y-Axis of Charts */
144 $js_messages['strYValues'] = __('Y values');
146 /* For server_privileges.js */
147 $js_messages['strHostEmpty'] = __('The host name is empty!');
148 $js_messages['strUserEmpty'] = __('The user name is empty!');
149 $js_messages['strPasswordEmpty'] = __('The password is empty!');
150 $js_messages['strPasswordNotSame'] = __('The passwords aren\'t the same!');
151 $js_messages['strRemovingSelectedUsers'] = __('Removing Selected Users');
152 $js_messages['strClose'] = __('Close');
155 $js_messages['strTemplateCreated'] = __('Template was created.');
156 $js_messages['strTemplateLoaded'] = __('Template was loaded.');
157 $js_messages['strTemplateUpdated'] = __('Template was updated.');
158 $js_messages['strTemplateDeleted'] = __('Template was deleted.');
160 /* l10n: Other, small valued, queries */
161 $js_messages['strOther'] = __('Other');
162 /* l10n: Thousands separator */
163 $js_messages['strThousandsSeparator'] = __(',');
164 /* l10n: Decimal separator */
165 $js_messages['strDecimalSeparator'] = __('.');
167 $js_messages['strChartConnectionsTitle'] = __('Connections / Processes');
169 /* server status monitor */
170 $js_messages['strIncompatibleMonitorConfig']
171 = __('Local monitor configuration incompatible!');
172 $js_messages['strIncompatibleMonitorConfigDescription'] = __(
173 'The chart arrangement configuration in your browsers local storage is not '
174 . 'compatible anymore to the newer version of the monitor dialog. It is very '
175 . 'likely that your current configuration will not work anymore. Please reset '
176 . 'your configuration to default in the <i>Settings</i> menu.'
179 $js_messages['strQueryCacheEfficiency'] = __('Query cache efficiency');
180 $js_messages['strQueryCacheUsage'] = __('Query cache usage');
181 $js_messages['strQueryCacheUsed'] = __('Query cache used');
183 $js_messages['strSystemCPUUsage'] = __('System CPU usage');
184 $js_messages['strSystemMemory'] = __('System memory');
185 $js_messages['strSystemSwap'] = __('System swap');
187 $js_messages['strAverageLoad'] = __('Average load');
188 $js_messages['strTotalMemory'] = __('Total memory');
189 $js_messages['strCachedMemory'] = __('Cached memory');
190 $js_messages['strBufferedMemory'] = __('Buffered memory');
191 $js_messages['strFreeMemory'] = __('Free memory');
192 $js_messages['strUsedMemory'] = __('Used memory');
194 $js_messages['strTotalSwap'] = __('Total swap');
195 $js_messages['strCachedSwap'] = __('Cached swap');
196 $js_messages['strUsedSwap'] = __('Used swap');
197 $js_messages['strFreeSwap'] = __('Free swap');
199 $js_messages['strBytesSent'] = __('Bytes sent');
200 $js_messages['strBytesReceived'] = __('Bytes received');
201 $js_messages['strConnections'] = __('Connections');
202 $js_messages['strProcesses'] = __('Processes');
205 $js_messages['strB'] = __('B');
206 $js_messages['strKiB'] = __('KiB');
207 $js_messages['strMiB'] = __('MiB');
208 $js_messages['strGiB'] = __('GiB');
209 $js_messages['strTiB'] = __('TiB');
210 $js_messages['strPiB'] = __('PiB');
211 $js_messages['strEiB'] = __('EiB');
212 $js_messages['strNTables'] = __('%d table(s)');
214 /* l10n: Questions is the name of a MySQL Status variable */
215 $js_messages['strQuestions'] = __('Questions');
216 $js_messages['strTraffic'] = __('Traffic');
217 $js_messages['strSettings'] = __('Settings');
218 $js_messages['strAddChart'] = __('Add chart to grid');
219 $js_messages['strClose'] = __('Close');
220 $js_messages['strAddOneSeriesWarning']
221 = __('Please add at least one variable to the series!');
222 $js_messages['strNone'] = __('None');
223 $js_messages['strResumeMonitor'] = __('Resume monitor');
224 $js_messages['strPauseMonitor'] = __('Pause monitor');
225 $js_messages['strStartRefresh'] = __('Start auto refresh');
226 $js_messages['strStopRefresh'] = __('Stop auto refresh');
227 /* Monitor: Instructions Dialog */
228 $js_messages['strBothLogOn'] = __('general_log and slow_query_log are enabled.');
229 $js_messages['strGenLogOn'] = __('general_log is enabled.');
230 $js_messages['strSlowLogOn'] = __('slow_query_log is enabled.');
231 $js_messages['strBothLogOff'] = __('slow_query_log and general_log are disabled.');
232 $js_messages['strLogOutNotTable'] = __('log_output is not set to TABLE.');
233 $js_messages['strLogOutIsTable'] = __('log_output is set to TABLE.');
234 $js_messages['strSmallerLongQueryTimeAdvice'] = __(
235 'slow_query_log is enabled, but the server logs only queries that take longer '
236 . 'than %d seconds. It is advisable to set this long_query_time 0-2 seconds, '
237 . 'depending on your system.'
239 $js_messages['strLongQueryTimeSet'] = __('long_query_time is set to %d second(s).');
240 $js_messages['strSettingsAppliedGlobal'] = __(
241 'Following settings will be applied globally and reset to default on server '
244 /* l10n: %s is FILE or TABLE */
245 $js_messages['strSetLogOutput'] = __('Set log_output to %s');
246 /* l10n: Enable in this context means setting a status variable to ON */
247 $js_messages['strEnableVar'] = __('Enable %s');
248 /* l10n: Disable in this context means setting a status variable to OFF */
249 $js_messages['strDisableVar'] = __('Disable %s');
250 /* l10n: %d seconds */
251 $js_messages['setSetLongQueryTime'] = __('Set long_query_time to %d seconds.');
252 $js_messages['strNoSuperUser'] = __(
253 'You can\'t change these variables. Please log in as root or contact'
254 . ' your database administrator.'
256 $js_messages['strChangeSettings'] = __('Change settings');
257 $js_messages['strCurrentSettings'] = __('Current settings');
259 $js_messages['strChartTitle'] = __('Chart title');
260 /* l10n: As in differential values */
261 $js_messages['strDifferential'] = __('Differential');
262 $js_messages['strDividedBy'] = __('Divided by %s');
263 $js_messages['strUnit'] = __('Unit');
265 $js_messages['strFromSlowLog'] = __('From slow log');
266 $js_messages['strFromGeneralLog'] = __('From general log');
267 $js_messages['strServerLogError'] = __(
268 'The database name is not known for this query in the server\'s logs.'
270 $js_messages['strAnalysingLogsTitle'] = __('Analysing logs');
271 $js_messages['strAnalysingLogs']
272 = __('Analysing & loading logs. This may take a while.');
273 $js_messages['strCancelRequest'] = __('Cancel request');
274 $js_messages['strCountColumnExplanation'] = __(
275 'This column shows the amount of identical queries that are grouped together. '
276 . 'However only the SQL query itself has been used as a grouping criteria, so '
277 . 'the other attributes of queries, such as start time, may differ.'
279 $js_messages['strMoreCountColumnExplanation'] = __(
280 'Since grouping of INSERTs queries has been selected, INSERT queries into the '
281 . 'same table are also being grouped together, disregarding of the inserted '
284 $js_messages['strLogDataLoaded']
285 = __('Log data loaded. Queries executed in this time span:');
287 $js_messages['strJumpToTable'] = __('Jump to Log table');
288 $js_messages['strNoDataFoundTitle'] = __('No data found');
289 $js_messages['strNoDataFound']
290 = __('Log analysed, but no data found in this time span.');
292 $js_messages['strAnalyzing'] = __('Analyzing…');
293 $js_messages['strExplainOutput'] = __('Explain output');
294 $js_messages['strStatus'] = __('Status');
295 $js_messages['strTime'] = __('Time');
296 $js_messages['strTotalTime'] = __('Total time:');
297 $js_messages['strProfilingResults'] = __('Profiling results');
298 $js_messages['strTable'] = _pgettext('Display format', 'Table');
299 $js_messages['strChart'] = __('Chart');
301 /* l10n: A collection of available filters */
302 $js_messages['strFiltersForLogTable'] = __('Log table filter options');
303 /* l10n: Filter as in "Start Filtering" */
304 $js_messages['strFilter'] = __('Filter');
305 $js_messages['strFilterByWordRegexp'] = __('Filter queries by word/regexp:');
306 $js_messages['strIgnoreWhereAndGroup']
307 = __('Group queries, ignoring variable data in WHERE clauses');
308 $js_messages['strSumRows'] = __('Sum of grouped rows:');
309 $js_messages['strTotal'] = __('Total:');
311 $js_messages['strLoadingLogs'] = __('Loading logs');
312 $js_messages['strRefreshFailed'] = __('Monitor refresh failed');
313 $js_messages['strInvalidResponseExplanation'] = __(
314 'While requesting new chart data the server returned an invalid response. This '
315 . 'is most likely because your session expired. Reloading the page and '
316 . 'reentering your credentials should help.'
318 $js_messages['strReloadPage'] = __('Reload page');
320 $js_messages['strAffectedRows'] = __('Affected rows:');
322 $js_messages['strFailedParsingConfig'] = __(
323 'Failed parsing config file. It doesn\'t seem to be valid JSON code.'
325 $js_messages['strFailedBuildingGrid'] = __(
326 'Failed building chart grid with imported config. Resetting to default config…'
328 $js_messages['strImport'] = __('Import');
329 $js_messages['strImportDialogTitle'] = __('Import monitor configuration');
330 $js_messages['strImportDialogMessage']
331 = __('Please select the file you want to import.');
332 $js_messages['strNoImportFile'] = __('No files available on server for import!');
334 $js_messages['strAnalyzeQuery'] = __('Analyse query');
336 /* Server status advisor */
338 $js_messages['strAdvisorSystem'] = __('Advisor system');
339 $js_messages['strPerformanceIssues'] = __('Possible performance issues');
340 $js_messages['strIssuse'] = __('Issue');
341 $js_messages['strRecommendation'] = __('Recommendation');
342 $js_messages['strRuleDetails'] = __('Rule details');
343 $js_messages['strJustification'] = __('Justification');
344 $js_messages['strFormula'] = __('Used variable / formula');
345 $js_messages['strTest'] = __('Test');
347 /* For query editor */
348 $js_messages['strFormatting'] = __('Formatting SQL…');
349 $js_messages['strNoParam'] = __('No parameters found!');
351 /* For inline query editing */
352 $js_messages['strGo'] = __('Go');
353 $js_messages['strCancel'] = __('Cancel');
355 /* For page-related settings */
356 $js_messages['strPageSettings'] = __('Page-related settings');
357 $js_messages['strApply'] = __('Apply');
359 /* For Ajax Notifications */
360 $js_messages['strLoading'] = __('Loading…');
361 $js_messages['strAbortedRequest'] = __('Request aborted!!');
362 $js_messages['strProcessingRequest'] = __('Processing request');
363 $js_messages['strRequestFailed'] = __('Request failed!!');
364 $js_messages['strErrorProcessingRequest'] = __('Error in processing request');
365 $js_messages['strErrorCode'] = __('Error code: %s');
366 $js_messages['strErrorText'] = __('Error text: %s');
367 $js_messages['strNoDatabasesSelected'] = __('No databases selected.');
368 $js_messages['strDroppingColumn'] = __('Dropping column');
369 $js_messages['strAddingPrimaryKey'] = __('Adding primary key');
370 $js_messages['strOK'] = __('OK');
371 $js_messages['strDismiss'] = __('Click to dismiss this notification');
373 /* For db_operations.js */
374 $js_messages['strRenamingDatabases'] = __('Renaming databases');
375 $js_messages['strCopyingDatabase'] = __('Copying database');
376 $js_messages['strChangingCharset'] = __('Changing charset');
377 $js_messages['strNo'] = __('No');
379 /* For Foreign key checks */
380 $js_messages['strForeignKeyCheck'] = __('Enable foreign key checks');
382 /* For db_stucture.js */
383 $js_messages['strErrorRealRowCount'] = __('Failed to get real row count.');
385 /* For db_search.js */
386 $js_messages['strSearching'] = __('Searching');
387 $js_messages['strHideSearchResults'] = __('Hide search results');
388 $js_messages['strShowSearchResults'] = __('Show search results');
389 $js_messages['strBrowsing'] = __('Browsing');
390 $js_messages['strDeleting'] = __('Deleting');
392 /* For db_routines.js */
393 $js_messages['MissingReturn']
394 = __('The definition of a stored function must contain a RETURN statement!');
395 $js_messages['strExport'] = __('Export');
397 /* For ENUM/SET editor*/
398 $js_messages['enum_editor'] = __('ENUM/SET editor');
399 $js_messages['enum_columnVals'] =__('Values for column %s');
400 $js_messages['enum_newColumnVals'] = __('Values for a new column');
401 $js_messages['enum_hint'] =__('Enter each value in a separate field.');
402 $js_messages['enum_addValue'] =__('Add %d value(s)');
405 $js_messages['strImportCSV'] = __(
406 'Note: If the file contains multiple tables, they will be combined into one.'
410 $js_messages['strHideQueryBox'] = __('Hide query box');
411 $js_messages['strShowQueryBox'] = __('Show query box');
412 $js_messages['strEdit'] = __('Edit');
413 $js_messages['strDelete'] = __('Delete');
414 $js_messages['strNotValidRowNumber'] = __('%d is not valid row number.');
415 $js_messages['strBrowseForeignValues'] = __('Browse foreign values');
416 $js_messages['strNoAutoSavedQuery'] = __('No auto-saved query');
417 $js_messages['strBookmarkVariable'] = __('Variable %d:');
419 /* For Central list of columns */
420 $js_messages['pickColumn'] = __('Pick');
421 $js_messages['pickColumnTitle'] = __('Column selector');
422 $js_messages['searchList'] = __('Search this list');
423 $js_messages['strEmptyCentralList'] = __(
424 'No columns in the central list. Make sure the Central columns list for '
425 . 'database %s has columns that are not present in the current table.'
427 $js_messages['seeMore'] = __('See more');
428 $js_messages['confirmTitle'] = __('Are you sure?');
429 $js_messages['makeConsistentMessage'] = __(
430 'This action may change some of the columns definition.<br/>Are you sure you '
431 . 'want to continue?'
433 $js_messages['strContinue'] = __('Continue');
435 /** For normalization */
436 $js_messages['strAddPrimaryKey'] = __('Add primary key');
437 $js_messages['strPrimaryKeyAdded'] = __('Primary key added.');
438 $js_messages['strToNextStep'] = __('Taking you to next step…');
439 $js_messages['strFinishMsg']
440 = __("The first step of normalization is complete for table '%s'.");
441 $js_messages['strEndStep'] = __("End of step");
442 $js_messages['str2NFNormalization'] = __('Second step of normalization (2NF)');
443 $js_messages['strDone'] = __('Done');
444 $js_messages['strConfirmPd'] = __('Confirm partial dependencies');
445 $js_messages['strSelectedPd'] = __('Selected partial dependencies are as follows:');
446 $js_messages['strPdHintNote'] = __(
447 'Note: a, b -> d,f implies values of columns a and b combined together can '
448 . 'determine values of column d and column f.'
450 $js_messages['strNoPdSelected'] = __('No partial dependencies selected!');
451 $js_messages['strBack'] = __('Back');
452 $js_messages['strShowPossiblePd']
453 = __('Show me the possible partial dependencies based on data in the table');
454 $js_messages['strHidePd'] = __('Hide partial dependencies list');
455 $js_messages['strWaitForPd'] = __(
456 'Sit tight! It may take few seconds depending on data size and column count of '
459 $js_messages['strStep'] = __('Step');
460 $js_messages['strMoveRepeatingGroup']
461 = '<ol><b>' . __('The following actions will be performed:') . '</b>'
462 . '<li>' . __('DROP columns %s from the table %s') . '</li>'
463 . '<li>' . __('Create the following table') . '</li>';
464 $js_messages['strNewTablePlaceholder'] = 'Enter new table name';
465 $js_messages['strNewColumnPlaceholder'] = 'Enter column name';
466 $js_messages['str3NFNormalization'] = __('Third step of normalization (3NF)');
467 $js_messages['strConfirmTd'] = __('Confirm transitive dependencies');
468 $js_messages['strSelectedTd'] = __('Selected dependencies are as follows:');
469 $js_messages['strNoTdSelected'] = __('No dependencies selected!');
471 /* For server_variables.js */
472 $js_messages['strSave'] = __('Save');
474 /* For tbl_select.js */
475 $js_messages['strHideSearchCriteria'] = __('Hide search criteria');
476 $js_messages['strShowSearchCriteria'] = __('Show search criteria');
477 $js_messages['strRangeSearch'] = __('Range search');
478 $js_messages['strColumnMax'] = __('Column maximum:');
479 $js_messages['strColumnMin'] = __('Column minimum:');
480 $js_messages['strMinValue'] = __('Minimum value:');
481 $js_messages['strMaxValue'] = __('Maximum value:');
483 /* For tbl_find_replace.js */
484 $js_messages['strHideFindNReplaceCriteria'] = __('Hide find and replace criteria');
485 $js_messages['strShowFindNReplaceCriteria'] = __('Show find and replace criteria');
487 /* For tbl_zoom_plot_jqplot.js */
488 $js_messages['strDisplayHelp'] = '<ul><li>'
489 . __('Each point represents a data row.')
491 . __('Hovering over a point will show its label.')
493 . __('To zoom in, select a section of the plot with the mouse.')
495 . __('Click reset zoom button to come back to original state.')
497 . __('Click a data point to view and possibly edit the data row.')
499 . __('The plot can be resized by dragging it along the bottom right corner.')
501 $js_messages['strHelpTitle'] = 'Zoom search instructions';
502 $js_messages['strInputNull'] = '<strong>' . __('Select two columns') . '</strong>';
503 $js_messages['strSameInputs'] = '<strong>'
504 . __('Select two different columns')
506 $js_messages['strDataPointContent'] = __('Data point content');
508 /* For tbl_change.js */
509 $js_messages['strIgnore'] = __('Ignore');
510 $js_messages['strCopy'] = __('Copy');
511 $js_messages['strX'] = __('X');
512 $js_messages['strY'] = __('Y');
513 $js_messages['strPoint'] = __('Point');
514 $js_messages['strPointN'] = __('Point %d');
515 $js_messages['strLineString'] = __('Linestring');
516 $js_messages['strPolygon'] = __('Polygon');
517 $js_messages['strGeometry'] = __('Geometry');
518 $js_messages['strInnerRing'] = __('Inner ring');
519 $js_messages['strOuterRing'] = __('Outer ring');
520 $js_messages['strAddPoint'] = __('Add a point');
521 $js_messages['strAddInnerRing'] = __('Add an inner ring');
522 $js_messages['strYes'] = __('Yes');
523 $js_messages['strCopyEncryptionKey'] = __('Do you want to copy encryption key?');
524 $js_messages['strEncryptionKey'] = __('Encryption key');
526 /* For Lock symbol Tooltip */
527 $js_messages['strLockToolTip'] = __(
528 'Indicates that you have made changes to this page;'
529 . ' you will be prompted for confirmation before abandoning changes'
532 /* Designer (js/pmd/move.js) */
533 $js_messages['strSelectReferencedKey'] = __('Select referenced key');
534 $js_messages['strSelectForeignKey'] = __('Select Foreign Key');
535 $js_messages['strPleaseSelectPrimaryOrUniqueKey']
536 = __('Please select the primary key or a unique key!');
537 $js_messages['strChangeDisplay'] = __('Choose column to display');
538 $js_messages['strLeavingDesigner'] = __(
539 'You haven\'t saved the changes in the layout. They will be lost if you'
540 . ' don\'t save them. Do you want to continue?'
542 $js_messages['strPageName'] = __('Page name');
543 $js_messages['strSavePage'] = __('Save page');
544 $js_messages['strSavePageAs'] = __('Save page as');
545 $js_messages['strOpenPage'] = __('Open page');
546 $js_messages['strDeletePage'] = __('Delete page');
547 $js_messages['strUntitled'] = __('Untitled');
548 $js_messages['strSelectPage'] = __('Please select a page to continue');
549 $js_messages['strEnterValidPageName'] = __('Please enter a valid page name');
550 $js_messages['strLeavingPage']
551 = __('Do you want to save the changes to the current page?');
552 $js_messages['strSuccessfulPageDelete'] = __('Successfully deleted the page');
553 $js_messages['strExportRelationalSchema'] = __('Export relational schema');
554 $js_messages['strModificationSaved'] = __('Modifications have been saved');
556 /* Visual query builder (js/pmd/move.js) */
557 $js_messages['strAddOption'] = __('Add an option for column "%s".');
558 $js_messages['strObjectsCreated'] = __('%d object(s) created.');
559 $js_messages['strSubmit'] = __('Submit');
561 /* For makegrid.js (column reordering, show/hide column, grid editing) */
562 $js_messages['strCellEditHint'] = __('Press escape to cancel editing.');
563 $js_messages['strSaveCellWarning'] = __(
564 'You have edited some data and they have not been saved. Are you sure you want '
565 . 'to leave this page before saving the data?'
567 $js_messages['strColOrderHint'] = __('Drag to reorder.');
568 $js_messages['strSortHint'] = __('Click to sort results by this column.');
569 $js_messages['strMultiSortHint'] = __(
570 'Shift+Click to add this column to ORDER BY clause or to toggle ASC/DESC.'
571 . '<br />- Ctrl+Click or Alt+Click (Mac: Shift+Option+Click) to remove column '
572 . 'from ORDER BY clause'
574 $js_messages['strColMarkHint'] = __('Click to mark/unmark.');
575 $js_messages['strColNameCopyHint'] = __('Double-click to copy column name.');
576 $js_messages['strColVisibHint'] = __(
577 'Click the drop-down arrow<br />to toggle column\'s visibility.'
579 $js_messages['strShowAllCol'] = __('Show all');
580 $js_messages['strAlertNonUnique'] = __(
581 'This table does not contain a unique column. Features related to the grid '
582 . 'edit, checkbox, Edit, Copy and Delete links may not work after saving.'
584 $js_messages['strEnterValidHex']
585 = __('Please enter a valid hexadecimal string. Valid characters are 0-9, A-F.');
586 $js_messages['strShowAllRowsWarning'] = __(
587 'Do you really want to see all of the rows? For a big table this could crash '
590 $js_messages['strOriginalLength'] = __('Original length');
592 /** Drag & Drop sql import messages */
593 $js_messages['dropImportMessageCancel'] = __('cancel');
594 $js_messages['dropImportMessageAborted'] = __('Aborted');
595 $js_messages['dropImportMessageFailed'] = __('Failed');
596 $js_messages['dropImportMessageSuccess'] = __('Success');
597 $js_messages['dropImportImportResultHeader'] = __('Import status');
598 $js_messages['dropImportDropFiles'] = __('Drop files here');
599 $js_messages['dropImportSelectDB'] = __('Select database first');
602 $js_messages['print'] = __('Print');
603 $js_messages['back'] = __('Back');
605 // this approach does not work when the parameter is changed via user prefs
606 switch ($GLOBALS['cfg']['GridEditing']) {
608 $js_messages['strGridEditFeatureHint'] = __(
609 'You can also edit most values<br />by double-clicking directly on them.'
613 $js_messages['strGridEditFeatureHint'] = __(
614 'You can also edit most values<br />by clicking directly on them.'
620 $js_messages['strGoToLink'] = __('Go to link:');
621 $js_messages['strColNameCopyTitle'] = __('Copy column name.');
622 $js_messages['strColNameCopyText']
623 = __('Right-click the column name to copy it to your clipboard.');
625 /* password generation */
626 $js_messages['strGeneratePassword'] = __('Generate password');
627 $js_messages['strGenerate'] = __('Generate');
628 $js_messages['strChangePassword'] = __('Change password');
630 /* navigation tabs */
631 $js_messages['strMore'] = __('More');
633 /* navigation panel */
634 $js_messages['strShowPanel'] = __('Show panel');
635 $js_messages['strHidePanel'] = __('Hide panel');
636 $js_messages['strUnhideNavItem'] = __('Show hidden navigation tree items.');
637 $js_messages['linkWithMain'] = __('Link with main panel');
638 $js_messages['unlinkWithMain'] = __('Unlink from main panel');
641 $js_messages['strInvalidPage']
642 = __('The requested page was not found in the history, it may have expired.');
645 $js_messages['strNewerVersion'] = __(
646 'A newer version of phpMyAdmin is available and you should consider upgrading. '
647 . 'The newest version is %s, released on %s.'
649 /* l10n: Latest available phpMyAdmin version */
650 $js_messages['strLatestAvailable'] = __(', latest stable version:');
651 $js_messages['strUpToDate'] = __('up to date');
653 $js_messages['strCreateView'] = __('Create view');
655 /* Error Reporting */
656 $js_messages['strSendErrorReport'] = __("Send error report");
657 $js_messages['strSubmitErrorReport'] = __("Submit error report");
658 $js_messages['strErrorOccurred'] = __(
659 "A fatal JavaScript error has occurred. Would you like to send an error report?"
661 $js_messages['strChangeReportSettings'] = __("Change report settings");
662 $js_messages['strShowReportDetails'] = __("Show report details");
663 $js_messages['strIgnore'] = __("Ignore");
664 $js_messages['strTimeOutError'] = __(
665 "Your export is incomplete, due to a low execution time limit at the PHP level!"
668 $js_messages['strTooManyInputs'] = __(
669 "Warning: a form on this page has more than %d fields. On submission, "
670 . "some of the fields might be ignored, due to PHP's "
671 . "max_input_vars configuration."
674 $js_messages['phpErrorsFound'] = '<div class="error">'
675 . __('Some errors have been detected on the server!')
677 . __('Please look at the bottom of this window.')
679 . '<input id="pma_ignore_errors_popup" type="submit" value="'
681 . '" class="floatright" style="margin-top: 20px;">'
682 . '<input id="pma_ignore_all_errors_popup" type="submit" value="'
684 . '" class="floatright" style="margin-top: 20px;">'
687 $js_messages['phpErrorsBeingSubmitted'] = '<div class="error">'
688 . __('Some errors have been detected on the server!')
691 'As per your settings, they are being submitted currently, please be '
696 . ($_SESSION['PMA_Theme']->getImgPath('ajax_clock_small.gif'))
697 . '" width="16" height="16" alt="ajax clock"/>'
701 $js_messages['strConsoleRequeryConfirm'] = __('Execute this query again?');
702 $js_messages['strConsoleDeleteBookmarkConfirm']
703 = __('Do you really want to delete this bookmark?');
704 $js_messages['strConsoleDebugError']
705 = __('Some error occurred while getting SQL debug info.');
706 $js_messages['strConsoleDebugSummary']
707 = __('%s queries executed %s times in %s seconds.');
708 $js_messages['strConsoleDebugArgsSummary'] = __('%s argument(s) passed');
709 $js_messages['strConsoleDebugShowArgs'] = __('Show arguments');
710 $js_messages['strConsoleDebugHideArgs'] = __('Hide arguments');
711 $js_messages['strConsoleDebugTimeTaken'] = __('Time taken:');
712 $js_messages['strNoLocalStorage'] = __('There was a problem accessing your browser storage, some features may not work properly for you. It is likely that the browser doesn\'t support storage or the quota limit has been reached. In Firefox, corrupted storage can also cause such a problem, clearing your "Offline Website Data" might help. In Safari, such problem is commonly caused by "Private Mode Browsing".');
713 // For modals in db_structure.php
714 $js_messages['strCopyTablesTo'] = __('Copy tables to');
715 $js_messages['strAddPrefix'] = __('Add table prefix');
716 $js_messages['strReplacePrefix'] = __('Replace table with prefix');
717 $js_messages['strCopyPrefix'] = __('Copy table with prefix');
719 echo "var PMA_messages = new Array();\n";
720 foreach ($js_messages as $name => $js_message) {
721 Sanitize
::printJsValue("PMA_messages['" . $name . "']", $js_message);
725 echo "var themeCalendarImage = '" , $GLOBALS['pmaThemeImage']
726 , 'b_calendar.png' , "';\n";
729 echo "var pmaThemeImage = '" , $GLOBALS['pmaThemeImage'] , "';\n";
731 echo "var mysql_doc_template = '" , PMA\libraries\Util
::getMySQLDocuURL('%s')
734 //Max input vars allowed by PHP.
735 $maxInputVars = ini_get('max_input_vars');
736 echo 'var maxInputVars = '
737 , (false === $maxInputVars ||
'' == $maxInputVars ?
'false' : (int)$maxInputVars)
740 echo "if ($.datepicker) {\n";
741 /* l10n: Display text for calendar close link */
742 Sanitize
::printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
743 /* l10n: Display text for previous month link in calendar */
744 Sanitize
::printJsValue(
745 "$.datepicker.regional['']['prevText']",
746 _pgettext('Previous month', 'Prev')
748 /* l10n: Display text for next month link in calendar */
749 Sanitize
::printJsValue(
750 "$.datepicker.regional['']['nextText']",
751 _pgettext('Next month', 'Next')
753 /* l10n: Display text for current month link in calendar */
754 Sanitize
::printJsValue("$.datepicker.regional['']['currentText']", __('Today'));
755 Sanitize
::printJsValue(
756 "$.datepicker.regional['']['monthNames']",
772 Sanitize
::printJsValue(
773 "$.datepicker.regional['']['monthNamesShort']",
775 /* l10n: Short month name */
777 /* l10n: Short month name */
779 /* l10n: Short month name */
781 /* l10n: Short month name */
783 /* l10n: Short month name */
784 _pgettext('Short month name', 'May'),
785 /* l10n: Short month name */
787 /* l10n: Short month name */
789 /* l10n: Short month name */
791 /* l10n: Short month name */
793 /* l10n: Short month name */
795 /* l10n: Short month name */
797 /* l10n: Short month name */
801 Sanitize
::printJsValue(
802 "$.datepicker.regional['']['dayNames']",
813 Sanitize
::printJsValue(
814 "$.datepicker.regional['']['dayNamesShort']",
816 /* l10n: Short week day name */
818 /* l10n: Short week day name */
820 /* l10n: Short week day name */
822 /* l10n: Short week day name */
824 /* l10n: Short week day name */
826 /* l10n: Short week day name */
828 /* l10n: Short week day name */
832 Sanitize
::printJsValue(
833 "$.datepicker.regional['']['dayNamesMin']",
835 /* l10n: Minimal week day name */
837 /* l10n: Minimal week day name */
839 /* l10n: Minimal week day name */
841 /* l10n: Minimal week day name */
843 /* l10n: Minimal week day name */
845 /* l10n: Minimal week day name */
847 /* l10n: Minimal week day name */
851 /* l10n: Column header for week of the year in calendar */
852 Sanitize
::printJsValue("$.datepicker.regional['']['weekHeader']", __('Wk'));
854 Sanitize
::printJsValue(
855 "$.datepicker.regional['']['showMonthAfterYear']",
856 /* l10n: Month-year order for calendar, use either "calendar-month-year"
857 * or "calendar-year-month".
859 (__('calendar-month-year') == 'calendar-year-month')
861 /* l10n: Year suffix for calendar, "none" is empty. */
862 $year_suffix = _pgettext('Year suffix', 'none');
863 Sanitize
::printJsValue(
864 "$.datepicker.regional['']['yearSuffix']",
865 ($year_suffix == 'none' ?
'' : $year_suffix)
868 $
.extend($
.datepicker
._defaults
, $
.datepicker
.regional
['']);
869 } /* if ($.datepicker) */
872 echo "if ($.timepicker) {\n";
873 Sanitize
::printJsValue("$.timepicker.regional['']['timeText']", __('Time'));
874 Sanitize
::printJsValue("$.timepicker.regional['']['hourText']", __('Hour'));
875 Sanitize
::printJsValue("$.timepicker.regional['']['minuteText']", __('Minute'));
876 Sanitize
::printJsValue("$.timepicker.regional['']['secondText']", __('Second'));
878 $
.extend($
.timepicker
._defaults
, $
.timepicker
.regional
['']);
879 } /* if ($.timepicker) */
882 /* Form validation */
884 echo "function extendingValidatorMessages() {\n";
885 echo "$.extend($.validator.messages, {\n";
886 /* Default validation functions */
887 Sanitize
::printJsValueForFormValidation('required', __('This field is required'));
888 Sanitize
::printJsValueForFormValidation('remote', __('Please fix this field'));
889 Sanitize
::printJsValueForFormValidation('email', __('Please enter a valid email address'));
890 Sanitize
::printJsValueForFormValidation('url', __('Please enter a valid URL'));
891 Sanitize
::printJsValueForFormValidation('date', __('Please enter a valid date'));
892 Sanitize
::printJsValueForFormValidation(
894 __('Please enter a valid date ( ISO )')
896 Sanitize
::printJsValueForFormValidation('number', __('Please enter a valid number'));
897 Sanitize
::printJsValueForFormValidation(
899 __('Please enter a valid credit card number')
901 Sanitize
::printJsValueForFormValidation('digits', __('Please enter only digits'));
902 Sanitize
::printJsValueForFormValidation(
904 __('Please enter the same value again')
906 Sanitize
::printJsValueForFormValidation(
908 __('Please enter no more than {0} characters'),
911 Sanitize
::printJsValueForFormValidation(
913 __('Please enter at least {0} characters'),
916 Sanitize
::printJsValueForFormValidation(
918 __('Please enter a value between {0} and {1} characters long'),
921 Sanitize
::printJsValueForFormValidation(
923 __('Please enter a value between {0} and {1}'),
926 Sanitize
::printJsValueForFormValidation(
928 __('Please enter a value less than or equal to {0}'),
931 Sanitize
::printJsValueForFormValidation(
933 __('Please enter a value greater than or equal to {0}'),
936 /* customed functions */
937 Sanitize
::printJsValueForFormValidation(
938 'validationFunctionForDateTime',
939 __('Please enter a valid date or time'),
942 Sanitize
::printJsValueForFormValidation(
943 'validationFunctionForHex',
944 __('Please enter a valid HEX input'),
947 Sanitize
::printJsValueForFormValidation(
948 'validationFunctionForFuns',
954 echo "\n} /* if ($.validator) */";