Merge remote-tracking branch 'origin/master'
[phpmyadmin.git] / js / messages.php
blob917e6d66507fe607e88dd593b7270bedcb5b7cbc
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Exporting of translated messages from PHP to Javascript
6 * @package PhpMyAdmin
7 */
9 chdir('..');
11 // Send correct type:
12 header('Content-Type: text/javascript; charset=UTF-8');
14 // Cache output in client - the nocache query parameter makes sure that this
15 // file is reloaded when config changes
16 header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');
18 // Avoid loading the full common.inc.php because this would add many
19 // non-js-compatible stuff like DOCTYPE
20 define('PMA_MINIMUM_COMMON', true);
21 define('PMA_PATH_TO_BASEDIR', '../');
22 require_once './libraries/common.inc.php';
23 // Close session early as we won't write anything there
24 session_write_close();
25 // But this one is needed for PMA_escapeJsString()
26 require_once './libraries/js_escape.lib.php';
27 require_once './libraries/Util.class.php';
29 require_once './libraries/OutputBuffering.class.php';
30 $buffer = PMA_OutputBuffering::getInstance();
31 $buffer->start();
32 register_shutdown_function(
33 function () {
34 echo PMA_OutputBuffering::getInstance()->getContents();
38 $js_messages['strNoDropDatabases'] = __('"DROP DATABASE" statements are disabled.');
39 if ($cfg['AllowUserDropDatabase']) {
40 $js_messages['strNoDropDatabases'] = '';
43 /* For confirmations */
44 $js_messages['strConfirm'] = __('Confirm');
45 $js_messages['strDoYouReally'] = __('Do you really want to execute "%s"?');
46 $js_messages['strDropDatabaseStrongWarning'] = __('You are about to DESTROY a complete database!');
47 $js_messages['strDropTableStrongWarning'] = __('You are about to DESTROY a complete table!');
48 $js_messages['strTruncateTableStrongWarning'] = __('You are about to TRUNCATE a complete table!');
49 $js_messages['strDeleteTrackingData'] = __('Delete tracking data for this table?');
50 $js_messages['strDeleteTrackingDataMultiple'] = __('Delete tracking data for these tables?');
51 $js_messages['strDeleteTrackingVersion'] = __('Delete tracking data for this version?');
52 $js_messages['strDeleteTrackingVersionMultiple'] = __('Delete tracking data for these versions?');
53 $js_messages['strDeletingTrackingEntry'] = __('Delete entry from tracking report?');
54 $js_messages['strDeletingTrackingData'] = __('Deleting tracking data');
55 $js_messages['strDroppingPrimaryKeyIndex'] = __('Dropping Primary Key/Index');
56 $js_messages['strDroppingForeignKey'] = __('Dropping Foreign key.');
57 $js_messages['strOperationTakesLongTime'] = __('This operation could take a long time. Proceed anyway?');
58 $js_messages['strDropUserGroupWarning'] = __('Do you really want to delete user group "%s"?');
59 $js_messages['strConfirmDeleteQBESearch'] = __('Do you really want to delete the search "%s"?');
60 $js_messages['strConfirmNavigation'] = __('You have unsaved changes; are you sure you want to leave this page?');
61 $js_messages['strDropUserWarning'] = __('Do you really want to revoke the selected user(s) ?');
62 $js_messages['strDeleteCentralColumnWarning'] = __('Do you really want to delete this central column?');
63 $js_messages['strDropRTEitems'] = __('Do you really want to delete the selected items?');
64 $js_messages['strDropPartitionWarning'] = __('Do you really want to DROP the selected partition(s)? This will also DELETE the data related to the selected partition(s)!');
65 $js_messages['strTruncatePartitionWarning'] = __('Do you really want to TRUNCATE the selected partition(s)?');
66 $js_messages['strChangeColumnCollation'] = __(
67 'This operation will attempt to convert your data to the new collation. In '
68 . 'rare cases, especially where a character doesn\'t exist in the new '
69 . 'collation, this process could cause the data to appear incorrectly under '
70 . 'the new collation; in this case we suggest you revert to the original '
71 . 'collation and refer to the tips at '
73 . '<a href="%s" target="garbled_data_wiki">' . __('Garbled Data') . '</a>.'
74 . '<br/><br/>'
75 . __('Are you sure you wish to change the collation and convert the data?');
76 $js_messages['strChangeAllColumnCollationsWarning'] = __(
77 'Through this operation, MySQL attempts to map the data values between collations. '
78 . 'If the character sets are incompatible, '
79 . 'there may be data loss and this lost data may <b>NOT</b> be recoverable simply '
80 . 'by changing back the column collation(s).'
81 . '<b> To convert existing data, it is suggested to use the column(s) editing feature '
82 . '(the "Change" Link) on the table structure page. </b>'
84 . '<br/><br/>'
85 . __('Are you sure you wish to change all the column collations and convert the data?');
87 /* For modal dialog buttons */
88 $js_messages['strSaveAndClose'] = __('Save & Close');
89 $js_messages['strReset'] = __('Reset');
90 $js_messages['strResetAll'] = __('Reset All');
92 /* For indexes */
93 $js_messages['strFormEmpty'] = __('Missing value in the form!');
94 $js_messages['strRadioUnchecked'] = __('Select at least one of the options!');
95 $js_messages['strEnterValidNumber'] = __('Please enter a valid number!');
96 $js_messages['strEnterValidLength'] = __('Please enter a valid length!');
97 $js_messages['strAddIndex'] = __('Add Index');
98 $js_messages['strEditIndex'] = __('Edit Index');
99 $js_messages['strAddToIndex'] = __('Add %s column(s) to index');
100 $js_messages['strCreateSingleColumnIndex'] = __('Create single-column index');
101 $js_messages['strCreateCompositeIndex'] = __('Create composite index');
102 $js_messages['strCompositeWith'] = __('Composite with:');
103 $js_messages['strMissingColumn'] = __('Please select column(s) for the index.');
105 /* For Create Table */
106 $js_messages['strLeastColumnError'] = __('You have to add at least one column.');
108 /* For Preview SQL*/
109 $js_messages['strPreviewSQL'] = __('Preview SQL');
111 /* For Simulate DML*/
112 $js_messages['strSimulateDML'] = __('Simulate query');
113 $js_messages['strMatchedRows'] = __('Matched rows:');
114 $js_messages['strSQLQuery'] = __('SQL query:');
116 /* Charts */
117 /* l10n: Default label for the y-Axis of Charts */
118 $js_messages['strYValues'] = __('Y Values');
120 /* For server_privileges.js */
121 $js_messages['strHostEmpty'] = __('The host name is empty!');
122 $js_messages['strUserEmpty'] = __('The user name is empty!');
123 $js_messages['strPasswordEmpty'] = __('The password is empty!');
124 $js_messages['strPasswordNotSame'] = __('The passwords aren\'t the same!');
125 $js_messages['strRemovingSelectedUsers'] = __('Removing Selected Users');
126 $js_messages['strClose'] = __('Close');
128 /* For export.js */
129 $js_messages['strTemplateCreated'] = __('Template was created.');
130 $js_messages['strTemplateLoaded'] = __('Template was loaded.');
131 $js_messages['strTemplateUpdated'] = __('Template was updated.');
132 $js_messages['strTemplateDeleted'] = __('Template was deleted.');
134 /* l10n: Other, small valued, queries */
135 $js_messages['strOther'] = __('Other');
136 /* l10n: Thousands separator */
137 $js_messages['strThousandsSeparator'] = __(',');
138 /* l10n: Decimal separator */
139 $js_messages['strDecimalSeparator'] = __('.');
141 $js_messages['strChartConnectionsTitle'] = __('Connections / Processes');
143 /* server status monitor */
144 $js_messages['strIncompatibleMonitorConfig'] = __('Local monitor configuration incompatible!');
145 $js_messages['strIncompatibleMonitorConfigDescription'] = __('The chart arrangement configuration in your browsers local storage is not compatible anymore to the newer version of the monitor dialog. It is very likely that your current configuration will not work anymore. Please reset your configuration to default in the <i>Settings</i> menu.');
147 $js_messages['strQueryCacheEfficiency'] = __('Query cache efficiency');
148 $js_messages['strQueryCacheUsage'] = __('Query cache usage');
149 $js_messages['strQueryCacheUsed'] = __('Query cache used');
151 $js_messages['strSystemCPUUsage'] = __('System CPU Usage');
152 $js_messages['strSystemMemory'] = __('System memory');
153 $js_messages['strSystemSwap'] = __('System swap');
155 $js_messages['strAverageLoad'] = __('Average load');
156 $js_messages['strTotalMemory'] = __('Total memory');
157 $js_messages['strCachedMemory'] = __('Cached memory');
158 $js_messages['strBufferedMemory'] = __('Buffered memory');
159 $js_messages['strFreeMemory'] = __('Free memory');
160 $js_messages['strUsedMemory'] = __('Used memory');
162 $js_messages['strTotalSwap'] = __('Total Swap');
163 $js_messages['strCachedSwap'] = __('Cached Swap');
164 $js_messages['strUsedSwap'] = __('Used Swap');
165 $js_messages['strFreeSwap'] = __('Free Swap');
167 $js_messages['strBytesSent'] = __('Bytes sent');
168 $js_messages['strBytesReceived'] = __('Bytes received');
169 $js_messages['strConnections'] = __('Connections');
170 $js_messages['strProcesses'] = __('Processes');
172 /* summary row */
173 $js_messages['strB'] = __('B');
174 $js_messages['strKiB'] = __('KiB');
175 $js_messages['strMiB'] = __('MiB');
176 $js_messages['strGiB'] = __('GiB');
177 $js_messages['strTiB'] = __('TiB');
178 $js_messages['strPiB'] = __('PiB');
179 $js_messages['strEiB'] = __('EiB');
180 $js_messages['strNTables'] = __('%d table(s)');
182 /* l10n: Questions is the name of a MySQL Status variable */
183 $js_messages['strQuestions'] = __('Questions');
184 $js_messages['strTraffic'] = __('Traffic');
185 $js_messages['strSettings'] = __('Settings');
186 $js_messages['strAddChart'] = __('Add chart to grid');
187 $js_messages['strClose'] = __('Close');
188 $js_messages['strAddOneSeriesWarning'] = __('Please add at least one variable to the series!');
189 $js_messages['strNone'] = __('None');
190 $js_messages['strResumeMonitor'] = __('Resume monitor');
191 $js_messages['strPauseMonitor'] = __('Pause monitor');
192 $js_messages['strStartRefresh'] = __('Start auto refresh');
193 $js_messages['strStopRefresh'] = __('Stop auto refresh');
194 /* Monitor: Instructions Dialog */
195 $js_messages['strBothLogOn'] = __('general_log and slow_query_log are enabled.');
196 $js_messages['strGenLogOn'] = __('general_log is enabled.');
197 $js_messages['strSlowLogOn'] = __('slow_query_log is enabled.');
198 $js_messages['strBothLogOff'] = __('slow_query_log and general_log are disabled.');
199 $js_messages['strLogOutNotTable'] = __('log_output is not set to TABLE.');
200 $js_messages['strLogOutIsTable'] = __('log_output is set to TABLE.');
201 $js_messages['strSmallerLongQueryTimeAdvice'] = __('slow_query_log is enabled, but the server logs only queries that take longer than %d seconds. It is advisable to set this long_query_time 0-2 seconds, depending on your system.');
202 $js_messages['strLongQueryTimeSet'] = __('long_query_time is set to %d second(s).');
203 $js_messages['strSettingsAppliedGlobal'] = __('Following settings will be applied globally and reset to default on server restart:');
204 /* l10n: %s is FILE or TABLE */
205 $js_messages['strSetLogOutput'] = __('Set log_output to %s');
206 /* l10n: Enable in this context means setting a status variable to ON */
207 $js_messages['strEnableVar'] = __('Enable %s');
208 /* l10n: Disable in this context means setting a status variable to OFF */
209 $js_messages['strDisableVar'] = __('Disable %s');
210 /* l10n: %d seconds */
211 $js_messages['setSetLongQueryTime'] = __('Set long_query_time to %d seconds.');
212 $js_messages['strNoSuperUser'] = __(
213 'You can\'t change these variables. Please log in as root or contact'
214 . ' your database administrator.'
216 $js_messages['strChangeSettings'] = __('Change settings');
217 $js_messages['strCurrentSettings'] = __('Current settings');
219 $js_messages['strChartTitle'] = __('Chart Title');
220 /* l10n: As in differential values */
221 $js_messages['strDifferential'] = __('Differential');
222 $js_messages['strDividedBy'] = __('Divided by %s');
223 $js_messages['strUnit'] = __('Unit');
225 $js_messages['strFromSlowLog'] = __('From slow log');
226 $js_messages['strFromGeneralLog'] = __('From general log');
227 $js_messages['strServerLogError'] = __(
228 'The database name is not known for this query in the server\'s logs.'
230 $js_messages['strAnalysingLogsTitle'] = __('Analysing logs');
231 $js_messages['strAnalysingLogs'] = __('Analysing & loading logs. This may take a while.');
232 $js_messages['strCancelRequest'] = __('Cancel request');
233 $js_messages['strCountColumnExplanation'] = __('This column shows the amount of identical queries that are grouped together. However only the SQL query itself has been used as a grouping criteria, so the other attributes of queries, such as start time, may differ.');
234 $js_messages['strMoreCountColumnExplanation'] = __('Since grouping of INSERTs queries has been selected, INSERT queries into the same table are also being grouped together, disregarding of the inserted data.');
235 $js_messages['strLogDataLoaded'] = __('Log data loaded. Queries executed in this time span:');
237 $js_messages['strJumpToTable'] = __('Jump to Log table');
238 $js_messages['strNoDataFoundTitle'] = __('No data found');
239 $js_messages['strNoDataFound'] = __('Log analysed, but no data found in this time span.');
241 $js_messages['strAnalyzing'] = __('Analyzing…');
242 $js_messages['strExplainOutput'] = __('Explain output');
243 $js_messages['strStatus'] = __('Status');
244 $js_messages['strTime'] = __('Time');
245 $js_messages['strTotalTime'] = __('Total time:');
246 $js_messages['strProfilingResults'] = __('Profiling results');
247 $js_messages['strTable'] = _pgettext('Display format', 'Table');
248 $js_messages['strChart'] = __('Chart');
250 /* l10n: A collection of available filters */
251 $js_messages['strFiltersForLogTable'] = __('Log table filter options');
252 /* l10n: Filter as in "Start Filtering" */
253 $js_messages['strFilter'] = __('Filter');
254 $js_messages['strFilterByWordRegexp'] = __('Filter queries by word/regexp:');
255 $js_messages['strIgnoreWhereAndGroup'] = __('Group queries, ignoring variable data in WHERE clauses');
256 $js_messages['strSumRows'] = __('Sum of grouped rows:');
257 $js_messages['strTotal'] = __('Total:');
259 $js_messages['strLoadingLogs'] = __('Loading logs');
260 $js_messages['strRefreshFailed'] = __('Monitor refresh failed');
261 $js_messages['strInvalidResponseExplanation'] = __('While requesting new chart data the server returned an invalid response. This is most likely because your session expired. Reloading the page and reentering your credentials should help.');
262 $js_messages['strReloadPage'] = __('Reload page');
264 $js_messages['strAffectedRows'] = __('Affected rows:');
266 $js_messages['strFailedParsingConfig'] = __(
267 'Failed parsing config file. It doesn\'t seem to be valid JSON code.'
269 $js_messages['strFailedBuildingGrid'] = __('Failed building chart grid with imported config. Resetting to default config…');
270 $js_messages['strImport'] = __('Import');
271 $js_messages['strImportDialogTitle'] = __('Import monitor configuration');
272 $js_messages['strImportDialogMessage'] = __('Please select the file you want to import.');
273 $js_messages['strNoImportFile'] = __('No files available on server for import!');
275 $js_messages['strAnalyzeQuery'] = __('Analyse Query');
277 /* Server status advisor */
279 $js_messages['strAdvisorSystem'] = __('Advisor system');
280 $js_messages['strPerformanceIssues'] = __('Possible performance issues');
281 $js_messages['strIssuse'] = __('Issue');
282 $js_messages['strRecommendation'] = __('Recommendation');
283 $js_messages['strRuleDetails'] = __('Rule details');
284 $js_messages['strJustification'] = __('Justification');
285 $js_messages['strFormula'] = __('Used variable / formula');
286 $js_messages['strTest'] = __('Test');
288 /* For query editor */
289 $js_messages['strFormatting'] = __('Formatting SQL...');
291 /* For inline query editing */
292 $js_messages['strGo'] = __('Go');
293 $js_messages['strCancel'] = __('Cancel');
295 /* For page-related settings */
296 $js_messages['strPageSettings'] = _('Page-related settings');
297 $js_messages['strApply'] = _('Apply');
299 /* For Ajax Notifications */
300 $js_messages['strLoading'] = __('Loading…');
301 $js_messages['strAbortedRequest'] = __('Request Aborted!!');
302 $js_messages['strProcessingRequest'] = __('Processing Request');
303 $js_messages['strRequestFailed'] = __('Request Failed!!');
304 $js_messages['strErrorProcessingRequest'] = __('Error in Processing Request');
305 $js_messages['strErrorCode'] = __('Error code: %s');
306 $js_messages['strErrorText'] = __('Error text: %s');
307 $js_messages['strNoDatabasesSelected'] = __('No databases selected.');
308 $js_messages['strDroppingColumn'] = __('Dropping Column');
309 $js_messages['strAddingPrimaryKey'] = __('Adding Primary Key');
310 $js_messages['strOK'] = __('OK');
311 $js_messages['strDismiss'] = __('Click to dismiss this notification');
313 /* For db_operations.js */
314 $js_messages['strRenamingDatabases'] = __('Renaming Databases');
315 $js_messages['strCopyingDatabase'] = __('Copying Database');
316 $js_messages['strChangingCharset'] = __('Changing Charset');
317 $js_messages['strNo'] = __('No');
319 /* For Foreign key checks */
320 $js_messages['strForeignKeyCheck'] = __('Enable foreign key checks');
322 /* For db_stucture.js */
323 $js_messages['strErrorRealRowCount'] = __('Failed to get real row count.');
325 /* For db_search.js */
326 $js_messages['strSearching'] = __('Searching');
327 $js_messages['strHideSearchResults'] = __('Hide search results');
328 $js_messages['strShowSearchResults'] = __('Show search results');
329 $js_messages['strBrowsing'] = __('Browsing');
330 $js_messages['strDeleting'] = __('Deleting');
332 /* For db_routines.js */
333 $js_messages['MissingReturn'] = __('The definition of a stored function must contain a RETURN statement!');
334 $js_messages['strExport'] = __('Export');
336 /* For ENUM/SET editor*/
337 $js_messages['enum_editor'] = __('ENUM/SET editor');
338 $js_messages['enum_columnVals'] =__('Values for column %s');
339 $js_messages['enum_newColumnVals'] = __('Values for a new column');
340 $js_messages['enum_hint'] =__('Enter each value in a separate field.');
341 $js_messages['enum_addValue'] =__('Add %d value(s)');
343 /* For import.js */
344 $js_messages['strImportCSV'] = __('Note: If the file contains multiple tables, they will be combined into one.');
346 /* For sql.js */
347 $js_messages['strHideQueryBox'] = __('Hide query box');
348 $js_messages['strShowQueryBox'] = __('Show query box');
349 $js_messages['strEdit'] = __('Edit');
350 $js_messages['strDelete'] = __('Delete');
351 $js_messages['strNotValidRowNumber'] = __('%d is not valid row number.');
352 $js_messages['strBrowseForeignValues'] = __('Browse foreign values');
353 $js_messages['strNoAutoSavedQuery'] = __('No auto-saved query');
354 $js_messages['strBookmarkVariable'] = __('Variable %d:');
356 /* For Central list of columns */
357 $js_messages['pickColumn'] = __('Pick');
358 $js_messages['pickColumnTitle'] = __('Column selector');
359 $js_messages['searchList'] = __('Search this list');
360 $js_messages['strEmptyCentralList'] = __('No columns in the central list. Make sure the Central columns list for database %s has columns that are not present in the current table.');
361 $js_messages['seeMore'] = __('See more');
362 $js_messages['confirmTitle'] = __('Are you sure?');
363 $js_messages['makeConsistentMessage'] = __('This action may change some of the columns definition.<br/>Are you sure you want to continue?');
364 $js_messages['strContinue'] = __('Continue');
366 /** For normalization */
367 $js_messages['strAddPrimaryKey'] = __('Add primary key');
368 $js_messages['strPrimaryKeyAdded'] = __('Primary key added.');
369 $js_messages['strToNextStep'] = __('Taking you to next step…');
370 $js_messages['strFinishMsg'] = __("The first step of normalization is complete for table '%s'.");
371 $js_messages['strEndStep'] = __("End of step");
372 $js_messages['str2NFNormalization'] = __('Second step of normalization (2NF)');
373 $js_messages['strDone'] = __('Done');
374 $js_messages['strConfirmPd'] = __('Confirm partial dependencies');
375 $js_messages['strSelectedPd'] = __('Selected partial dependencies are as follows:');
376 $js_messages['strPdHintNote'] = __('Note: a, b -> d,f implies values of columns a and b combined together can determine values of column d and column f.');
377 $js_messages['strNoPdSelected'] = __('No partial dependencies selected!');
378 $js_messages['strBack'] = __('Back');
379 $js_messages['strShowPossiblePd'] = __('Show me the possible partial dependencies based on data in the table');
380 $js_messages['strHidePd'] = __('Hide partial dependencies list');
381 $js_messages['strWaitForPd'] = __('Sit tight! It may take few seconds depending on data size and column count of the table.');
382 $js_messages['strStep'] = __('Step');
383 $js_messages['strMoveRepeatingGroup'] = '<ol><b>' . __('The following actions will be performed:') . '</b>'
384 . '<li>' . __('DROP columns %s from the table %s') . '</li>'
385 . '<li>' . __('Create the following table') . '</li>';
386 $js_messages['strNewTablePlaceholder'] = 'Enter new table name';
387 $js_messages['strNewColumnPlaceholder'] = 'Enter column name';
388 $js_messages['str3NFNormalization'] = __('Third step of normalization (3NF)');
389 $js_messages['strConfirmTd'] = __('Confirm transitive dependencies');
390 $js_messages['strSelectedTd'] = __('Selected dependencies are as follows:');
391 $js_messages['strNoTdSelected'] = __('No dependencies selected!');
393 /* For server_variables.js */
394 $js_messages['strSave'] = __('Save');
396 /* For tbl_select.js */
397 $js_messages['strHideSearchCriteria'] = __('Hide search criteria');
398 $js_messages['strShowSearchCriteria'] = __('Show search criteria');
399 $js_messages['strRangeSearch'] = __('Range search');
400 $js_messages['strColumnMax'] = __('Column maximum:');
401 $js_messages['strColumnMin'] = __('Column minimum:');
402 $js_messages['strMinValue'] = __('Minimum value:');
403 $js_messages['strMaxValue'] = __('Maximum value:');
405 /* For tbl_find_replace.js */
406 $js_messages['strHideFindNReplaceCriteria'] = __('Hide find and replace criteria');
407 $js_messages['strShowFindNReplaceCriteria'] = __('Show find and replace criteria');
409 /* For tbl_zoom_plot_jqplot.js */
410 $js_messages['strDisplayHelp'] = '<ul><li>'
411 . __('Each point represents a data row.')
412 . '</li><li>'
413 . __('Hovering over a point will show its label.')
414 . '</li><li>'
415 . __('To zoom in, select a section of the plot with the mouse.')
416 . '</li><li>'
417 . __('Click reset zoom button to come back to original state.')
418 . '</li><li>'
419 . __('Click a data point to view and possibly edit the data row.')
420 . '</li><li>'
421 . __('The plot can be resized by dragging it along the bottom right corner.')
422 . '</li></ul>';
423 $js_messages['strInputNull'] = '<strong>' . __('Select two columns') . '</strong>';
424 $js_messages['strSameInputs'] = '<strong>'
425 . __('Select two different columns')
426 . '</strong>';
427 $js_messages['strDataPointContent'] = __('Data point content');
429 /* For tbl_change.js */
430 $js_messages['strIgnore'] = __('Ignore');
431 $js_messages['strCopy'] = __('Copy');
432 $js_messages['strX'] = __('X');
433 $js_messages['strY'] = __('Y');
434 $js_messages['strPoint'] = __('Point');
435 $js_messages['strPointN'] = __('Point %d');
436 $js_messages['strLineString'] = __('Linestring');
437 $js_messages['strPolygon'] = __('Polygon');
438 $js_messages['strGeometry'] = __('Geometry');
439 $js_messages['strInnerRing'] = __('Inner Ring');
440 $js_messages['strOuterRing'] = __('Outer Ring');
441 $js_messages['strAddPoint'] = __('Add a point');
442 $js_messages['strAddInnerRing'] = __('Add an inner ring');
443 $js_messages['strYes'] = __('Yes');
444 $js_messages['strCopyEncryptionKey'] = __('Do you want to copy encryption key?');
445 $js_messages['strEncryptionKey'] = __('Encryption key');
447 /* For Lock symbol Tooltip */
448 $js_messages['strLockToolTip'] = __(
449 'Indicates that you have made changes to this page;'
450 . ' you will be prompted for confirmation before abandoning changes'
453 /* Designer (js/pmd/move.js) */
454 $js_messages['strSelectReferencedKey'] = __('Select referenced key');
455 $js_messages['strSelectForeignKey'] = __('Select Foreign Key');
456 $js_messages['strPleaseSelectPrimaryOrUniqueKey'] = __('Please select the primary key or a unique key!');
457 $js_messages['strChangeDisplay'] = __('Choose column to display');
458 $js_messages['strLeavingDesigner'] = __(
459 'You haven\'t saved the changes in the layout. They will be lost if you'
460 . ' don\'t save them. Do you want to continue?'
462 $js_messages['strPageName'] = __('Page name');
463 $js_messages['strSavePage'] = __('Save page');
464 $js_messages['strSavePageAs'] = __('Save page as');
465 $js_messages['strOpenPage'] = __('Open page');
466 $js_messages['strDeletePage'] = __('Delete page');
467 $js_messages['strUntitled'] = __('Untitled');
468 $js_messages['strSelectPage'] = __('Please select a page to continue');
469 $js_messages['strEnterValidPageName'] = __('Please enter a valid page name');
470 $js_messages['strLeavingPage'] = __('Do you want to save the changes to the current page?');
471 $js_messages['strSuccessfulPageDelete'] = __('Successfully deleted the page');
472 $js_messages['strExportRelationalSchema'] = __('Export relational schema');
473 $js_messages['strModificationSaved'] = __('Modifications have been saved');
475 /* Visual query builder (js/pmd/move.js) */
476 $js_messages['strAddOption'] = __('Add an option for column "%s".');
477 $js_messages['strObjectsCreated'] = __('%d object(s) created.');
478 $js_messages['strSubmit'] = __('Submit');
480 /* For makegrid.js (column reordering, show/hide column, grid editing) */
481 $js_messages['strCellEditHint'] = __('Press escape to cancel editing.');
482 $js_messages['strSaveCellWarning'] = __('You have edited some data and they have not been saved. Are you sure you want to leave this page before saving the data?');
483 $js_messages['strColOrderHint'] = __('Drag to reorder.');
484 $js_messages['strSortHint'] = __('Click to sort results by this column.');
485 $js_messages['strMultiSortHint'] = __('Shift+Click to add this column to ORDER BY clause or to toggle ASC/DESC.<br />- Ctrl+Click or Alt+Click (Mac: Shift+Option+Click) to remove column from ORDER BY clause');
486 $js_messages['strColMarkHint'] = __('Click to mark/unmark.');
487 $js_messages['strColNameCopyHint'] = __('Double-click to copy column name.');
488 $js_messages['strColVisibHint'] = __(
489 'Click the drop-down arrow<br />to toggle column\'s visibility.'
491 $js_messages['strShowAllCol'] = __('Show all');
492 $js_messages['strAlertNonUnique'] = __('This table does not contain a unique column. Features related to the grid edit, checkbox, Edit, Copy and Delete links may not work after saving.');
493 $js_messages['strEnterValidHex'] = __('Please enter a valid hexadecimal string. Valid characters are 0-9, A-F.');
494 $js_messages['strShowAllRowsWarning'] = __('Do you really want to see all of the rows? For a big table this could crash the browser.');
495 $js_messages['strOriginalLength'] = __('Original length');
497 /** Drag & Drop sql import messages */
498 $js_messages['dropImportMessageCancel'] = __('cancel');
499 $js_messages['dropImportMessageAborted'] = __('Aborted');
500 $js_messages['dropImportMessageFailed'] = __('Failed');
501 $js_messages['dropImportMessageSuccess'] = __('Success');
502 $js_messages['dropImportImportResultHeader'] = __('Import status');
503 $js_messages['dropImportDropFiles'] = __('Drop files here');
504 $js_messages['dropImportSelectDB'] = __('Select database first');
506 // this approach does not work when the parameter is changed via user prefs
507 switch ($GLOBALS['cfg']['GridEditing']) {
508 case 'double-click':
509 $js_messages['strGridEditFeatureHint'] = __('You can also edit most values<br />by double-clicking directly on them.');
510 break;
511 case 'click':
512 $js_messages['strGridEditFeatureHint'] = __('You can also edit most values<br />by clicking directly on them.');
513 break;
514 default:
515 break;
517 $js_messages['strGoToLink'] = __('Go to link:');
518 $js_messages['strColNameCopyTitle'] = __('Copy column name.');
519 $js_messages['strColNameCopyText'] = __('Right-click the column name to copy it to your clipboard.');
521 /* password generation */
522 $js_messages['strGeneratePassword'] = __('Generate password');
523 $js_messages['strGenerate'] = __('Generate');
524 $js_messages['strChangePassword'] = __('Change Password');
526 /* navigation tabs */
527 $js_messages['strMore'] = __('More');
529 /* navigation panel */
530 $js_messages['strShowPanel'] = __('Show Panel');
531 $js_messages['strHidePanel'] = __('Hide Panel');
532 $js_messages['strUnhideNavItem'] = __('Show hidden navigation tree items.');
533 $js_messages['linkWithMain'] = __('Link with main panel');
534 $js_messages['unlinkWithMain'] = __('Unlink from main panel');
535 $js_messages['strHoverDbFastFilter'] = __('To filter all databases on server, press Enter after a search term');
536 $js_messages['strHoverFastFilter'] = __('To filter all %s in database, press Enter after a search term');
537 $js_messages['strTables'] = __('tables');
538 $js_messages['strViews'] = __('views');
539 $js_messages['strProcedures'] = __('procedures');
540 $js_messages['strEvents'] = __('events');
541 $js_messages['strFunctions'] = __('functions');
543 /* microhistory */
544 $js_messages['strInvalidPage'] = __('The requested page was not found in the history, it may have expired.');
546 /* update */
547 $js_messages['strNewerVersion'] = __('A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is %s, released on %s.');
548 /* l10n: Latest available phpMyAdmin version */
549 $js_messages['strLatestAvailable'] = __(', latest stable version:');
550 $js_messages['strUpToDate'] = __('up to date');
552 $js_messages['strCreateView'] = __('Create view');
554 /* Error Reporting */
555 $js_messages['strSendErrorReport'] = __("Send Error Report");
556 $js_messages['strSubmitErrorReport'] = __("Submit Error Report");
557 $js_messages['strErrorOccurred'] = __(
558 "A fatal JavaScript error has occurred. Would you like to send an error report?"
560 $js_messages['strChangeReportSettings'] = __("Change Report Settings");
561 $js_messages['strShowReportDetails'] = __("Show Report Details");
562 $js_messages['strIgnore'] = __("Ignore");
563 $js_messages['strTimeOutError'] = __(
564 "Your export is incomplete, due to a low execution time limit at the PHP level!"
567 $js_messages['strTooManyInputs'] = __(
568 "Warning: a form on this page has more than %d fields. On submission, "
569 . "some of the fields might be ignored, due to PHP's "
570 . "max_input_vars configuration."
573 $js_messages['phpErrorsFound'] = '<div class="error">'
574 . __('Some errors have been detected on the server!')
575 . '<br/>'
576 . __('Please look at the bottom of this window.')
577 . '<div>'
578 . '<input id="pma_ignore_errors_popup" type="submit" value="'
579 . __('Ignore')
580 . '" class="floatright" style="margin-top: 20px;">'
581 . '<input id="pma_ignore_all_errors_popup" type="submit" value="'
582 . __('Ignore All')
583 . '" class="floatright" style="margin-top: 20px;">'
584 . '</div></div>';
586 $js_messages['phpErrorsBeingSubmitted'] = '<div class="error">'
587 . __('Some errors have been detected on the server!')
588 . '<br/>'
589 . __('As per your settings, they are being submitted currently, please be patient.')
590 . '<br/>'
591 . '<img src="'
592 . ($_SESSION['PMA_Theme']->getImgPath('ajax_clock_small.gif'))
593 . '" width="16" height="16" alt="ajax clock"/>'
594 . '</div>';
596 // For console
597 $js_messages['strConsoleRequeryConfirm'] = __('Execute this query again?');
598 $js_messages['strConsoleDeleteBookmarkConfirm'] = __('Do you really want to delete this bookmark?');
599 $js_messages['strConsoleDebugError'] = __('Some error occurred while getting SQL debug info.');
600 $js_messages['strConsoleDebugSummary'] = __('%s queries executed %s times in %s seconds.');
601 $js_messages['strConsoleDebugArgsSummary'] = __('%s argument(s) passed');
602 $js_messages['strConsoleDebugShowArgs'] = __('Show arguments');
603 $js_messages['strConsoleDebugHideArgs'] = __('Hide arguments');
604 $js_messages['strConsoleDebugTimeTaken'] = __('Time taken:');
605 $js_messages['strNoLocalStorage'] = __('Your web browser does not support local storage of settings or the quota limit has been reached, some features may not work properly for you. In Safari, such problem is commonly caused by "Private Mode Browsing".');
607 echo "var PMA_messages = new Array();\n";
608 foreach ($js_messages as $name => $js_message) {
609 PMA_printJsValue("PMA_messages['" . $name . "']", $js_message);
612 /* Calendar */
613 echo "var themeCalendarImage = '" . $GLOBALS['pmaThemeImage']
614 . 'b_calendar.png' . "';\n";
616 /* Image path */
617 echo "var pmaThemeImage = '" . $GLOBALS['pmaThemeImage'] . "';\n";
619 echo "var mysql_doc_template = '" . PMA_Util::getMySQLDocuURL('%s') . "';\n";
621 //Max input vars allowed by PHP.
622 $maxInputVars = ini_get('max_input_vars');
623 echo 'var maxInputVars = '
624 . (false === $maxInputVars || '' == $maxInputVars ? 'false' : $maxInputVars)
625 . ';' . "\n";
627 echo "if ($.datepicker) {\n";
628 /* l10n: Display text for calendar close link */
629 PMA_printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
630 /* l10n: Display text for previous month link in calendar */
631 PMA_printJsValue(
632 "$.datepicker.regional['']['prevText']",
633 _pgettext('Previous month', 'Prev')
635 /* l10n: Display text for next month link in calendar */
636 PMA_printJsValue(
637 "$.datepicker.regional['']['nextText']",
638 _pgettext('Next month', 'Next')
640 /* l10n: Display text for current month link in calendar */
641 PMA_printJsValue("$.datepicker.regional['']['currentText']", __('Today'));
642 PMA_printJsValue(
643 "$.datepicker.regional['']['monthNames']",
644 array(
645 __('January'),
646 __('February'),
647 __('March'),
648 __('April'),
649 __('May'),
650 __('June'),
651 __('July'),
652 __('August'),
653 __('September'),
654 __('October'),
655 __('November'),
656 __('December')
659 PMA_printJsValue(
660 "$.datepicker.regional['']['monthNamesShort']",
661 array(
662 /* l10n: Short month name */
663 __('Jan'),
664 /* l10n: Short month name */
665 __('Feb'),
666 /* l10n: Short month name */
667 __('Mar'),
668 /* l10n: Short month name */
669 __('Apr'),
670 /* l10n: Short month name */
671 _pgettext('Short month name', 'May'),
672 /* l10n: Short month name */
673 __('Jun'),
674 /* l10n: Short month name */
675 __('Jul'),
676 /* l10n: Short month name */
677 __('Aug'),
678 /* l10n: Short month name */
679 __('Sep'),
680 /* l10n: Short month name */
681 __('Oct'),
682 /* l10n: Short month name */
683 __('Nov'),
684 /* l10n: Short month name */
685 __('Dec')
688 PMA_printJsValue(
689 "$.datepicker.regional['']['dayNames']",
690 array(
691 __('Sunday'),
692 __('Monday'),
693 __('Tuesday'),
694 __('Wednesday'),
695 __('Thursday'),
696 __('Friday'),
697 __('Saturday')
700 PMA_printJsValue(
701 "$.datepicker.regional['']['dayNamesShort']",
702 array(
703 /* l10n: Short week day name */
704 __('Sun'),
705 /* l10n: Short week day name */
706 __('Mon'),
707 /* l10n: Short week day name */
708 __('Tue'),
709 /* l10n: Short week day name */
710 __('Wed'),
711 /* l10n: Short week day name */
712 __('Thu'),
713 /* l10n: Short week day name */
714 __('Fri'),
715 /* l10n: Short week day name */
716 __('Sat')
719 PMA_printJsValue(
720 "$.datepicker.regional['']['dayNamesMin']",
721 array(
722 /* l10n: Minimal week day name */
723 __('Su'),
724 /* l10n: Minimal week day name */
725 __('Mo'),
726 /* l10n: Minimal week day name */
727 __('Tu'),
728 /* l10n: Minimal week day name */
729 __('We'),
730 /* l10n: Minimal week day name */
731 __('Th'),
732 /* l10n: Minimal week day name */
733 __('Fr'),
734 /* l10n: Minimal week day name */
735 __('Sa')
738 /* l10n: Column header for week of the year in calendar */
739 PMA_printJsValue("$.datepicker.regional['']['weekHeader']", __('Wk'));
741 PMA_printJsValue(
742 "$.datepicker.regional['']['showMonthAfterYear']",
743 /* l10n: Month-year order for calendar, use either "calendar-month-year"
744 * or "calendar-year-month".
746 (__('calendar-month-year') == 'calendar-year-month')
748 /* l10n: Year suffix for calendar, "none" is empty. */
749 $year_suffix = _pgettext('Year suffix', 'none');
750 PMA_printJsValue(
751 "$.datepicker.regional['']['yearSuffix']",
752 ($year_suffix == 'none' ? '' : $year_suffix)
755 $.extend($.datepicker._defaults, $.datepicker.regional['']);
756 } /* if ($.datepicker) */
758 <?php
759 echo "if ($.timepicker) {\n";
760 PMA_printJsValue("$.timepicker.regional['']['timeText']", __('Time'));
761 PMA_printJsValue("$.timepicker.regional['']['hourText']", __('Hour'));
762 PMA_printJsValue("$.timepicker.regional['']['minuteText']", __('Minute'));
763 PMA_printJsValue("$.timepicker.regional['']['secondText']", __('Second'));
765 $.extend($.timepicker._defaults, $.timepicker.regional['']);
766 } /* if ($.timepicker) */
768 <?php
769 /* Form validation */
771 echo "function extendingValidatorMessages() {\n";
772 echo "$.extend($.validator.messages, {\n";
773 /* Default validation functions */
774 PMA_printJsValueForFormValidation('required', __('This field is required'));
775 PMA_printJsValueForFormValidation('remote', __('Please fix this field'));
776 PMA_printJsValueForFormValidation('email', __('Please enter a valid email address'));
777 PMA_printJsValueForFormValidation('url', __('Please enter a valid URL'));
778 PMA_printJsValueForFormValidation('date', __('Please enter a valid date'));
779 PMA_printJsValueForFormValidation('dateISO', __('Please enter a valid date ( ISO )'));
780 PMA_printJsValueForFormValidation('number', __('Please enter a valid number'));
781 PMA_printJsValueForFormValidation('creditcard', __('Please enter a valid credit card number'));
782 PMA_printJsValueForFormValidation('digits', __('Please enter only digits'));
783 PMA_printJsValueForFormValidation('equalTo', __('Please enter the same value again'));
784 PMA_printJsValueForFormValidation('maxlength', __('Please enter no more than {0} characters'), true);
785 PMA_printJsValueForFormValidation('minlength', __('Please enter at least {0} characters'), true);
786 PMA_printJsValueForFormValidation('rangelength', __('Please enter a value between {0} and {1} characters long'), true);
787 PMA_printJsValueForFormValidation('range', __('Please enter a value between {0} and {1}'), true);
788 PMA_printJsValueForFormValidation('max', __('Please enter a value less than or equal to {0}'), true);
789 PMA_printJsValueForFormValidation('min', __('Please enter a value greater than or equal to {0}'), true);
790 /* customed functions */
791 PMA_printJsValueForFormValidation('validationFunctionForDateTime', __('Please enter a valid date or time'), true);
792 PMA_printJsValueForFormValidation('validationFunctionForHex', __('Please enter a valid HEX input'), true);
793 PMA_printJsValueForFormValidation('validationFunctionForFuns', __('Error'), true, false);
794 echo "\n});";
795 echo "\n} /* if ($.validator) */";