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