Translated using Weblate (Slovenian)
[phpmyadmin.git] / js / messages.php
blobbd807543b1d08686178224f4cfb0790aafdeb73f
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 PMA\libraries\Sanitize;
32 $buffer = PMA\libraries\OutputBuffering::getInstance();
33 $buffer->start();
34 if (!defined('TESTSUITE')) {
35 register_shutdown_function(
36 function () {
37 echo PMA\libraries\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 Create Table */
129 $js_messages['strLeastColumnError'] = __('You have to add at least one column.');
131 /* For Preview SQL*/
132 $js_messages['strPreviewSQL'] = __('Preview SQL');
134 /* For Simulate DML*/
135 $js_messages['strSimulateDML'] = __('Simulate query');
136 $js_messages['strMatchedRows'] = __('Matched rows:');
137 $js_messages['strSQLQuery'] = __('SQL query:');
139 /* Charts */
140 /* l10n: Default label for the y-Axis of Charts */
141 $js_messages['strYValues'] = __('Y values');
143 /* For server_privileges.js */
144 $js_messages['strHostEmpty'] = __('The host name is empty!');
145 $js_messages['strUserEmpty'] = __('The user name is empty!');
146 $js_messages['strPasswordEmpty'] = __('The password is empty!');
147 $js_messages['strPasswordNotSame'] = __('The passwords aren\'t the same!');
148 $js_messages['strRemovingSelectedUsers'] = __('Removing Selected Users');
149 $js_messages['strClose'] = __('Close');
151 /* For export.js */
152 $js_messages['strTemplateCreated'] = __('Template was created.');
153 $js_messages['strTemplateLoaded'] = __('Template was loaded.');
154 $js_messages['strTemplateUpdated'] = __('Template was updated.');
155 $js_messages['strTemplateDeleted'] = __('Template was deleted.');
157 /* l10n: Other, small valued, queries */
158 $js_messages['strOther'] = __('Other');
159 /* l10n: Thousands separator */
160 $js_messages['strThousandsSeparator'] = __(',');
161 /* l10n: Decimal separator */
162 $js_messages['strDecimalSeparator'] = __('.');
164 $js_messages['strChartConnectionsTitle'] = __('Connections / Processes');
166 /* server status monitor */
167 $js_messages['strIncompatibleMonitorConfig']
168 = __('Local monitor configuration incompatible!');
169 $js_messages['strIncompatibleMonitorConfigDescription'] = __(
170 'The chart arrangement configuration in your browsers local storage is not '
171 . 'compatible anymore to the newer version of the monitor dialog. It is very '
172 . 'likely that your current configuration will not work anymore. Please reset '
173 . 'your configuration to default in the <i>Settings</i> menu.'
176 $js_messages['strQueryCacheEfficiency'] = __('Query cache efficiency');
177 $js_messages['strQueryCacheUsage'] = __('Query cache usage');
178 $js_messages['strQueryCacheUsed'] = __('Query cache used');
180 $js_messages['strSystemCPUUsage'] = __('System CPU usage');
181 $js_messages['strSystemMemory'] = __('System memory');
182 $js_messages['strSystemSwap'] = __('System swap');
184 $js_messages['strAverageLoad'] = __('Average load');
185 $js_messages['strTotalMemory'] = __('Total memory');
186 $js_messages['strCachedMemory'] = __('Cached memory');
187 $js_messages['strBufferedMemory'] = __('Buffered memory');
188 $js_messages['strFreeMemory'] = __('Free memory');
189 $js_messages['strUsedMemory'] = __('Used memory');
191 $js_messages['strTotalSwap'] = __('Total swap');
192 $js_messages['strCachedSwap'] = __('Cached swap');
193 $js_messages['strUsedSwap'] = __('Used swap');
194 $js_messages['strFreeSwap'] = __('Free swap');
196 $js_messages['strBytesSent'] = __('Bytes sent');
197 $js_messages['strBytesReceived'] = __('Bytes received');
198 $js_messages['strConnections'] = __('Connections');
199 $js_messages['strProcesses'] = __('Processes');
201 /* summary row */
202 $js_messages['strB'] = __('B');
203 $js_messages['strKiB'] = __('KiB');
204 $js_messages['strMiB'] = __('MiB');
205 $js_messages['strGiB'] = __('GiB');
206 $js_messages['strTiB'] = __('TiB');
207 $js_messages['strPiB'] = __('PiB');
208 $js_messages['strEiB'] = __('EiB');
209 $js_messages['strNTables'] = __('%d table(s)');
211 /* l10n: Questions is the name of a MySQL Status variable */
212 $js_messages['strQuestions'] = __('Questions');
213 $js_messages['strTraffic'] = __('Traffic');
214 $js_messages['strSettings'] = __('Settings');
215 $js_messages['strAddChart'] = __('Add chart to grid');
216 $js_messages['strClose'] = __('Close');
217 $js_messages['strAddOneSeriesWarning']
218 = __('Please add at least one variable to the series!');
219 $js_messages['strNone'] = __('None');
220 $js_messages['strResumeMonitor'] = __('Resume monitor');
221 $js_messages['strPauseMonitor'] = __('Pause monitor');
222 $js_messages['strStartRefresh'] = __('Start auto refresh');
223 $js_messages['strStopRefresh'] = __('Stop auto refresh');
224 /* Monitor: Instructions Dialog */
225 $js_messages['strBothLogOn'] = __('general_log and slow_query_log are enabled.');
226 $js_messages['strGenLogOn'] = __('general_log is enabled.');
227 $js_messages['strSlowLogOn'] = __('slow_query_log is enabled.');
228 $js_messages['strBothLogOff'] = __('slow_query_log and general_log are disabled.');
229 $js_messages['strLogOutNotTable'] = __('log_output is not set to TABLE.');
230 $js_messages['strLogOutIsTable'] = __('log_output is set to TABLE.');
231 $js_messages['strSmallerLongQueryTimeAdvice'] = __(
232 'slow_query_log is enabled, but the server logs only queries that take longer '
233 . 'than %d seconds. It is advisable to set this long_query_time 0-2 seconds, '
234 . 'depending on your system.'
236 $js_messages['strLongQueryTimeSet'] = __('long_query_time is set to %d second(s).');
237 $js_messages['strSettingsAppliedGlobal'] = __(
238 'Following settings will be applied globally and reset to default on server '
239 . 'restart:'
241 /* l10n: %s is FILE or TABLE */
242 $js_messages['strSetLogOutput'] = __('Set log_output to %s');
243 /* l10n: Enable in this context means setting a status variable to ON */
244 $js_messages['strEnableVar'] = __('Enable %s');
245 /* l10n: Disable in this context means setting a status variable to OFF */
246 $js_messages['strDisableVar'] = __('Disable %s');
247 /* l10n: %d seconds */
248 $js_messages['setSetLongQueryTime'] = __('Set long_query_time to %d seconds.');
249 $js_messages['strNoSuperUser'] = __(
250 'You can\'t change these variables. Please log in as root or contact'
251 . ' your database administrator.'
253 $js_messages['strChangeSettings'] = __('Change settings');
254 $js_messages['strCurrentSettings'] = __('Current settings');
256 $js_messages['strChartTitle'] = __('Chart title');
257 /* l10n: As in differential values */
258 $js_messages['strDifferential'] = __('Differential');
259 $js_messages['strDividedBy'] = __('Divided by %s');
260 $js_messages['strUnit'] = __('Unit');
262 $js_messages['strFromSlowLog'] = __('From slow log');
263 $js_messages['strFromGeneralLog'] = __('From general log');
264 $js_messages['strServerLogError'] = __(
265 'The database name is not known for this query in the server\'s logs.'
267 $js_messages['strAnalysingLogsTitle'] = __('Analysing logs');
268 $js_messages['strAnalysingLogs']
269 = __('Analysing & loading logs. This may take a while.');
270 $js_messages['strCancelRequest'] = __('Cancel request');
271 $js_messages['strCountColumnExplanation'] = __(
272 'This column shows the amount of identical queries that are grouped together. '
273 . 'However only the SQL query itself has been used as a grouping criteria, so '
274 . 'the other attributes of queries, such as start time, may differ.'
276 $js_messages['strMoreCountColumnExplanation'] = __(
277 'Since grouping of INSERTs queries has been selected, INSERT queries into the '
278 . 'same table are also being grouped together, disregarding of the inserted '
279 . 'data.'
281 $js_messages['strLogDataLoaded']
282 = __('Log data loaded. Queries executed in this time span:');
284 $js_messages['strJumpToTable'] = __('Jump to Log table');
285 $js_messages['strNoDataFoundTitle'] = __('No data found');
286 $js_messages['strNoDataFound']
287 = __('Log analysed, but no data found in this time span.');
289 $js_messages['strAnalyzing'] = __('Analyzing…');
290 $js_messages['strExplainOutput'] = __('Explain output');
291 $js_messages['strStatus'] = __('Status');
292 $js_messages['strTime'] = __('Time');
293 $js_messages['strTotalTime'] = __('Total time:');
294 $js_messages['strProfilingResults'] = __('Profiling results');
295 $js_messages['strTable'] = _pgettext('Display format', 'Table');
296 $js_messages['strChart'] = __('Chart');
298 /* l10n: A collection of available filters */
299 $js_messages['strFiltersForLogTable'] = __('Log table filter options');
300 /* l10n: Filter as in "Start Filtering" */
301 $js_messages['strFilter'] = __('Filter');
302 $js_messages['strFilterByWordRegexp'] = __('Filter queries by word/regexp:');
303 $js_messages['strIgnoreWhereAndGroup']
304 = __('Group queries, ignoring variable data in WHERE clauses');
305 $js_messages['strSumRows'] = __('Sum of grouped rows:');
306 $js_messages['strTotal'] = __('Total:');
308 $js_messages['strLoadingLogs'] = __('Loading logs');
309 $js_messages['strRefreshFailed'] = __('Monitor refresh failed');
310 $js_messages['strInvalidResponseExplanation'] = __(
311 'While requesting new chart data the server returned an invalid response. This '
312 . 'is most likely because your session expired. Reloading the page and '
313 . 'reentering your credentials should help.'
315 $js_messages['strReloadPage'] = __('Reload page');
317 $js_messages['strAffectedRows'] = __('Affected rows:');
319 $js_messages['strFailedParsingConfig'] = __(
320 'Failed parsing config file. It doesn\'t seem to be valid JSON code.'
322 $js_messages['strFailedBuildingGrid'] = __(
323 'Failed building chart grid with imported config. Resetting to default config…'
325 $js_messages['strImport'] = __('Import');
326 $js_messages['strImportDialogTitle'] = __('Import monitor configuration');
327 $js_messages['strImportDialogMessage']
328 = __('Please select the file you want to import.');
329 $js_messages['strNoImportFile'] = __('No files available on server for import!');
331 $js_messages['strAnalyzeQuery'] = __('Analyse query');
333 /* Server status advisor */
335 $js_messages['strAdvisorSystem'] = __('Advisor system');
336 $js_messages['strPerformanceIssues'] = __('Possible performance issues');
337 $js_messages['strIssuse'] = __('Issue');
338 $js_messages['strRecommendation'] = __('Recommendation');
339 $js_messages['strRuleDetails'] = __('Rule details');
340 $js_messages['strJustification'] = __('Justification');
341 $js_messages['strFormula'] = __('Used variable / formula');
342 $js_messages['strTest'] = __('Test');
344 /* For query editor */
345 $js_messages['strFormatting'] = __('Formatting SQL…');
346 $js_messages['strNoParam'] = __('No parameters found!');
348 /* For inline query editing */
349 $js_messages['strGo'] = __('Go');
350 $js_messages['strCancel'] = __('Cancel');
352 /* For page-related settings */
353 $js_messages['strPageSettings'] = __('Page-related settings');
354 $js_messages['strApply'] = __('Apply');
356 /* For Ajax Notifications */
357 $js_messages['strLoading'] = __('Loading…');
358 $js_messages['strAbortedRequest'] = __('Request aborted!!');
359 $js_messages['strProcessingRequest'] = __('Processing request');
360 $js_messages['strRequestFailed'] = __('Request failed!!');
361 $js_messages['strErrorProcessingRequest'] = __('Error in processing request');
362 $js_messages['strErrorCode'] = __('Error code: %s');
363 $js_messages['strErrorText'] = __('Error text: %s');
364 $js_messages['strNoDatabasesSelected'] = __('No databases selected.');
365 $js_messages['strDroppingColumn'] = __('Dropping column');
366 $js_messages['strAddingPrimaryKey'] = __('Adding primary key');
367 $js_messages['strOK'] = __('OK');
368 $js_messages['strDismiss'] = __('Click to dismiss this notification');
370 /* For db_operations.js */
371 $js_messages['strRenamingDatabases'] = __('Renaming databases');
372 $js_messages['strCopyingDatabase'] = __('Copying database');
373 $js_messages['strChangingCharset'] = __('Changing charset');
374 $js_messages['strNo'] = __('No');
376 /* For Foreign key checks */
377 $js_messages['strForeignKeyCheck'] = __('Enable foreign key checks');
379 /* For db_stucture.js */
380 $js_messages['strErrorRealRowCount'] = __('Failed to get real row count.');
382 /* For db_search.js */
383 $js_messages['strSearching'] = __('Searching');
384 $js_messages['strHideSearchResults'] = __('Hide search results');
385 $js_messages['strShowSearchResults'] = __('Show search results');
386 $js_messages['strBrowsing'] = __('Browsing');
387 $js_messages['strDeleting'] = __('Deleting');
388 $js_messages['strConfirmDeleteResults'] = __('Delete the matches for the %s table?');
390 /* For db_routines.js */
391 $js_messages['MissingReturn']
392 = __('The definition of a stored function must contain a RETURN statement!');
393 $js_messages['strExport'] = __('Export');
394 $js_messages['NoExportable']
395 = __('No routine is exportable. Required privileges may be lacking.');
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)');
404 /* For import.js */
405 $js_messages['strImportCSV'] = __(
406 'Note: If the file contains multiple tables, they will be combined into one.'
409 /* For sql.js */
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 '
457 . 'the table.'
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.')
490 . '</li><li>'
491 . __('Hovering over a point will show its label.')
492 . '</li><li>'
493 . __('To zoom in, select a section of the plot with the mouse.')
494 . '</li><li>'
495 . __('Click reset zoom button to come back to original state.')
496 . '</li><li>'
497 . __('Click a data point to view and possibly edit the data row.')
498 . '</li><li>'
499 . __('The plot can be resized by dragging it along the bottom right corner.')
500 . '</li></ul>';
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')
505 . '</strong>';
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 Tip to be shown on Time field */
527 $js_messages['strMysqlAllowedValuesTipTime'] = __(
528 'MySQL accepts additional values not selectable by the slider;'
529 . ' key in those values directly if desired'
532 /* For Tip to be shown on Date field */
533 $js_messages['strMysqlAllowedValuesTipDate'] = __(
534 'MySQL accepts additional values not selectable by the datepicker;'
535 . ' key in those values directly if desired'
538 /* For Lock symbol Tooltip */
539 $js_messages['strLockToolTip'] = __(
540 'Indicates that you have made changes to this page;'
541 . ' you will be prompted for confirmation before abandoning changes'
544 /* Designer (js/pmd/move.js) */
545 $js_messages['strSelectReferencedKey'] = __('Select referenced key');
546 $js_messages['strSelectForeignKey'] = __('Select Foreign Key');
547 $js_messages['strPleaseSelectPrimaryOrUniqueKey']
548 = __('Please select the primary key or a unique key!');
549 $js_messages['strChangeDisplay'] = __('Choose column to display');
550 $js_messages['strLeavingDesigner'] = __(
551 'You haven\'t saved the changes in the layout. They will be lost if you'
552 . ' don\'t save them. Do you want to continue?'
554 $js_messages['strPageName'] = __('Page name');
555 $js_messages['strSavePage'] = __('Save page');
556 $js_messages['strSavePageAs'] = __('Save page as');
557 $js_messages['strOpenPage'] = __('Open page');
558 $js_messages['strDeletePage'] = __('Delete page');
559 $js_messages['strUntitled'] = __('Untitled');
560 $js_messages['strSelectPage'] = __('Please select a page to continue');
561 $js_messages['strEnterValidPageName'] = __('Please enter a valid page name');
562 $js_messages['strLeavingPage']
563 = __('Do you want to save the changes to the current page?');
564 $js_messages['strSuccessfulPageDelete'] = __('Successfully deleted the page');
565 $js_messages['strExportRelationalSchema'] = __('Export relational schema');
566 $js_messages['strModificationSaved'] = __('Modifications have been saved');
568 /* Visual query builder (js/pmd/move.js) */
569 $js_messages['strAddOption'] = __('Add an option for column "%s".');
570 $js_messages['strObjectsCreated'] = __('%d object(s) created.');
571 $js_messages['strSubmit'] = __('Submit');
573 /* For makegrid.js (column reordering, show/hide column, grid editing) */
574 $js_messages['strCellEditHint'] = __('Press escape to cancel editing.');
575 $js_messages['strSaveCellWarning'] = __(
576 'You have edited some data and they have not been saved. Are you sure you want '
577 . 'to leave this page before saving the data?'
579 $js_messages['strColOrderHint'] = __('Drag to reorder.');
580 $js_messages['strSortHint'] = __('Click to sort results by this column.');
581 $js_messages['strMultiSortHint'] = __(
582 'Shift+Click to add this column to ORDER BY clause or to toggle ASC/DESC.'
583 . '<br />- Ctrl+Click or Alt+Click (Mac: Shift+Option+Click) to remove column '
584 . 'from ORDER BY clause'
586 $js_messages['strColMarkHint'] = __('Click to mark/unmark.');
587 $js_messages['strColNameCopyHint'] = __('Double-click to copy column name.');
588 $js_messages['strColVisibHint'] = __(
589 'Click the drop-down arrow<br />to toggle column\'s visibility.'
591 $js_messages['strShowAllCol'] = __('Show all');
592 $js_messages['strAlertNonUnique'] = __(
593 'This table does not contain a unique column. Features related to the grid '
594 . 'edit, checkbox, Edit, Copy and Delete links may not work after saving.'
596 $js_messages['strEnterValidHex']
597 = __('Please enter a valid hexadecimal string. Valid characters are 0-9, A-F.');
598 $js_messages['strShowAllRowsWarning'] = __(
599 'Do you really want to see all of the rows? For a big table this could crash '
600 . 'the browser.'
602 $js_messages['strOriginalLength'] = __('Original length');
604 /** Drag & Drop sql import messages */
605 $js_messages['dropImportMessageCancel'] = __('cancel');
606 $js_messages['dropImportMessageAborted'] = __('Aborted');
607 $js_messages['dropImportMessageFailed'] = __('Failed');
608 $js_messages['dropImportMessageSuccess'] = __('Success');
609 $js_messages['dropImportImportResultHeader'] = __('Import status');
610 $js_messages['dropImportDropFiles'] = __('Drop files here');
611 $js_messages['dropImportSelectDB'] = __('Select database first');
613 /* For Print view */
614 $js_messages['print'] = __('Print');
615 $js_messages['back'] = __('Back');
617 // this approach does not work when the parameter is changed via user prefs
618 switch ($GLOBALS['cfg']['GridEditing']) {
619 case 'double-click':
620 $js_messages['strGridEditFeatureHint'] = __(
621 'You can also edit most values<br />by double-clicking directly on them.'
623 break;
624 case 'click':
625 $js_messages['strGridEditFeatureHint'] = __(
626 'You can also edit most values<br />by clicking directly on them.'
628 break;
629 default:
630 break;
632 $js_messages['strGoToLink'] = __('Go to link:');
633 $js_messages['strColNameCopyTitle'] = __('Copy column name.');
634 $js_messages['strColNameCopyText']
635 = __('Right-click the column name to copy it to your clipboard.');
637 /* password generation */
638 $js_messages['strGeneratePassword'] = __('Generate password');
639 $js_messages['strGenerate'] = __('Generate');
640 $js_messages['strChangePassword'] = __('Change password');
642 /* navigation tabs */
643 $js_messages['strMore'] = __('More');
645 /* navigation panel */
646 $js_messages['strShowPanel'] = __('Show panel');
647 $js_messages['strHidePanel'] = __('Hide panel');
648 $js_messages['strUnhideNavItem'] = __('Show hidden navigation tree items.');
649 $js_messages['linkWithMain'] = __('Link with main panel');
650 $js_messages['unlinkWithMain'] = __('Unlink from main panel');
652 /* microhistory */
653 $js_messages['strInvalidPage']
654 = __('The requested page was not found in the history, it may have expired.');
656 /* update */
657 $js_messages['strNewerVersion'] = __(
658 'A newer version of phpMyAdmin is available and you should consider upgrading. '
659 . 'The newest version is %s, released on %s.'
661 /* l10n: Latest available phpMyAdmin version */
662 $js_messages['strLatestAvailable'] = __(', latest stable version:');
663 $js_messages['strUpToDate'] = __('up to date');
665 $js_messages['strCreateView'] = __('Create view');
667 /* Error Reporting */
668 $js_messages['strSendErrorReport'] = __("Send error report");
669 $js_messages['strSubmitErrorReport'] = __("Submit error report");
670 $js_messages['strErrorOccurred'] = __(
671 "A fatal JavaScript error has occurred. Would you like to send an error report?"
673 $js_messages['strChangeReportSettings'] = __("Change report settings");
674 $js_messages['strShowReportDetails'] = __("Show report details");
675 $js_messages['strIgnore'] = __("Ignore");
676 $js_messages['strTimeOutError'] = __(
677 "Your export is incomplete, due to a low execution time limit at the PHP level!"
680 $js_messages['strTooManyInputs'] = __(
681 "Warning: a form on this page has more than %d fields. On submission, "
682 . "some of the fields might be ignored, due to PHP's "
683 . "max_input_vars configuration."
686 $js_messages['phpErrorsFound'] = '<div class="error">'
687 . __('Some errors have been detected on the server!')
688 . '<br/>'
689 . __('Please look at the bottom of this window.')
690 . '<div>'
691 . '<input id="pma_ignore_errors_popup" type="submit" value="'
692 . __('Ignore')
693 . '" class="floatright" style="margin-top: 20px;">'
694 . '<input id="pma_ignore_all_errors_popup" type="submit" value="'
695 . __('Ignore All')
696 . '" class="floatright" style="margin-top: 20px;">'
697 . '</div></div>';
699 $js_messages['phpErrorsBeingSubmitted'] = '<div class="error">'
700 . __('Some errors have been detected on the server!')
701 . '<br/>'
702 . __(
703 'As per your settings, they are being submitted currently, please be '
704 . 'patient.'
706 . '<br/>'
707 . '<img src="'
708 . ($_SESSION['PMA_Theme']->getImgPath('ajax_clock_small.gif'))
709 . '" width="16" height="16" alt="ajax clock"/>'
710 . '</div>';
712 // For console
713 $js_messages['strConsoleRequeryConfirm'] = __('Execute this query again?');
714 $js_messages['strConsoleDeleteBookmarkConfirm']
715 = __('Do you really want to delete this bookmark?');
716 $js_messages['strConsoleDebugError']
717 = __('Some error occurred while getting SQL debug info.');
718 $js_messages['strConsoleDebugSummary']
719 = __('%s queries executed %s times in %s seconds.');
720 $js_messages['strConsoleDebugArgsSummary'] = __('%s argument(s) passed');
721 $js_messages['strConsoleDebugShowArgs'] = __('Show arguments');
722 $js_messages['strConsoleDebugHideArgs'] = __('Hide arguments');
723 $js_messages['strConsoleDebugTimeTaken'] = __('Time taken:');
724 $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".');
725 // For modals in db_structure.php
726 $js_messages['strCopyTablesTo'] = __('Copy tables to');
727 $js_messages['strAddPrefix'] = __('Add table prefix');
728 $js_messages['strReplacePrefix'] = __('Replace table with prefix');
729 $js_messages['strCopyPrefix'] = __('Copy table with prefix');
731 /* For password strength simulation */
732 $js_messages['strExtrWeak'] = __('Extremely weak');
733 $js_messages['strVeryWeak'] = __('Very weak');
734 $js_messages['strWeak'] = __('Weak');
735 $js_messages['strGood'] = __('Good');
736 $js_messages['strStrong'] = __('Strong');
738 echo "var PMA_messages = new Array();\n";
739 foreach ($js_messages as $name => $js_message) {
740 Sanitize::printJsValue("PMA_messages['" . $name . "']", $js_message);
743 /* Calendar */
744 echo "var themeCalendarImage = '" , $GLOBALS['pmaThemeImage']
745 , 'b_calendar.png' , "';\n";
747 /* Image path */
748 echo "var pmaThemeImage = '" , $GLOBALS['pmaThemeImage'] , "';\n";
750 echo "var mysql_doc_template = '" , PMA\libraries\Util::getMySQLDocuURL('%s')
751 , "';\n";
753 //Max input vars allowed by PHP.
754 $maxInputVars = ini_get('max_input_vars');
755 echo 'var maxInputVars = '
756 , (false === $maxInputVars || '' == $maxInputVars ? 'false' : (int)$maxInputVars)
757 , ';' . "\n";
759 echo "if ($.datepicker) {\n";
760 /* l10n: Display text for calendar close link */
761 Sanitize::printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
762 /* l10n: Display text for previous month link in calendar */
763 Sanitize::printJsValue(
764 "$.datepicker.regional['']['prevText']",
765 _pgettext('Previous month', 'Prev')
767 /* l10n: Display text for next month link in calendar */
768 Sanitize::printJsValue(
769 "$.datepicker.regional['']['nextText']",
770 _pgettext('Next month', 'Next')
772 /* l10n: Display text for current month link in calendar */
773 Sanitize::printJsValue("$.datepicker.regional['']['currentText']", __('Today'));
774 Sanitize::printJsValue(
775 "$.datepicker.regional['']['monthNames']",
776 array(
777 __('January'),
778 __('February'),
779 __('March'),
780 __('April'),
781 __('May'),
782 __('June'),
783 __('July'),
784 __('August'),
785 __('September'),
786 __('October'),
787 __('November'),
788 __('December')
791 Sanitize::printJsValue(
792 "$.datepicker.regional['']['monthNamesShort']",
793 array(
794 /* l10n: Short month name */
795 __('Jan'),
796 /* l10n: Short month name */
797 __('Feb'),
798 /* l10n: Short month name */
799 __('Mar'),
800 /* l10n: Short month name */
801 __('Apr'),
802 /* l10n: Short month name */
803 _pgettext('Short month name', 'May'),
804 /* l10n: Short month name */
805 __('Jun'),
806 /* l10n: Short month name */
807 __('Jul'),
808 /* l10n: Short month name */
809 __('Aug'),
810 /* l10n: Short month name */
811 __('Sep'),
812 /* l10n: Short month name */
813 __('Oct'),
814 /* l10n: Short month name */
815 __('Nov'),
816 /* l10n: Short month name */
817 __('Dec')
820 Sanitize::printJsValue(
821 "$.datepicker.regional['']['dayNames']",
822 array(
823 __('Sunday'),
824 __('Monday'),
825 __('Tuesday'),
826 __('Wednesday'),
827 __('Thursday'),
828 __('Friday'),
829 __('Saturday')
832 Sanitize::printJsValue(
833 "$.datepicker.regional['']['dayNamesShort']",
834 array(
835 /* l10n: Short week day name */
836 __('Sun'),
837 /* l10n: Short week day name */
838 __('Mon'),
839 /* l10n: Short week day name */
840 __('Tue'),
841 /* l10n: Short week day name */
842 __('Wed'),
843 /* l10n: Short week day name */
844 __('Thu'),
845 /* l10n: Short week day name */
846 __('Fri'),
847 /* l10n: Short week day name */
848 __('Sat')
851 Sanitize::printJsValue(
852 "$.datepicker.regional['']['dayNamesMin']",
853 array(
854 /* l10n: Minimal week day name */
855 __('Su'),
856 /* l10n: Minimal week day name */
857 __('Mo'),
858 /* l10n: Minimal week day name */
859 __('Tu'),
860 /* l10n: Minimal week day name */
861 __('We'),
862 /* l10n: Minimal week day name */
863 __('Th'),
864 /* l10n: Minimal week day name */
865 __('Fr'),
866 /* l10n: Minimal week day name */
867 __('Sa')
870 /* l10n: Column header for week of the year in calendar */
871 Sanitize::printJsValue("$.datepicker.regional['']['weekHeader']", __('Wk'));
873 Sanitize::printJsValue(
874 "$.datepicker.regional['']['showMonthAfterYear']",
875 /* l10n: Month-year order for calendar, use either "calendar-month-year"
876 * or "calendar-year-month".
878 (__('calendar-month-year') == 'calendar-year-month')
880 /* l10n: Year suffix for calendar, "none" is empty. */
881 $year_suffix = _pgettext('Year suffix', 'none');
882 Sanitize::printJsValue(
883 "$.datepicker.regional['']['yearSuffix']",
884 ($year_suffix == 'none' ? '' : $year_suffix)
887 $.extend($.datepicker._defaults, $.datepicker.regional['']);
888 } /* if ($.datepicker) */
890 <?php
891 echo "if ($.timepicker) {\n";
892 Sanitize::printJsValue("$.timepicker.regional['']['timeText']", __('Time'));
893 Sanitize::printJsValue("$.timepicker.regional['']['hourText']", __('Hour'));
894 Sanitize::printJsValue("$.timepicker.regional['']['minuteText']", __('Minute'));
895 Sanitize::printJsValue("$.timepicker.regional['']['secondText']", __('Second'));
897 $.extend($.timepicker._defaults, $.timepicker.regional['']);
898 } /* if ($.timepicker) */
900 <?php
901 /* Form validation */
903 echo "function extendingValidatorMessages() {\n";
904 echo "$.extend($.validator.messages, {\n";
905 /* Default validation functions */
906 Sanitize::printJsValueForFormValidation('required', __('This field is required'));
907 Sanitize::printJsValueForFormValidation('remote', __('Please fix this field'));
908 Sanitize::printJsValueForFormValidation('email', __('Please enter a valid email address'));
909 Sanitize::printJsValueForFormValidation('url', __('Please enter a valid URL'));
910 Sanitize::printJsValueForFormValidation('date', __('Please enter a valid date'));
911 Sanitize::printJsValueForFormValidation(
912 'dateISO',
913 __('Please enter a valid date ( ISO )')
915 Sanitize::printJsValueForFormValidation('number', __('Please enter a valid number'));
916 Sanitize::printJsValueForFormValidation(
917 'creditcard',
918 __('Please enter a valid credit card number')
920 Sanitize::printJsValueForFormValidation('digits', __('Please enter only digits'));
921 Sanitize::printJsValueForFormValidation(
922 'equalTo',
923 __('Please enter the same value again')
925 Sanitize::printJsValueForFormValidation(
926 'maxlength',
927 __('Please enter no more than {0} characters'),
928 true
930 Sanitize::printJsValueForFormValidation(
931 'minlength',
932 __('Please enter at least {0} characters'),
933 true
935 Sanitize::printJsValueForFormValidation(
936 'rangelength',
937 __('Please enter a value between {0} and {1} characters long'),
938 true
940 Sanitize::printJsValueForFormValidation(
941 'range',
942 __('Please enter a value between {0} and {1}'),
943 true
945 Sanitize::printJsValueForFormValidation(
946 'max',
947 __('Please enter a value less than or equal to {0}'),
948 true
950 Sanitize::printJsValueForFormValidation(
951 'min',
952 __('Please enter a value greater than or equal to {0}'),
953 true
955 /* customed functions */
956 Sanitize::printJsValueForFormValidation(
957 'validationFunctionForDateTime',
958 __('Please enter a valid date or time'),
959 true
961 Sanitize::printJsValueForFormValidation(
962 'validationFunctionForHex',
963 __('Please enter a valid HEX input'),
964 true
966 Sanitize::printJsValueForFormValidation(
967 'validationFunctionForFuns',
968 __('Error'),
969 true,
970 false
972 echo "\n});";
973 echo "\n} /* if ($.validator) */";