UPDATE 4.4.0.0
[phpmyadmin.git] / js / messages.php
blob05b9ee4ae48e2ce3ecf67c4f6073d5afef487249
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 $js_messages['strNoDropDatabases'] = __('"DROP DATABASE" statements are disabled.');
30 if ($cfg['AllowUserDropDatabase']) {
31 $js_messages['strNoDropDatabases'] = '';
34 /* For confirmations */
35 $js_messages['strConfirm'] = __('Confirm');
36 $js_messages['strDoYouReally'] = __('Do you really want to execute "%s"?');
37 $js_messages['strDropDatabaseStrongWarning'] = __('You are about to DESTROY a complete database!');
38 $js_messages['strDropTableStrongWarning'] = __('You are about to DESTROY a complete table!');
39 $js_messages['strTruncateTableStrongWarning'] = __('You are about to TRUNCATE a complete table!');
40 $js_messages['strDeleteTrackingData'] = __('Delete tracking data for this table?');
41 $js_messages['strDeleteTrackingDataMultiple'] = __('Delete tracking data for these tables?');
42 $js_messages['strDeleteTrackingVersion'] = __('Delete tracking data for this version?');
43 $js_messages['strDeleteTrackingVersionMultiple'] = __('Delete tracking data for these versions?');
44 $js_messages['strDeletingTrackingEntry'] = __('Delete entry from tracking report?');
45 $js_messages['strDeletingTrackingData'] = __('Deleting tracking data');
46 $js_messages['strDroppingPrimaryKeyIndex'] = __('Dropping Primary Key/Index');
47 $js_messages['strDroppingForeignKey'] = __('Dropping Foreign key.');
48 $js_messages['strOperationTakesLongTime'] = __('This operation could take a long time. Proceed anyway?');
49 $js_messages['strDropUserGroupWarning'] = __('Do you really want to delete user group "%s"?');
50 $js_messages['strConfirmDeleteQBESearch'] = __('Do you really want to delete the search "%s"?');
51 $js_messages['strConfirmNavigation'] = __('You have unsaved changes; are you sure you want to leave this page?');
52 $js_messages['strDropUserWarning'] = __('Do you really want to revoke the selected user(s) ?');
53 $js_messages['strDeleteCentralColumnWarning'] = __('Do you really want to delete this central column?');
55 /* For modal dialog buttons */
56 $js_messages['strSaveAndClose'] = __('Save & Close');
57 $js_messages['strReset'] = __('Reset');
58 $js_messages['strResetAll'] = __('Reset All');
60 /* For indexes */
61 $js_messages['strFormEmpty'] = __('Missing value in the form!');
62 $js_messages['strRadioUnchecked'] = __('Select at least one of the options!');
63 $js_messages['strEnterValidNumber'] = __('Please enter a valid number!');
64 $js_messages['strEnterValidLength'] = __('Please enter a valid length!');
65 $js_messages['strAddIndex'] = __('Add Index');
66 $js_messages['strEditIndex'] = __('Edit Index');
67 $js_messages['strAddToIndex'] = __('Add %s column(s) to index');
68 $js_messages['strCreateSingleColumnIndex'] = __('Create single-column index');
69 $js_messages['strCreateCompositeIndex'] = __('Create composite index');
70 $js_messages['strCompositeWith'] = __('Composite with:');
71 $js_messages['strMissingColumn'] = __('Please select column(s) for the index.');
73 /* For Create Table */
74 $js_messages['strLeastColumnError'] = __('You have to add at least one column.');
76 /* For Preview SQL*/
77 $js_messages['strPreviewSQL'] = __('Preview SQL');
79 /* For Simulate DML*/
80 $js_messages['strSimulateDML'] = __('Simulate query');
81 $js_messages['strMatchedRows'] = __('Matched rows:');
82 $js_messages['strSQLQuery'] = __('SQL query:');
84 /* Charts */
85 /* l10n: Default label for the y-Axis of Charts */
86 $js_messages['strYValues'] = __('Y Values');
88 /* For server_privileges.js */
89 $js_messages['strHostEmpty'] = __('The host name is empty!');
90 $js_messages['strUserEmpty'] = __('The user name is empty!');
91 $js_messages['strPasswordEmpty'] = __('The password is empty!');
92 $js_messages['strPasswordNotSame'] = __('The passwords aren\'t the same!');
93 $js_messages['strRemovingSelectedUsers'] = __('Removing Selected Users');
94 $js_messages['strClose'] = __('Close');
96 /* l10n: Other, small valued, queries */
97 $js_messages['strOther'] = __('Other');
98 /* l10n: Thousands separator */
99 $js_messages['strThousandsSeparator'] = __(',');
100 /* l10n: Decimal separator */
101 $js_messages['strDecimalSeparator'] = __('.');
103 $js_messages['strChartConnectionsTitle'] = __('Connections / Processes');
105 /* server status monitor */
106 $js_messages['strIncompatibleMonitorConfig'] = __('Local monitor configuration incompatible!');
107 $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.');
109 $js_messages['strQueryCacheEfficiency'] = __('Query cache efficiency');
110 $js_messages['strQueryCacheUsage'] = __('Query cache usage');
111 $js_messages['strQueryCacheUsed'] = __('Query cache used');
113 $js_messages['strSystemCPUUsage'] = __('System CPU Usage');
114 $js_messages['strSystemMemory'] = __('System memory');
115 $js_messages['strSystemSwap'] = __('System swap');
117 $js_messages['strAverageLoad'] = __('Average load');
118 $js_messages['strTotalMemory'] = __('Total memory');
119 $js_messages['strCachedMemory'] = __('Cached memory');
120 $js_messages['strBufferedMemory'] = __('Buffered memory');
121 $js_messages['strFreeMemory'] = __('Free memory');
122 $js_messages['strUsedMemory'] = __('Used memory');
124 $js_messages['strTotalSwap'] = __('Total Swap');
125 $js_messages['strCachedSwap'] = __('Cached Swap');
126 $js_messages['strUsedSwap'] = __('Used Swap');
127 $js_messages['strFreeSwap'] = __('Free Swap');
129 $js_messages['strBytesSent'] = __('Bytes sent');
130 $js_messages['strBytesReceived'] = __('Bytes received');
131 $js_messages['strConnections'] = __('Connections');
132 $js_messages['strProcesses'] = __('Processes');
134 /* summary row */
135 $js_messages['strB'] = __('B');
136 $js_messages['strKiB'] = __('KiB');
137 $js_messages['strMiB'] = __('MiB');
138 $js_messages['strGiB'] = __('GiB');
139 $js_messages['strTiB'] = __('TiB');
140 $js_messages['strPiB'] = __('PiB');
141 $js_messages['strEiB'] = __('EiB');
142 $js_messages['strNTables'] = __('%d table(s)');
144 /* l10n: Questions is the name of a MySQL Status variable */
145 $js_messages['strQuestions'] = __('Questions');
146 $js_messages['strTraffic'] = __('Traffic');
147 $js_messages['strSettings'] = __('Settings');
148 $js_messages['strAddChart'] = __('Add chart to grid');
149 $js_messages['strClose'] = __('Close');
150 $js_messages['strAddOneSeriesWarning'] = __('Please add at least one variable to the series!');
151 $js_messages['strNone'] = __('None');
152 $js_messages['strResumeMonitor'] = __('Resume monitor');
153 $js_messages['strPauseMonitor'] = __('Pause monitor');
154 $js_messages['strStartRefresh'] = __('Start auto refresh');
155 $js_messages['strStopRefresh'] = __('Stop auto refresh');
156 /* Monitor: Instructions Dialog */
157 $js_messages['strBothLogOn'] = __('general_log and slow_query_log are enabled.');
158 $js_messages['strGenLogOn'] = __('general_log is enabled.');
159 $js_messages['strSlowLogOn'] = __('slow_query_log is enabled.');
160 $js_messages['strBothLogOff'] = __('slow_query_log and general_log are disabled.');
161 $js_messages['strLogOutNotTable'] = __('log_output is not set to TABLE.');
162 $js_messages['strLogOutIsTable'] = __('log_output is set to TABLE.');
163 $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.');
164 $js_messages['strLongQueryTimeSet'] = __('long_query_time is set to %d second(s).');
165 $js_messages['strSettingsAppliedGlobal'] = __('Following settings will be applied globally and reset to default on server restart:');
166 /* l10n: %s is FILE or TABLE */
167 $js_messages['strSetLogOutput'] = __('Set log_output to %s');
168 /* l10n: Enable in this context means setting a status variable to ON */
169 $js_messages['strEnableVar'] = __('Enable %s');
170 /* l10n: Disable in this context means setting a status variable to OFF */
171 $js_messages['strDisableVar'] = __('Disable %s');
172 /* l10n: %d seconds */
173 $js_messages['setSetLongQueryTime'] = __('Set long_query_time to %d seconds.');
174 $js_messages['strNoSuperUser'] = __(
175 'You can\'t change these variables. Please log in as root or contact'
176 . ' your database administrator.'
178 $js_messages['strChangeSettings'] = __('Change settings');
179 $js_messages['strCurrentSettings'] = __('Current settings');
181 $js_messages['strChartTitle'] = __('Chart Title');
182 /* l10n: As in differential values */
183 $js_messages['strDifferential'] = __('Differential');
184 $js_messages['strDividedBy'] = __('Divided by %s');
185 $js_messages['strUnit'] = __('Unit');
187 $js_messages['strFromSlowLog'] = __('From slow log');
188 $js_messages['strFromGeneralLog'] = __('From general log');
189 $js_messages['strServerLogError'] = __(
190 'The database name is not known for this query in the server\'s logs.'
192 $js_messages['strAnalysingLogsTitle'] = __('Analysing logs');
193 $js_messages['strAnalysingLogs'] = __('Analysing & loading logs. This may take a while.');
194 $js_messages['strCancelRequest'] = __('Cancel request');
195 $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.');
196 $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.');
197 $js_messages['strLogDataLoaded'] = __('Log data loaded. Queries executed in this time span:');
199 $js_messages['strJumpToTable'] = __('Jump to Log table');
200 $js_messages['strNoDataFoundTitle'] = __('No data found');
201 $js_messages['strNoDataFound'] = __('Log analysed, but no data found in this time span.');
203 $js_messages['strAnalyzing'] = __('Analyzing…');
204 $js_messages['strExplainOutput'] = __('Explain output');
205 $js_messages['strStatus'] = __('Status');
206 $js_messages['strTime'] = __('Time');
207 $js_messages['strTotalTime'] = __('Total time:');
208 $js_messages['strProfilingResults'] = __('Profiling results');
209 $js_messages['strTable'] = _pgettext('Display format', 'Table');
210 $js_messages['strChart'] = __('Chart');
212 /* l10n: A collection of available filters */
213 $js_messages['strFiltersForLogTable'] = __('Log table filter options');
214 /* l10n: Filter as in "Start Filtering" */
215 $js_messages['strFilter'] = __('Filter');
216 $js_messages['strFilterByWordRegexp'] = __('Filter queries by word/regexp:');
217 $js_messages['strIgnoreWhereAndGroup'] = __('Group queries, ignoring variable data in WHERE clauses');
218 $js_messages['strSumRows'] = __('Sum of grouped rows:');
219 $js_messages['strTotal'] = __('Total:');
221 $js_messages['strLoadingLogs'] = __('Loading logs');
222 $js_messages['strRefreshFailed'] = __('Monitor refresh failed');
223 $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.');
224 $js_messages['strReloadPage'] = __('Reload page');
226 $js_messages['strAffectedRows'] = __('Affected rows:');
228 $js_messages['strFailedParsingConfig'] = __(
229 'Failed parsing config file. It doesn\'t seem to be valid JSON code.'
231 $js_messages['strFailedBuildingGrid'] = __('Failed building chart grid with imported config. Resetting to default config…');
232 $js_messages['strImport'] = __('Import');
233 $js_messages['strImportDialogTitle'] = __('Import monitor configuration');
234 $js_messages['strImportDialogMessage'] = __('Please select the file you want to import.');
235 $js_messages['strNoImportFile'] = __('No files available on server for import!');
237 $js_messages['strAnalyzeQuery'] = __('Analyse Query');
239 /* Server status advisor */
241 $js_messages['strAdvisorSystem'] = __('Advisor system');
242 $js_messages['strPerformanceIssues'] = __('Possible performance issues');
243 $js_messages['strIssuse'] = __('Issue');
244 $js_messages['strRecommendation'] = __('Recommendation');
245 $js_messages['strRuleDetails'] = __('Rule details');
246 $js_messages['strJustification'] = __('Justification');
247 $js_messages['strFormula'] = __('Used variable / formula');
248 $js_messages['strTest'] = __('Test');
250 /* For query editor */
251 $js_messages['strFormatting'] = __('Formatting SQL...');
253 /* For inline query editing */
254 $js_messages['strGo'] = __('Go');
255 $js_messages['strCancel'] = __('Cancel');
257 /* For Ajax Notifications */
258 $js_messages['strLoading'] = __('Loading…');
259 $js_messages['strAbortedRequest'] = __('Request Aborted!!');
260 $js_messages['strProcessingRequest'] = __('Processing Request');
261 $js_messages['strRequestFailed'] = __('Request Failed!!');
262 $js_messages['strErrorProcessingRequest'] = __('Error in Processing Request');
263 $js_messages['strErrorCode'] = __('Error code: %s');
264 $js_messages['strErrorText'] = __('Error text: %s');
265 $js_messages['strNoDatabasesSelected'] = __('No databases selected.');
266 $js_messages['strDroppingColumn'] = __('Dropping Column');
267 $js_messages['strAddingPrimaryKey'] = __('Adding Primary Key');
268 $js_messages['strOK'] = __('OK');
269 $js_messages['strDismiss'] = __('Click to dismiss this notification');
271 /* For db_operations.js */
272 $js_messages['strRenamingDatabases'] = __('Renaming Databases');
273 $js_messages['strCopyingDatabase'] = __('Copying Database');
274 $js_messages['strChangingCharset'] = __('Changing Charset');
275 $js_messages['strNo'] = __('No');
277 /* For db_stucture.js */
278 $js_messages['strForeignKeyCheck'] = __('Foreign key check:');
279 $js_messages['strForeignKeyCheckEnabled'] = __('(Enabled)');
280 $js_messages['strForeignKeyCheckDisabled'] = __('(Disabled)');
281 $js_messages['strErrorRealRowCount'] = __('Failed to get real row count.');
283 /* For db_search.js */
284 $js_messages['strSearching'] = __('Searching');
285 $js_messages['strHideSearchResults'] = __('Hide search results');
286 $js_messages['strShowSearchResults'] = __('Show search results');
287 $js_messages['strBrowsing'] = __('Browsing');
288 $js_messages['strDeleting'] = __('Deleting');
290 /* For db_routines.js */
291 $js_messages['MissingReturn'] = __('The definition of a stored function must contain a RETURN statement!');
293 /* For ENUM/SET editor*/
294 $js_messages['enum_editor'] = __('ENUM/SET editor');
295 $js_messages['enum_columnVals'] =__('Values for column %s');
296 $js_messages['enum_newColumnVals'] = __('Values for a new column');
297 $js_messages['enum_hint'] =__('Enter each value in a separate field.');
298 $js_messages['enum_addValue'] =__('Add %d value(s)');
300 /* For import.js */
301 $js_messages['strImportCSV'] = __('Note: If the file contains multiple tables, they will be combined into one.');
303 /* For sql.js */
304 $js_messages['strHideQueryBox'] = __('Hide query box');
305 $js_messages['strShowQueryBox'] = __('Show query box');
306 $js_messages['strEdit'] = __('Edit');
307 $js_messages['strNotValidRowNumber'] = __('%d is not valid row number.');
308 $js_messages['strBrowseForeignValues'] = __('Browse foreign values');
309 $js_messages['strNoAutoSavedQuery'] = __('No auto-saved query');
311 /* For Central list of columns */
312 $js_messages['pickColumn'] = __('Pick');
313 $js_messages['pickColumnTitle'] = __('Column selector');
314 $js_messages['searchList'] = __('Search this list');
315 $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.');
316 $js_messages['seeMore'] = __('See more');
317 $js_messages['confirmTitle'] = __('Are you sure?');
318 $js_messages['makeConsistentMessage'] = __('This action may change some of the columns definition.<br/>Are you sure you want to continue?');
319 $js_messages['strContinue'] = __('Continue');
321 /** For normalization */
322 $js_messages['strAddPrimaryKey'] = __('Add primary key');
323 $js_messages['strPrimaryKeyAdded'] = __('Primary key added.');
324 $js_messages['strToNextStep'] = __('Taking you to next step…');
325 $js_messages['strFinishMsg'] = __("The first step of normalization is complete for table '%s'.");
326 $js_messages['strEndStep'] = __("End of step");
327 $js_messages['str2NFNormalization'] = __('Second step of normalization (2NF)');
328 $js_messages['strDone'] = __('Done');
329 $js_messages['strConfirmPd'] = __('Confirm partial dependencies');
330 $js_messages['strSelectedPd'] = __('Selected partial dependencies are as follows:');
331 $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.');
332 $js_messages['strNoPdSelected'] = __('No partial dependencies selected!');
333 $js_messages['strBack'] = __('Back');
334 $js_messages['strShowPossiblePd'] = __('Show me the possible partial dependencies based on data in the table');
335 $js_messages['strHidePd'] = __('Hide partial dependencies list');
336 $js_messages['strWaitForPd'] = __('Sit tight! It may take few seconds depending on data size and column count of the table.');
337 $js_messages['strStep'] = __('Step');
338 $js_messages['strMoveRepeatingGroup'] = '<ol><b>' . __('The following actions will be performed:') . '</b>'
339 . '<li>' . __('DROP columns %s from the table %s') . '</li>'
340 . '<li>' . __('Create the following table') . '</li>';
341 $js_messages['strNewTablePlaceholder'] = 'Enter new table name';
342 $js_messages['strNewColumnPlaceholder'] = 'Enter column name';
343 $js_messages['str3NFNormalization'] = __('Third step of normalization (3NF)');
344 $js_messages['strConfirmTd'] = __('Confirm transitive dependencies');
345 $js_messages['strSelectedTd'] = __('Selected dependencies are as follows:');
346 $js_messages['strNoTdSelected'] = __('No dependencies selected!');
348 /* For server_variables.js */
349 $js_messages['strSave'] = __('Save');
351 /* For tbl_select.js */
352 $js_messages['strHideSearchCriteria'] = __('Hide search criteria');
353 $js_messages['strShowSearchCriteria'] = __('Show search criteria');
354 $js_messages['strRangeSearch'] = __('Range search');
355 $js_messages['strColumnMax'] = __('Column maximum:');
356 $js_messages['strColumnMin'] = __('Column minimum:');
357 $js_messages['strMinValue'] = __('Minimum value:');
358 $js_messages['strMaxValue'] = __('Maximum value:');
360 /* For tbl_find_replace.js */
361 $js_messages['strHideFindNReplaceCriteria'] = __('Hide find and replace criteria');
362 $js_messages['strShowFindNReplaceCriteria'] = __('Show find and replace criteria');
364 /* For tbl_zoom_plot_jqplot.js */
365 $js_messages['strDisplayHelp'] = '<ul><li>'
366 . __('Each point represents a data row.')
367 . '</li><li>'
368 . __('Hovering over a point will show its label.')
369 . '</li><li>'
370 . __('To zoom in, select a section of the plot with the mouse.')
371 . '</li><li>'
372 . __('Click reset zoom button to come back to original state.')
373 . '</li><li>'
374 . __('Click a data point to view and possibly edit the data row.')
375 . '</li><li>'
376 . __('The plot can be resized by dragging it along the bottom right corner.')
377 . '</li></ul>';
378 $js_messages['strInputNull'] = '<strong>' . __('Select two columns') . '</strong>';
379 $js_messages['strSameInputs'] = '<strong>'
380 . __('Select two different columns')
381 . '</strong>';
382 $js_messages['strDataPointContent'] = __('Data point content');
384 /* For tbl_change.js */
385 $js_messages['strIgnore'] = __('Ignore');
386 $js_messages['strCopy'] = __('Copy');
387 $js_messages['strX'] = __('X');
388 $js_messages['strY'] = __('Y');
389 $js_messages['strPoint'] = __('Point');
390 $js_messages['strPointN'] = __('Point %d');
391 $js_messages['strLineString'] = __('Linestring');
392 $js_messages['strPolygon'] = __('Polygon');
393 $js_messages['strGeometry'] = __('Geometry');
394 $js_messages['strInnerRing'] = __('Inner Ring');
395 $js_messages['strOuterRing'] = __('Outer Ring');
396 $js_messages['strAddPoint'] = __('Add a point');
397 $js_messages['strAddInnerRing'] = __('Add an inner ring');
398 $js_messages['strFunctionHint'] = __('Shift + Click on function name to apply to all rows.');
399 $js_messages['strYes'] = __('Yes');
400 $js_messages['strCopyEncryptionKey'] = __('Do you want to copy encryption key?');
401 $js_messages['strEncryptionKey'] = __('Encryption key');
403 /* For Lock symbol Tooltip */
404 $js_messages['strLockToolTip'] = __(
405 'Indicates that you have made changes to this page;'
406 . ' you will be prompted for confirmation before abandoning changes'
409 /* Designer (js/pmd/move.js) */
410 $js_messages['strSelectReferencedKey'] = __('Select referenced key');
411 $js_messages['strSelectForeignKey'] = __('Select Foreign Key');
412 $js_messages['strPleaseSelectPrimaryOrUniqueKey'] = __('Please select the primary key or a unique key!');
413 $js_messages['strChangeDisplay'] = __('Choose column to display');
414 $js_messages['strLeavingDesigner'] = __(
415 'You haven\'t saved the changes in the layout. They will be lost if you'
416 . ' don\'t save them. Do you want to continue?'
418 $js_messages['strPageName'] = __('Page name');
419 $js_messages['strSavePage'] = __('Save page');
420 $js_messages['strOpenPage'] = __('Open page');
421 $js_messages['strDeletePage'] = __('Delete page');
422 $js_messages['strUntitled'] = __('Untitled');
423 $js_messages['strSelectPage'] = __('Please select a page to continue');
424 $js_messages['strEnterValidPageName'] = __('Please enter a valid page name');
425 $js_messages['strLeavingPage'] = __('Do you want to save the changes to the current page?');
426 $js_messages['strSuccessfulPageDelete'] = __('Successfully deleted the page');
427 $js_messages['strExportRelationalSchema'] = __('Export relational schema');
428 $js_messages['strModificationSaved'] = __('Modifications have been saved');
430 /* Visual query builder (js/pmd/move.js) */
431 $js_messages['strAddOption'] = __('Add an option for column "%s".');
432 $js_messages['strObjectsCreated'] = __('%d object(s) created.');
434 /* For makegrid.js (column reordering, show/hide column, grid editing) */
435 $js_messages['strCellEditHint'] = __('Press escape to cancel editing.');
436 $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?');
437 $js_messages['strColOrderHint'] = __('Drag to reorder.');
438 $js_messages['strSortHint'] = __('Click to sort results by this column.');
439 $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');
440 $js_messages['strColMarkHint'] = __('Click to mark/unmark.');
441 $js_messages['strColNameCopyHint'] = __('Double-click to copy column name.');
442 $js_messages['strColVisibHint'] = __(
443 'Click the drop-down arrow<br />to toggle column\'s visibility.'
445 $js_messages['strShowAllCol'] = __('Show all');
446 $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.');
447 $js_messages['strEnterValidHex'] = __('Please enter a valid hexadecimal string. Valid characters are 0-9, A-F.');
448 $js_messages['strShowAllRowsWarning'] = __('Do you really want to see all of the rows? For a big table this could crash the browser.');
450 /** Drag & Drop sql import messages */
451 $js_messages['dropImportMessageCancel'] = __('cancel');
452 $js_messages['dropImportMessageAborted'] = __('Aborted');
453 $js_messages['dropImportMessageFailed'] = __('Failed');
454 $js_messages['dropImportMessageSuccess'] = __('Success');
455 $js_messages['dropImportImportResultHeader'] = __('Import status');
456 $js_messages['dropImportDropFiles'] = __('Drop files here');
457 $js_messages['dropImportSelectDB'] = __('Select database first');
459 // this approach does not work when the parameter is changed via user prefs
460 switch ($GLOBALS['cfg']['GridEditing']) {
461 case 'double-click':
462 $js_messages['strGridEditFeatureHint'] = __('You can also edit most values<br />by double-clicking directly on them.');
463 break;
464 case 'click':
465 $js_messages['strGridEditFeatureHint'] = __('You can also edit most values<br />by clicking directly on them.');
466 break;
467 default:
468 break;
470 $js_messages['strGoToLink'] = __('Go to link:');
471 $js_messages['strColNameCopyTitle'] = __('Copy column name.');
472 $js_messages['strColNameCopyText'] = __('Right-click the column name to copy it to your clipboard.');
474 /* password generation */
475 $js_messages['strGeneratePassword'] = __('Generate password');
476 $js_messages['strGenerate'] = __('Generate');
477 $js_messages['strChangePassword'] = __('Change Password');
479 /* navigation tabs */
480 $js_messages['strMore'] = __('More');
482 /* navigation panel */
483 $js_messages['strShowPanel'] = __('Show Panel');
484 $js_messages['strHidePanel'] = __('Hide Panel');
485 $js_messages['strUnhideNavItem'] = __('Show hidden navigation tree items.');
486 $js_messages['linkWithMain'] = __('Link with main panel');
487 $js_messages['unlinkWithMain'] = __('Unlink from main panel');
488 $js_messages['strHoverDbFastFilter'] = __('To filter all databases on server, press Enter after a search term');
489 $js_messages['strHoverFastFilter'] = __('To filter all %s in database, press Enter after a search term');
490 $js_messages['strTables'] = __('tables');
491 $js_messages['strViews'] = __('views');
492 $js_messages['strProcedures'] = __('procedures');
493 $js_messages['strEvents'] = __('events');
494 $js_messages['strFunctions'] = __('functions');
496 /* microhistory */
497 $js_messages['strInvalidPage'] = __('The requested page was not found in the history, it may have expired.');
499 /* update */
500 $js_messages['strNewerVersion'] = __('A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is %s, released on %s.');
501 /* l10n: Latest available phpMyAdmin version */
502 $js_messages['strLatestAvailable'] = __(', latest stable version:');
503 $js_messages['strUpToDate'] = __('up to date');
505 $js_messages['strCreateView'] = __('Create view');
507 /* Error Reporting */
508 $js_messages['strSendErrorReport'] = __("Send Error Report");
509 $js_messages['strSubmitErrorReport'] = __("Submit Error Report");
510 $js_messages['strErrorOccurred'] = __(
511 "A fatal JavaScript error has occurred. Would you like to send an error report?"
513 $js_messages['strChangeReportSettings'] = __("Change Report Settings");
514 $js_messages['strShowReportDetails'] = __("Show Report Details");
515 $js_messages['strIgnore'] = __("Ignore");
516 $js_messages['strTimeOutError'] = __(
517 "Your export is incomplete, due to a low execution time limit at the PHP level!"
520 $js_messages['strTooManyInputs'] = __(
521 "Warning: a form on this page has more than %d fields. On submission, "
522 . "some of the fields might be ignored, due to PHP's "
523 . "max_input_vars configuration."
526 $js_messages['phpErrorsFound'] = '<div class="error">'
527 . __('Some errors have been detected on the server!')
528 . '<div>'
529 . __('Please look at the bottom of this window.')
530 . '<input id="pma_ignore_errors_popup" type="submit" value="'
531 . __('Ignore')
532 . '" style="float: right; margin: 20px;">'
533 . '<input id="pma_ignore_all_errors_popup" type="submit" value="'
534 . __('Ignore All')
535 . '" style="float: right; margin: 20px;">'
536 . '</div></div>';
538 $js_messages['phpErrorsBeingSubmitted'] = '<div class="error">'
539 . __('Some errors have been detected on the server!')
540 . '<br/>'
541 . __('As per your settings, they are being submitted currently, please be patient.')
542 . '<br/>'
543 . '<img src="'
544 . ($_SESSION['PMA_Theme']->getImgPath('ajax_clock_small.gif'))
545 . '" width="16" height="16" alt="ajax clock"/>'
546 . '</div>';
548 $js_messages['strConsoleRequeryConfirm'] = __('Execute this query again?');
549 $js_messages['strConsoleDeleteBookmarkConfirm'] = __('Do you really want to delete this bookmark?');
550 $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".');
552 echo "var PMA_messages = new Array();\n";
553 foreach ($js_messages as $name => $js_message) {
554 PMA_printJsValue("PMA_messages['" . $name . "']", $js_message);
557 /* Calendar */
558 echo "var themeCalendarImage = '" . $GLOBALS['pmaThemeImage']
559 . 'b_calendar.png' . "';\n";
561 /* Image path */
562 echo "var pmaThemeImage = '" . $GLOBALS['pmaThemeImage'] . "';\n";
564 echo "var mysql_doc_template = '" . PMA_Util::getMySQLDocuURL('%s') . "';\n";
566 //Max input vars allowed by PHP.
567 $maxInputVars = ini_get('max_input_vars');
568 echo 'var maxInputVars = '
569 . (false === $maxInputVars || '' == $maxInputVars ? 'false' : $maxInputVars)
570 . ';' . "\n";
572 echo "if ($.datepicker) {\n";
573 /* l10n: Display text for calendar close link */
574 PMA_printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
575 /* l10n: Display text for previous month link in calendar */
576 PMA_printJsValue(
577 "$.datepicker.regional['']['prevText']",
578 _pgettext('Previous month', 'Prev')
580 /* l10n: Display text for next month link in calendar */
581 PMA_printJsValue(
582 "$.datepicker.regional['']['nextText']",
583 _pgettext('Next month', 'Next')
585 /* l10n: Display text for current month link in calendar */
586 PMA_printJsValue("$.datepicker.regional['']['currentText']", __('Today'));
587 PMA_printJsValue(
588 "$.datepicker.regional['']['monthNames']",
589 array(
590 __('January'),
591 __('February'),
592 __('March'),
593 __('April'),
594 __('May'),
595 __('June'),
596 __('July'),
597 __('August'),
598 __('September'),
599 __('October'),
600 __('November'),
601 __('December')
604 PMA_printJsValue(
605 "$.datepicker.regional['']['monthNamesShort']",
606 array(
607 /* l10n: Short month name */
608 __('Jan'),
609 /* l10n: Short month name */
610 __('Feb'),
611 /* l10n: Short month name */
612 __('Mar'),
613 /* l10n: Short month name */
614 __('Apr'),
615 /* l10n: Short month name */
616 _pgettext('Short month name', 'May'),
617 /* l10n: Short month name */
618 __('Jun'),
619 /* l10n: Short month name */
620 __('Jul'),
621 /* l10n: Short month name */
622 __('Aug'),
623 /* l10n: Short month name */
624 __('Sep'),
625 /* l10n: Short month name */
626 __('Oct'),
627 /* l10n: Short month name */
628 __('Nov'),
629 /* l10n: Short month name */
630 __('Dec')
633 PMA_printJsValue(
634 "$.datepicker.regional['']['dayNames']",
635 array(
636 __('Sunday'),
637 __('Monday'),
638 __('Tuesday'),
639 __('Wednesday'),
640 __('Thursday'),
641 __('Friday'),
642 __('Saturday')
645 PMA_printJsValue(
646 "$.datepicker.regional['']['dayNamesShort']",
647 array(
648 /* l10n: Short week day name */
649 __('Sun'),
650 /* l10n: Short week day name */
651 __('Mon'),
652 /* l10n: Short week day name */
653 __('Tue'),
654 /* l10n: Short week day name */
655 __('Wed'),
656 /* l10n: Short week day name */
657 __('Thu'),
658 /* l10n: Short week day name */
659 __('Fri'),
660 /* l10n: Short week day name */
661 __('Sat')
664 PMA_printJsValue(
665 "$.datepicker.regional['']['dayNamesMin']",
666 array(
667 /* l10n: Minimal week day name */
668 __('Su'),
669 /* l10n: Minimal week day name */
670 __('Mo'),
671 /* l10n: Minimal week day name */
672 __('Tu'),
673 /* l10n: Minimal week day name */
674 __('We'),
675 /* l10n: Minimal week day name */
676 __('Th'),
677 /* l10n: Minimal week day name */
678 __('Fr'),
679 /* l10n: Minimal week day name */
680 __('Sa')
683 /* l10n: Column header for week of the year in calendar */
684 PMA_printJsValue("$.datepicker.regional['']['weekHeader']", __('Wk'));
686 PMA_printJsValue(
687 "$.datepicker.regional['']['showMonthAfterYear']",
688 /* l10n: Month-year order for calendar, use either "calendar-month-year"
689 * or "calendar-year-month".
691 (__('calendar-month-year') == 'calendar-year-month')
693 /* l10n: Year suffix for calendar, "none" is empty. */
694 $year_suffix = _pgettext('Year suffix', 'none');
695 PMA_printJsValue(
696 "$.datepicker.regional['']['yearSuffix']",
697 ($year_suffix == 'none' ? '' : $year_suffix)
700 $.extend($.datepicker._defaults, $.datepicker.regional['']);
701 } /* if ($.datepicker) */
703 <?php
704 echo "if ($.timepicker) {\n";
705 PMA_printJsValue("$.timepicker.regional['']['timeText']", __('Time'));
706 PMA_printJsValue("$.timepicker.regional['']['hourText']", __('Hour'));
707 PMA_printJsValue("$.timepicker.regional['']['minuteText']", __('Minute'));
708 PMA_printJsValue("$.timepicker.regional['']['secondText']", __('Second'));
710 $.extend($.timepicker._defaults, $.timepicker.regional['']);
711 } /* if ($.timepicker) */