Merge pull request #13455 from Achilles-96/Issue-#5827
[phpmyadmin.git] / js / messages.php
blob2ea7d703757a1b0a1d0f85ebcdefd5e053f3b337
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 if (!defined('TESTSUITE')) {
10 chdir('..');
12 // Send correct type:
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 PhpMyAdmin\Sanitize;
32 $buffer = PhpMyAdmin\OutputBuffering::getInstance();
33 $buffer->start();
34 if (!defined('TESTSUITE')) {
35 register_shutdown_function(
36 function () {
37 echo PhpMyAdmin\OutputBuffering::getInstance()->getContents();
42 /* For confirmations */
43 $js_messages['strConfirm'] = __('Confirm');
44 $js_messages['strDoYouReally'] = __('Do you really want to execute "%s"?');
45 $js_messages['strDropDatabaseStrongWarning']
46 = __('You are about to DESTROY a complete database!');
47 $js_messages['strDatabaseRenameToSameName']
48 = __('Cannot rename database to the same name. Change the name and try again');
49 $js_messages['strDropTableStrongWarning']
50 = __('You are about to DESTROY a complete table!');
51 $js_messages['strTruncateTableStrongWarning']
52 = __('You are about to TRUNCATE a complete table!');
53 $js_messages['strDeleteTrackingData'] = __('Delete tracking data for this table?');
54 $js_messages['strDeleteTrackingDataMultiple']
55 = __('Delete tracking data for these tables?');
56 $js_messages['strDeleteTrackingVersion']
57 = __('Delete tracking data for this version?');
58 $js_messages['strDeleteTrackingVersionMultiple']
59 = __('Delete tracking data for these versions?');
60 $js_messages['strDeletingTrackingEntry'] = __('Delete entry from tracking report?');
61 $js_messages['strDeletingTrackingData'] = __('Deleting tracking data');
62 $js_messages['strDroppingPrimaryKeyIndex'] = __('Dropping Primary Key/Index');
63 $js_messages['strDroppingForeignKey'] = __('Dropping Foreign key.');
64 $js_messages['strOperationTakesLongTime']
65 = __('This operation could take a long time. Proceed anyway?');
66 $js_messages['strDropUserGroupWarning']
67 = __('Do you really want to delete user group "%s"?');
68 $js_messages['strConfirmDeleteQBESearch']
69 = __('Do you really want to delete the search "%s"?');
70 $js_messages['strConfirmNavigation']
71 = __('You have unsaved changes; are you sure you want to leave this page?');
72 $js_messages['strDropUserWarning']
73 = __('Do you really want to revoke the selected user(s) ?');
74 $js_messages['strDeleteCentralColumnWarning']
75 = __('Do you really want to delete this central column?');
76 $js_messages['strDropRTEitems']
77 = __('Do you really want to delete the selected items?');
78 $js_messages['strDropPartitionWarning'] = __(
79 'Do you really want to DROP the selected partition(s)? This will also DELETE ' .
80 'the data related to the selected partition(s)!'
82 $js_messages['strTruncatePartitionWarning']
83 = __('Do you really want to TRUNCATE the selected partition(s)?');
84 $js_messages['strRemovePartitioningWarning']
85 = __('Do you really want to remove partitioning?');
86 $js_messages['strResetSlaveWarning'] = __('Do you really want to RESET SLAVE?');
87 $js_messages['strChangeColumnCollation'] = __(
88 'This operation will attempt to convert your data to the new collation. In '
89 . 'rare cases, especially where a character doesn\'t exist in the new '
90 . 'collation, this process could cause the data to appear incorrectly under '
91 . 'the new collation; in this case we suggest you revert to the original '
92 . 'collation and refer to the tips at '
94 . '<a href="%s" target="garbled_data_wiki">' . __('Garbled Data') . '</a>.'
95 . '<br/><br/>'
96 . __('Are you sure you wish to change the collation and convert the data?');
97 $js_messages['strChangeAllColumnCollationsWarning'] = __(
98 'Through this operation, MySQL attempts to map the data values between '
99 . 'collations. If the character sets are incompatible, there may be data loss '
100 . 'and this lost data may <b>NOT</b> be recoverable simply by changing back the '
101 . 'column collation(s). <b>To convert existing data, it is suggested to use the '
102 . 'column(s) editing feature (the "Change" Link) on the table structure page. '
103 . '</b>'
105 . '<br/><br/>'
106 . __(
107 'Are you sure you wish to change all the column collations and convert the data?'
110 /* For modal dialog buttons */
111 $js_messages['strSaveAndClose'] = __('Save & close');
112 $js_messages['strReset'] = __('Reset');
113 $js_messages['strResetAll'] = __('Reset all');
115 /* For indexes */
116 $js_messages['strFormEmpty'] = __('Missing value in the form!');
117 $js_messages['strRadioUnchecked'] = __('Select at least one of the options!');
118 $js_messages['strEnterValidNumber'] = __('Please enter a valid number!');
119 $js_messages['strEnterValidLength'] = __('Please enter a valid length!');
120 $js_messages['strAddIndex'] = __('Add index');
121 $js_messages['strEditIndex'] = __('Edit index');
122 $js_messages['strAddToIndex'] = __('Add %s column(s) to index');
123 $js_messages['strCreateSingleColumnIndex'] = __('Create single-column index');
124 $js_messages['strCreateCompositeIndex'] = __('Create composite index');
125 $js_messages['strCompositeWith'] = __('Composite with:');
126 $js_messages['strMissingColumn'] = __('Please select column(s) for the index.');
128 /* For Preview SQL*/
129 $js_messages['strPreviewSQL'] = __('Preview SQL');
131 /* For Simulate DML*/
132 $js_messages['strSimulateDML'] = __('Simulate query');
133 $js_messages['strMatchedRows'] = __('Matched rows:');
134 $js_messages['strSQLQuery'] = __('SQL query:');
136 /* Charts */
137 /* l10n: Default label for the y-Axis of Charts */
138 $js_messages['strYValues'] = __('Y values');
140 /* For server_privileges.js */
141 $js_messages['strHostEmpty'] = __('The host name is empty!');
142 $js_messages['strUserEmpty'] = __('The user name is empty!');
143 $js_messages['strPasswordEmpty'] = __('The password is empty!');
144 $js_messages['strPasswordNotSame'] = __('The passwords aren\'t the same!');
145 $js_messages['strRemovingSelectedUsers'] = __('Removing Selected Users');
146 $js_messages['strClose'] = __('Close');
148 /* For export.js */
149 $js_messages['strTemplateCreated'] = __('Template was created.');
150 $js_messages['strTemplateLoaded'] = __('Template was loaded.');
151 $js_messages['strTemplateUpdated'] = __('Template was updated.');
152 $js_messages['strTemplateDeleted'] = __('Template was deleted.');
154 /* l10n: Other, small valued, queries */
155 $js_messages['strOther'] = __('Other');
156 /* l10n: Thousands separator */
157 $js_messages['strThousandsSeparator'] = __(',');
158 /* l10n: Decimal separator */
159 $js_messages['strDecimalSeparator'] = __('.');
161 $js_messages['strChartConnectionsTitle'] = __('Connections / Processes');
163 /* server status monitor */
164 $js_messages['strIncompatibleMonitorConfig']
165 = __('Local monitor configuration incompatible!');
166 $js_messages['strIncompatibleMonitorConfigDescription'] = __(
167 'The chart arrangement configuration in your browsers local storage is not '
168 . 'compatible anymore to the newer version of the monitor dialog. It is very '
169 . 'likely that your current configuration will not work anymore. Please reset '
170 . 'your configuration to default in the <i>Settings</i> menu.'
173 $js_messages['strQueryCacheEfficiency'] = __('Query cache efficiency');
174 $js_messages['strQueryCacheUsage'] = __('Query cache usage');
175 $js_messages['strQueryCacheUsed'] = __('Query cache used');
177 $js_messages['strSystemCPUUsage'] = __('System CPU usage');
178 $js_messages['strSystemMemory'] = __('System memory');
179 $js_messages['strSystemSwap'] = __('System swap');
181 $js_messages['strAverageLoad'] = __('Average load');
182 $js_messages['strTotalMemory'] = __('Total memory');
183 $js_messages['strCachedMemory'] = __('Cached memory');
184 $js_messages['strBufferedMemory'] = __('Buffered memory');
185 $js_messages['strFreeMemory'] = __('Free memory');
186 $js_messages['strUsedMemory'] = __('Used memory');
188 $js_messages['strTotalSwap'] = __('Total swap');
189 $js_messages['strCachedSwap'] = __('Cached swap');
190 $js_messages['strUsedSwap'] = __('Used swap');
191 $js_messages['strFreeSwap'] = __('Free swap');
193 $js_messages['strBytesSent'] = __('Bytes sent');
194 $js_messages['strBytesReceived'] = __('Bytes received');
195 $js_messages['strConnections'] = __('Connections');
196 $js_messages['strProcesses'] = __('Processes');
198 /* summary row */
199 $js_messages['strB'] = __('B');
200 $js_messages['strKiB'] = __('KiB');
201 $js_messages['strMiB'] = __('MiB');
202 $js_messages['strGiB'] = __('GiB');
203 $js_messages['strTiB'] = __('TiB');
204 $js_messages['strPiB'] = __('PiB');
205 $js_messages['strEiB'] = __('EiB');
206 $js_messages['strNTables'] = __('%d table(s)');
208 /* l10n: Questions is the name of a MySQL Status variable */
209 $js_messages['strQuestions'] = __('Questions');
210 $js_messages['strTraffic'] = __('Traffic');
211 $js_messages['strSettings'] = __('Settings');
212 $js_messages['strAddChart'] = __('Add chart to grid');
213 $js_messages['strClose'] = __('Close');
214 $js_messages['strAddOneSeriesWarning']
215 = __('Please add at least one variable to the series!');
216 $js_messages['strNone'] = __('None');
217 $js_messages['strResumeMonitor'] = __('Resume monitor');
218 $js_messages['strPauseMonitor'] = __('Pause monitor');
219 $js_messages['strStartRefresh'] = __('Start auto refresh');
220 $js_messages['strStopRefresh'] = __('Stop auto refresh');
221 /* Monitor: Instructions Dialog */
222 $js_messages['strBothLogOn'] = __('general_log and slow_query_log are enabled.');
223 $js_messages['strGenLogOn'] = __('general_log is enabled.');
224 $js_messages['strSlowLogOn'] = __('slow_query_log is enabled.');
225 $js_messages['strBothLogOff'] = __('slow_query_log and general_log are disabled.');
226 $js_messages['strLogOutNotTable'] = __('log_output is not set to TABLE.');
227 $js_messages['strLogOutIsTable'] = __('log_output is set to TABLE.');
228 $js_messages['strSmallerLongQueryTimeAdvice'] = __(
229 'slow_query_log is enabled, but the server logs only queries that take longer '
230 . 'than %d seconds. It is advisable to set this long_query_time 0-2 seconds, '
231 . 'depending on your system.'
233 $js_messages['strLongQueryTimeSet'] = __('long_query_time is set to %d second(s).');
234 $js_messages['strSettingsAppliedGlobal'] = __(
235 'Following settings will be applied globally and reset to default on server '
236 . 'restart:'
238 /* l10n: %s is FILE or TABLE */
239 $js_messages['strSetLogOutput'] = __('Set log_output to %s');
240 /* l10n: Enable in this context means setting a status variable to ON */
241 $js_messages['strEnableVar'] = __('Enable %s');
242 /* l10n: Disable in this context means setting a status variable to OFF */
243 $js_messages['strDisableVar'] = __('Disable %s');
244 /* l10n: %d seconds */
245 $js_messages['setSetLongQueryTime'] = __('Set long_query_time to %d seconds.');
246 $js_messages['strNoSuperUser'] = __(
247 'You can\'t change these variables. Please log in as root or contact'
248 . ' your database administrator.'
250 $js_messages['strChangeSettings'] = __('Change settings');
251 $js_messages['strCurrentSettings'] = __('Current settings');
253 $js_messages['strChartTitle'] = __('Chart title');
254 /* l10n: As in differential values */
255 $js_messages['strDifferential'] = __('Differential');
256 $js_messages['strDividedBy'] = __('Divided by %s');
257 $js_messages['strUnit'] = __('Unit');
259 $js_messages['strFromSlowLog'] = __('From slow log');
260 $js_messages['strFromGeneralLog'] = __('From general log');
261 $js_messages['strServerLogError'] = __(
262 'The database name is not known for this query in the server\'s logs.'
264 $js_messages['strAnalysingLogsTitle'] = __('Analysing logs');
265 $js_messages['strAnalysingLogs']
266 = __('Analysing & loading logs. This may take a while.');
267 $js_messages['strCancelRequest'] = __('Cancel request');
268 $js_messages['strCountColumnExplanation'] = __(
269 'This column shows the amount of identical queries that are grouped together. '
270 . 'However only the SQL query itself has been used as a grouping criteria, so '
271 . 'the other attributes of queries, such as start time, may differ.'
273 $js_messages['strMoreCountColumnExplanation'] = __(
274 'Since grouping of INSERTs queries has been selected, INSERT queries into the '
275 . 'same table are also being grouped together, disregarding of the inserted '
276 . 'data.'
278 $js_messages['strLogDataLoaded']
279 = __('Log data loaded. Queries executed in this time span:');
281 $js_messages['strJumpToTable'] = __('Jump to Log table');
282 $js_messages['strNoDataFoundTitle'] = __('No data found');
283 $js_messages['strNoDataFound']
284 = __('Log analysed, but no data found in this time span.');
286 $js_messages['strAnalyzing'] = __('Analyzing…');
287 $js_messages['strExplainOutput'] = __('Explain output');
288 $js_messages['strStatus'] = __('Status');
289 $js_messages['strTime'] = __('Time');
290 $js_messages['strTotalTime'] = __('Total time:');
291 $js_messages['strProfilingResults'] = __('Profiling results');
292 $js_messages['strTable'] = _pgettext('Display format', 'Table');
293 $js_messages['strChart'] = __('Chart');
295 $js_messages['strAliasDatabase'] = _pgettext('Alias', 'Database');
296 $js_messages['strAliasTable'] = _pgettext('Alias', 'Table');
297 $js_messages['strAliasColumn'] = _pgettext('Alias', 'Column');
299 /* l10n: A collection of available filters */
300 $js_messages['strFiltersForLogTable'] = __('Log table filter options');
301 /* l10n: Filter as in "Start Filtering" */
302 $js_messages['strFilter'] = __('Filter');
303 $js_messages['strFilterByWordRegexp'] = __('Filter queries by word/regexp:');
304 $js_messages['strIgnoreWhereAndGroup']
305 = __('Group queries, ignoring variable data in WHERE clauses');
306 $js_messages['strSumRows'] = __('Sum of grouped rows:');
307 $js_messages['strTotal'] = __('Total:');
309 $js_messages['strLoadingLogs'] = __('Loading logs');
310 $js_messages['strRefreshFailed'] = __('Monitor refresh failed');
311 $js_messages['strInvalidResponseExplanation'] = __(
312 'While requesting new chart data the server returned an invalid response. This '
313 . 'is most likely because your session expired. Reloading the page and '
314 . 'reentering your credentials should help.'
316 $js_messages['strReloadPage'] = __('Reload page');
318 $js_messages['strAffectedRows'] = __('Affected rows:');
320 $js_messages['strFailedParsingConfig'] = __(
321 'Failed parsing config file. It doesn\'t seem to be valid JSON code.'
323 $js_messages['strFailedBuildingGrid'] = __(
324 'Failed building chart grid with imported config. Resetting to default config…'
326 $js_messages['strImport'] = __('Import');
327 $js_messages['strImportDialogTitle'] = __('Import monitor configuration');
328 $js_messages['strImportDialogMessage']
329 = __('Please select the file you want to import.');
330 $js_messages['strNoImportFile'] = __('No files available on server for import!');
332 $js_messages['strAnalyzeQuery'] = __('Analyse query');
334 /* Server status advisor */
336 $js_messages['strAdvisorSystem'] = __('Advisor system');
337 $js_messages['strPerformanceIssues'] = __('Possible performance issues');
338 $js_messages['strIssuse'] = __('Issue');
339 $js_messages['strRecommendation'] = __('Recommendation');
340 $js_messages['strRuleDetails'] = __('Rule details');
341 $js_messages['strJustification'] = __('Justification');
342 $js_messages['strFormula'] = __('Used variable / formula');
343 $js_messages['strTest'] = __('Test');
345 /* For query editor */
346 $js_messages['strFormatting'] = __('Formatting SQL…');
347 $js_messages['strNoParam'] = __('No parameters found!');
349 /* For inline query editing */
350 $js_messages['strGo'] = __('Go');
351 $js_messages['strCancel'] = __('Cancel');
353 /* For page-related settings */
354 $js_messages['strPageSettings'] = __('Page-related settings');
355 $js_messages['strApply'] = __('Apply');
357 /* For Ajax Notifications */
358 $js_messages['strLoading'] = __('Loading…');
359 $js_messages['strAbortedRequest'] = __('Request aborted!!');
360 $js_messages['strProcessingRequest'] = __('Processing request');
361 $js_messages['strRequestFailed'] = __('Request failed!!');
362 $js_messages['strErrorProcessingRequest'] = __('Error in processing request');
363 $js_messages['strErrorCode'] = __('Error code: %s');
364 $js_messages['strErrorText'] = __('Error text: %s');
365 $js_messages['strNoDatabasesSelected'] = __('No databases selected.');
366 $js_messages['strNoAccountSelected'] = __('No accounts selected.');
367 $js_messages['strDroppingColumn'] = __('Dropping column');
368 $js_messages['strAddingPrimaryKey'] = __('Adding primary key');
369 $js_messages['strOK'] = __('OK');
370 $js_messages['strDismiss'] = __('Click to dismiss this notification');
372 /* For db_operations.js */
373 $js_messages['strRenamingDatabases'] = __('Renaming databases');
374 $js_messages['strCopyingDatabase'] = __('Copying database');
375 $js_messages['strChangingCharset'] = __('Changing charset');
376 $js_messages['strNo'] = __('No');
378 /* For Foreign key checks */
379 $js_messages['strForeignKeyCheck'] = __('Enable foreign key checks');
381 /* For db_stucture.js */
382 $js_messages['strErrorRealRowCount'] = __('Failed to get real row count.');
384 /* For db_search.js */
385 $js_messages['strSearching'] = __('Searching');
386 $js_messages['strHideSearchResults'] = __('Hide search results');
387 $js_messages['strShowSearchResults'] = __('Show search results');
388 $js_messages['strBrowsing'] = __('Browsing');
389 $js_messages['strDeleting'] = __('Deleting');
390 $js_messages['strConfirmDeleteResults'] = __('Delete the matches for the %s table?');
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');
396 $js_messages['NoExportable']
397 = __('No routine is exportable. Required privileges may be lacking.');
399 /* For ENUM/SET editor*/
400 $js_messages['enum_editor'] = __('ENUM/SET editor');
401 $js_messages['enum_columnVals'] =__('Values for column %s');
402 $js_messages['enum_newColumnVals'] = __('Values for a new column');
403 $js_messages['enum_hint'] =__('Enter each value in a separate field.');
404 $js_messages['enum_addValue'] =__('Add %d value(s)');
406 /* For import.js */
407 $js_messages['strImportCSV'] = __(
408 'Note: If the file contains multiple tables, they will be combined into one.'
411 /* For sql.js */
412 $js_messages['strHideQueryBox'] = __('Hide query box');
413 $js_messages['strShowQueryBox'] = __('Show query box');
414 $js_messages['strEdit'] = __('Edit');
415 $js_messages['strDelete'] = __('Delete');
416 $js_messages['strNotValidRowNumber'] = __('%d is not valid row number.');
417 $js_messages['strBrowseForeignValues'] = __('Browse foreign values');
418 $js_messages['strNoAutoSavedQuery'] = __('No auto-saved query');
419 $js_messages['strBookmarkVariable'] = __('Variable %d:');
421 /* For Central list of columns */
422 $js_messages['pickColumn'] = __('Pick');
423 $js_messages['pickColumnTitle'] = __('Column selector');
424 $js_messages['searchList'] = __('Search this list');
425 $js_messages['strEmptyCentralList'] = __(
426 'No columns in the central list. Make sure the Central columns list for '
427 . 'database %s has columns that are not present in the current table.'
429 $js_messages['seeMore'] = __('See more');
430 $js_messages['confirmTitle'] = __('Are you sure?');
431 $js_messages['makeConsistentMessage'] = __(
432 'This action may change some of the columns definition.<br/>Are you sure you '
433 . 'want to continue?'
435 $js_messages['strContinue'] = __('Continue');
437 /** For normalization */
438 $js_messages['strAddPrimaryKey'] = __('Add primary key');
439 $js_messages['strPrimaryKeyAdded'] = __('Primary key added.');
440 $js_messages['strToNextStep'] = __('Taking you to next step…');
441 $js_messages['strFinishMsg']
442 = __("The first step of normalization is complete for table '%s'.");
443 $js_messages['strEndStep'] = __("End of step");
444 $js_messages['str2NFNormalization'] = __('Second step of normalization (2NF)');
445 $js_messages['strDone'] = __('Done');
446 $js_messages['strConfirmPd'] = __('Confirm partial dependencies');
447 $js_messages['strSelectedPd'] = __('Selected partial dependencies are as follows:');
448 $js_messages['strPdHintNote'] = __(
449 'Note: a, b -> d,f implies values of columns a and b combined together can '
450 . 'determine values of column d and column f.'
452 $js_messages['strNoPdSelected'] = __('No partial dependencies selected!');
453 $js_messages['strBack'] = __('Back');
454 $js_messages['strShowPossiblePd']
455 = __('Show me the possible partial dependencies based on data in the table');
456 $js_messages['strHidePd'] = __('Hide partial dependencies list');
457 $js_messages['strWaitForPd'] = __(
458 'Sit tight! It may take few seconds depending on data size and column count of '
459 . 'the table.'
461 $js_messages['strStep'] = __('Step');
462 $js_messages['strMoveRepeatingGroup']
463 = '<ol><b>' . __('The following actions will be performed:') . '</b>'
464 . '<li>' . __('DROP columns %s from the table %s') . '</li>'
465 . '<li>' . __('Create the following table') . '</li>';
466 $js_messages['strNewTablePlaceholder'] = 'Enter new table name';
467 $js_messages['strNewColumnPlaceholder'] = 'Enter column name';
468 $js_messages['str3NFNormalization'] = __('Third step of normalization (3NF)');
469 $js_messages['strConfirmTd'] = __('Confirm transitive dependencies');
470 $js_messages['strSelectedTd'] = __('Selected dependencies are as follows:');
471 $js_messages['strNoTdSelected'] = __('No dependencies selected!');
473 /* For server_variables.js */
474 $js_messages['strSave'] = __('Save');
476 /* For tbl_select.js */
477 $js_messages['strHideSearchCriteria'] = __('Hide search criteria');
478 $js_messages['strShowSearchCriteria'] = __('Show search criteria');
479 $js_messages['strRangeSearch'] = __('Range search');
480 $js_messages['strColumnMax'] = __('Column maximum:');
481 $js_messages['strColumnMin'] = __('Column minimum:');
482 $js_messages['strMinValue'] = __('Minimum value:');
483 $js_messages['strMaxValue'] = __('Maximum value:');
485 /* For tbl_find_replace.js */
486 $js_messages['strHideFindNReplaceCriteria'] = __('Hide find and replace criteria');
487 $js_messages['strShowFindNReplaceCriteria'] = __('Show find and replace criteria');
489 /* For tbl_zoom_plot_jqplot.js */
490 $js_messages['strDisplayHelp'] = '<ul><li>'
491 . __('Each point represents a data row.')
492 . '</li><li>'
493 . __('Hovering over a point will show its label.')
494 . '</li><li>'
495 . __('To zoom in, select a section of the plot with the mouse.')
496 . '</li><li>'
497 . __('Click reset zoom button to come back to original state.')
498 . '</li><li>'
499 . __('Click a data point to view and possibly edit the data row.')
500 . '</li><li>'
501 . __('The plot can be resized by dragging it along the bottom right corner.')
502 . '</li></ul>';
503 $js_messages['strHelpTitle'] = 'Zoom search instructions';
504 $js_messages['strInputNull'] = '<strong>' . __('Select two columns') . '</strong>';
505 $js_messages['strSameInputs'] = '<strong>'
506 . __('Select two different columns')
507 . '</strong>';
508 $js_messages['strDataPointContent'] = __('Data point content');
510 /* For tbl_change.js */
511 $js_messages['strIgnore'] = __('Ignore');
512 $js_messages['strCopy'] = __('Copy');
513 $js_messages['strX'] = __('X');
514 $js_messages['strY'] = __('Y');
515 $js_messages['strPoint'] = __('Point');
516 $js_messages['strPointN'] = __('Point %d');
517 $js_messages['strLineString'] = __('Linestring');
518 $js_messages['strPolygon'] = __('Polygon');
519 $js_messages['strGeometry'] = __('Geometry');
520 $js_messages['strInnerRing'] = __('Inner ring');
521 $js_messages['strOuterRing'] = __('Outer ring');
522 $js_messages['strAddPoint'] = __('Add a point');
523 $js_messages['strAddInnerRing'] = __('Add an inner ring');
524 $js_messages['strYes'] = __('Yes');
525 $js_messages['strCopyEncryptionKey'] = __('Do you want to copy encryption key?');
526 $js_messages['strEncryptionKey'] = __('Encryption key');
528 /* For Tip to be shown on Time field */
529 $js_messages['strMysqlAllowedValuesTipTime'] = __(
530 'MySQL accepts additional values not selectable by the slider;'
531 . ' key in those values directly if desired'
534 /* For Tip to be shown on Date field */
535 $js_messages['strMysqlAllowedValuesTipDate'] = __(
536 'MySQL accepts additional values not selectable by the datepicker;'
537 . ' key in those values directly if desired'
540 /* For Lock symbol Tooltip */
541 $js_messages['strLockToolTip'] = __(
542 'Indicates that you have made changes to this page;'
543 . ' you will be prompted for confirmation before abandoning changes'
546 /* Designer (js/pmd/move.js) */
547 $js_messages['strSelectReferencedKey'] = __('Select referenced key');
548 $js_messages['strSelectForeignKey'] = __('Select Foreign Key');
549 $js_messages['strPleaseSelectPrimaryOrUniqueKey']
550 = __('Please select the primary key or a unique key!');
551 $js_messages['strChangeDisplay'] = __('Choose column to display');
552 $js_messages['strLeavingDesigner'] = __(
553 'You haven\'t saved the changes in the layout. They will be lost if you'
554 . ' don\'t save them. Do you want to continue?'
556 $js_messages['strAddTables'] = __('Add tables from other databases');
557 $js_messages['strPageName'] = __('Page name');
558 $js_messages['strSavePage'] = __('Save page');
559 $js_messages['strSavePageAs'] = __('Save page as');
560 $js_messages['strOpenPage'] = __('Open page');
561 $js_messages['strDeletePage'] = __('Delete page');
562 $js_messages['strUntitled'] = __('Untitled');
563 $js_messages['strSelectPage'] = __('Please select a page to continue');
564 $js_messages['strEnterValidPageName'] = __('Please enter a valid page name');
565 $js_messages['strLeavingPage']
566 = __('Do you want to save the changes to the current page?');
567 $js_messages['strSuccessfulPageDelete'] = __('Successfully deleted the page');
568 $js_messages['strExportRelationalSchema'] = __('Export relational schema');
569 $js_messages['strModificationSaved'] = __('Modifications have been saved');
571 /* Visual query builder (js/pmd/move.js) */
572 $js_messages['strAddOption'] = __('Add an option for column "%s".');
573 $js_messages['strObjectsCreated'] = __('%d object(s) created.');
574 $js_messages['strSubmit'] = __('Submit');
576 /* For makegrid.js (column reordering, show/hide column, grid editing) */
577 $js_messages['strCellEditHint'] = __('Press escape to cancel editing.');
578 $js_messages['strSaveCellWarning'] = __(
579 'You have edited some data and they have not been saved. Are you sure you want '
580 . 'to leave this page before saving the data?'
582 $js_messages['strColOrderHint'] = __('Drag to reorder.');
583 $js_messages['strSortHint'] = __('Click to sort results by this column.');
584 $js_messages['strMultiSortHint'] = __(
585 'Shift+Click to add this column to ORDER BY clause or to toggle ASC/DESC.'
586 . '<br />- Ctrl+Click or Alt+Click (Mac: Shift+Option+Click) to remove column '
587 . 'from ORDER BY clause'
589 $js_messages['strColMarkHint'] = __('Click to mark/unmark.');
590 $js_messages['strColNameCopyHint'] = __('Double-click to copy column name.');
591 $js_messages['strColVisibHint'] = __(
592 'Click the drop-down arrow<br />to toggle column\'s visibility.'
594 $js_messages['strShowAllCol'] = __('Show all');
595 $js_messages['strAlertNonUnique'] = __(
596 'This table does not contain a unique column. Features related to the grid '
597 . 'edit, checkbox, Edit, Copy and Delete links may not work after saving.'
599 $js_messages['strEnterValidHex']
600 = __('Please enter a valid hexadecimal string. Valid characters are 0-9, A-F.');
601 $js_messages['strShowAllRowsWarning'] = __(
602 'Do you really want to see all of the rows? For a big table this could crash '
603 . 'the browser.'
605 $js_messages['strOriginalLength'] = __('Original length');
607 /** Drag & Drop sql import messages */
608 $js_messages['dropImportMessageCancel'] = __('cancel');
609 $js_messages['dropImportMessageAborted'] = __('Aborted');
610 $js_messages['dropImportMessageFailed'] = __('Failed');
611 $js_messages['dropImportMessageSuccess'] = __('Success');
612 $js_messages['dropImportImportResultHeader'] = __('Import status');
613 $js_messages['dropImportDropFiles'] = __('Drop files here');
614 $js_messages['dropImportSelectDB'] = __('Select database first');
616 /* For Print view */
617 $js_messages['print'] = __('Print');
618 $js_messages['back'] = __('Back');
620 // this approach does not work when the parameter is changed via user prefs
621 switch ($GLOBALS['cfg']['GridEditing']) {
622 case 'double-click':
623 $js_messages['strGridEditFeatureHint'] = __(
624 'You can also edit most values<br />by double-clicking directly on them.'
626 break;
627 case 'click':
628 $js_messages['strGridEditFeatureHint'] = __(
629 'You can also edit most values<br />by clicking directly on them.'
631 break;
632 default:
633 break;
635 $js_messages['strGoToLink'] = __('Go to link:');
636 $js_messages['strColNameCopyTitle'] = __('Copy column name.');
637 $js_messages['strColNameCopyText']
638 = __('Right-click the column name to copy it to your clipboard.');
640 /* password generation */
641 $js_messages['strGeneratePassword'] = __('Generate password');
642 $js_messages['strGenerate'] = __('Generate');
643 $js_messages['strChangePassword'] = __('Change password');
645 /* navigation tabs */
646 $js_messages['strMore'] = __('More');
648 /* navigation panel */
649 $js_messages['strShowPanel'] = __('Show panel');
650 $js_messages['strHidePanel'] = __('Hide panel');
651 $js_messages['strUnhideNavItem'] = __('Show hidden navigation tree items.');
652 $js_messages['linkWithMain'] = __('Link with main panel');
653 $js_messages['unlinkWithMain'] = __('Unlink from main panel');
655 /* microhistory */
656 $js_messages['strInvalidPage']
657 = __('The requested page was not found in the history, it may have expired.');
659 /* update */
660 $js_messages['strNewerVersion'] = __(
661 'A newer version of phpMyAdmin is available and you should consider upgrading. '
662 . 'The newest version is %s, released on %s.'
664 /* l10n: Latest available phpMyAdmin version */
665 $js_messages['strLatestAvailable'] = __(', latest stable version:');
666 $js_messages['strUpToDate'] = __('up to date');
668 $js_messages['strCreateView'] = __('Create view');
670 /* Error Reporting */
671 $js_messages['strSendErrorReport'] = __("Send error report");
672 $js_messages['strSubmitErrorReport'] = __("Submit error report");
673 $js_messages['strErrorOccurred'] = __(
674 "A fatal JavaScript error has occurred. Would you like to send an error report?"
676 $js_messages['strChangeReportSettings'] = __("Change report settings");
677 $js_messages['strShowReportDetails'] = __("Show report details");
678 $js_messages['strIgnore'] = __("Ignore");
679 $js_messages['strTimeOutError'] = __(
680 "Your export is incomplete, due to a low execution time limit at the PHP level!"
683 $js_messages['strTooManyInputs'] = __(
684 "Warning: a form on this page has more than %d fields. On submission, "
685 . "some of the fields might be ignored, due to PHP's "
686 . "max_input_vars configuration."
689 $js_messages['phpErrorsFound'] = '<div class="error">'
690 . __('Some errors have been detected on the server!')
691 . '<br/>'
692 . __('Please look at the bottom of this window.')
693 . '<div>'
694 . '<input id="pma_ignore_errors_popup" type="submit" value="'
695 . __('Ignore')
696 . '" class="floatright" style="margin-top: 20px;">'
697 . '<input id="pma_ignore_all_errors_popup" type="submit" value="'
698 . __('Ignore All')
699 . '" class="floatright" style="margin-top: 20px;">'
700 . '</div></div>';
702 $js_messages['phpErrorsBeingSubmitted'] = '<div class="error">'
703 . __('Some errors have been detected on the server!')
704 . '<br/>'
705 . __(
706 'As per your settings, they are being submitted currently, please be '
707 . 'patient.'
709 . '<br/>'
710 . '<img src="'
711 . ($GLOBALS['PMA_Theme']->getImgPath('ajax_clock_small.gif'))
712 . '" width="16" height="16" alt="ajax clock"/>'
713 . '</div>';
715 // For console
716 $js_messages['strConsoleRequeryConfirm'] = __('Execute this query again?');
717 $js_messages['strConsoleDeleteBookmarkConfirm']
718 = __('Do you really want to delete this bookmark?');
719 $js_messages['strConsoleDebugError']
720 = __('Some error occurred while getting SQL debug info.');
721 $js_messages['strConsoleDebugSummary']
722 = __('%s queries executed %s times in %s seconds.');
723 $js_messages['strConsoleDebugArgsSummary'] = __('%s argument(s) passed');
724 $js_messages['strConsoleDebugShowArgs'] = __('Show arguments');
725 $js_messages['strConsoleDebugHideArgs'] = __('Hide arguments');
726 $js_messages['strConsoleDebugTimeTaken'] = __('Time taken:');
727 $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".');
728 // For modals in db_structure.php
729 $js_messages['strCopyTablesTo'] = __('Copy tables to');
730 $js_messages['strAddPrefix'] = __('Add table prefix');
731 $js_messages['strReplacePrefix'] = __('Replace table with prefix');
732 $js_messages['strCopyPrefix'] = __('Copy table with prefix');
734 /* For password strength simulation */
735 $js_messages['strExtrWeak'] = __('Extremely weak');
736 $js_messages['strVeryWeak'] = __('Very weak');
737 $js_messages['strWeak'] = __('Weak');
738 $js_messages['strGood'] = __('Good');
739 $js_messages['strStrong'] = __('Strong');
741 echo "var PMA_messages = new Array();\n";
742 foreach ($js_messages as $name => $js_message) {
743 Sanitize::printJsValue("PMA_messages['" . $name . "']", $js_message);
746 /* Calendar */
747 echo "var themeCalendarImage = '" , $GLOBALS['pmaThemeImage']
748 , 'b_calendar.png' , "';\n";
750 /* Image path */
751 echo "var pmaThemeImage = '" , $GLOBALS['pmaThemeImage'] , "';\n";
753 echo "var mysql_doc_template = '" , PhpMyAdmin\Util::getMySQLDocuURL('%s')
754 , "';\n";
756 //Max input vars allowed by PHP.
757 $maxInputVars = ini_get('max_input_vars');
758 echo 'var maxInputVars = '
759 , (false === $maxInputVars || '' == $maxInputVars ? 'false' : (int)$maxInputVars)
760 , ';' . "\n";
762 echo "if ($.datepicker) {\n";
763 /* l10n: Display text for calendar close link */
764 Sanitize::printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
765 /* l10n: Display text for previous month link in calendar */
766 Sanitize::printJsValue(
767 "$.datepicker.regional['']['prevText']",
768 _pgettext('Previous month', 'Prev')
770 /* l10n: Display text for next month link in calendar */
771 Sanitize::printJsValue(
772 "$.datepicker.regional['']['nextText']",
773 _pgettext('Next month', 'Next')
775 /* l10n: Display text for current month link in calendar */
776 Sanitize::printJsValue("$.datepicker.regional['']['currentText']", __('Today'));
777 Sanitize::printJsValue(
778 "$.datepicker.regional['']['monthNames']",
779 array(
780 __('January'),
781 __('February'),
782 __('March'),
783 __('April'),
784 __('May'),
785 __('June'),
786 __('July'),
787 __('August'),
788 __('September'),
789 __('October'),
790 __('November'),
791 __('December')
794 Sanitize::printJsValue(
795 "$.datepicker.regional['']['monthNamesShort']",
796 array(
797 /* l10n: Short month name */
798 __('Jan'),
799 /* l10n: Short month name */
800 __('Feb'),
801 /* l10n: Short month name */
802 __('Mar'),
803 /* l10n: Short month name */
804 __('Apr'),
805 /* l10n: Short month name */
806 _pgettext('Short month name', 'May'),
807 /* l10n: Short month name */
808 __('Jun'),
809 /* l10n: Short month name */
810 __('Jul'),
811 /* l10n: Short month name */
812 __('Aug'),
813 /* l10n: Short month name */
814 __('Sep'),
815 /* l10n: Short month name */
816 __('Oct'),
817 /* l10n: Short month name */
818 __('Nov'),
819 /* l10n: Short month name */
820 __('Dec')
823 Sanitize::printJsValue(
824 "$.datepicker.regional['']['dayNames']",
825 array(
826 __('Sunday'),
827 __('Monday'),
828 __('Tuesday'),
829 __('Wednesday'),
830 __('Thursday'),
831 __('Friday'),
832 __('Saturday')
835 Sanitize::printJsValue(
836 "$.datepicker.regional['']['dayNamesShort']",
837 array(
838 /* l10n: Short week day name */
839 __('Sun'),
840 /* l10n: Short week day name */
841 __('Mon'),
842 /* l10n: Short week day name */
843 __('Tue'),
844 /* l10n: Short week day name */
845 __('Wed'),
846 /* l10n: Short week day name */
847 __('Thu'),
848 /* l10n: Short week day name */
849 __('Fri'),
850 /* l10n: Short week day name */
851 __('Sat')
854 Sanitize::printJsValue(
855 "$.datepicker.regional['']['dayNamesMin']",
856 array(
857 /* l10n: Minimal week day name */
858 __('Su'),
859 /* l10n: Minimal week day name */
860 __('Mo'),
861 /* l10n: Minimal week day name */
862 __('Tu'),
863 /* l10n: Minimal week day name */
864 __('We'),
865 /* l10n: Minimal week day name */
866 __('Th'),
867 /* l10n: Minimal week day name */
868 __('Fr'),
869 /* l10n: Minimal week day name */
870 __('Sa')
873 /* l10n: Column header for week of the year in calendar */
874 Sanitize::printJsValue("$.datepicker.regional['']['weekHeader']", __('Wk'));
876 Sanitize::printJsValue(
877 "$.datepicker.regional['']['showMonthAfterYear']",
878 /* l10n: Month-year order for calendar, use either "calendar-month-year"
879 * or "calendar-year-month".
881 (__('calendar-month-year') == 'calendar-year-month')
883 /* l10n: Year suffix for calendar, "none" is empty. */
884 $year_suffix = _pgettext('Year suffix', 'none');
885 Sanitize::printJsValue(
886 "$.datepicker.regional['']['yearSuffix']",
887 ($year_suffix == 'none' ? '' : $year_suffix)
890 $.extend($.datepicker._defaults, $.datepicker.regional['']);
891 } /* if ($.datepicker) */
893 <?php
894 echo "if ($.timepicker) {\n";
895 Sanitize::printJsValue("$.timepicker.regional['']['timeText']", __('Time'));
896 Sanitize::printJsValue("$.timepicker.regional['']['hourText']", __('Hour'));
897 Sanitize::printJsValue("$.timepicker.regional['']['minuteText']", __('Minute'));
898 Sanitize::printJsValue("$.timepicker.regional['']['secondText']", __('Second'));
900 $.extend($.timepicker._defaults, $.timepicker.regional['']);
901 } /* if ($.timepicker) */
903 <?php
904 /* Form validation */
906 echo "function extendingValidatorMessages() {\n";
907 echo "$.extend($.validator.messages, {\n";
908 /* Default validation functions */
909 Sanitize::printJsValueForFormValidation('required', __('This field is required'));
910 Sanitize::printJsValueForFormValidation('remote', __('Please fix this field'));
911 Sanitize::printJsValueForFormValidation('email', __('Please enter a valid email address'));
912 Sanitize::printJsValueForFormValidation('url', __('Please enter a valid URL'));
913 Sanitize::printJsValueForFormValidation('date', __('Please enter a valid date'));
914 Sanitize::printJsValueForFormValidation(
915 'dateISO',
916 __('Please enter a valid date ( ISO )')
918 Sanitize::printJsValueForFormValidation('number', __('Please enter a valid number'));
919 Sanitize::printJsValueForFormValidation(
920 'creditcard',
921 __('Please enter a valid credit card number')
923 Sanitize::printJsValueForFormValidation('digits', __('Please enter only digits'));
924 Sanitize::printJsValueForFormValidation(
925 'equalTo',
926 __('Please enter the same value again')
928 Sanitize::printJsValueForFormValidation(
929 'maxlength',
930 __('Please enter no more than {0} characters'),
931 true
933 Sanitize::printJsValueForFormValidation(
934 'minlength',
935 __('Please enter at least {0} characters'),
936 true
938 Sanitize::printJsValueForFormValidation(
939 'rangelength',
940 __('Please enter a value between {0} and {1} characters long'),
941 true
943 Sanitize::printJsValueForFormValidation(
944 'range',
945 __('Please enter a value between {0} and {1}'),
946 true
948 Sanitize::printJsValueForFormValidation(
949 'max',
950 __('Please enter a value less than or equal to {0}'),
951 true
953 Sanitize::printJsValueForFormValidation(
954 'min',
955 __('Please enter a value greater than or equal to {0}'),
956 true
958 /* customed functions */
959 Sanitize::printJsValueForFormValidation(
960 'validationFunctionForDateTime',
961 __('Please enter a valid date or time'),
962 true
964 Sanitize::printJsValueForFormValidation(
965 'validationFunctionForHex',
966 __('Please enter a valid HEX input'),
967 true
969 Sanitize::printJsValueForFormValidation(
970 'validationFunctionForFuns',
971 __('Error'),
972 true,
973 false
975 echo "\n});";
976 echo "\n} /* if ($.validator) */";