PageRenderTime 65ms CodeModel.GetById 33ms RepoModel.GetById 1ms app.codeStats 0ms

/phpmyadmin/js/messages.php

https://bitbucket.org/adarshj/convenient_website
PHP | 503 lines | 346 code | 62 blank | 95 comment | 2 complexity | b7d5004812f9d52a55a5da17b109ab7f MD5 | raw file
Possible License(s): Apache-2.0, MPL-2.0-no-copyleft-exception, LGPL-2.1, BSD-2-Clause, GPL-2.0, LGPL-3.0
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Exporting of translated messages from PHP to Javascript
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. chdir('..');
  9. // Send correct type:
  10. header('Content-Type: text/javascript; charset=UTF-8');
  11. // Cache output in client - the nocache query parameter makes sure that this
  12. // file is reloaded when config changes
  13. header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');
  14. // Avoid loading the full common.inc.php because this would add many
  15. // non-js-compatible stuff like DOCTYPE
  16. define('PMA_MINIMUM_COMMON', true);
  17. require_once './libraries/common.inc.php';
  18. // Close session early as we won't write anything there
  19. session_write_close();
  20. // But this one is needed for PMA_escapeJsString()
  21. require_once './libraries/js_escape.lib.php';
  22. $js_messages['strNoDropDatabases'] = $cfg['AllowUserDropDatabase'] ? '' : __('"DROP DATABASE" statements are disabled.');
  23. /* For confirmations */
  24. $js_messages['strDoYouReally'] = __('Do you really want to ');
  25. $js_messages['strDropDatabaseStrongWarning'] = __('You are about to DESTROY a complete database!');
  26. $js_messages['strDropTableStrongWarning'] = __('You are about to DESTROY a complete table!');
  27. $js_messages['strTruncateTableStrongWarning'] = __('You are about to TRUNCATE a complete table!');
  28. $js_messages['strDeleteTrackingData'] = __('Delete tracking data for this table');
  29. $js_messages['strDeletingTrackingData'] = __('Deleting tracking data');
  30. $js_messages['strDroppingPrimaryKeyIndex'] = __('Dropping Primary Key/Index');
  31. $js_messages['strOperationTakesLongTime'] = __('This operation could take a long time. Proceed anyway?');
  32. /* For blobstreaming */
  33. $js_messages['strBLOBRepositoryDisableStrongWarning'] = __('You are about to DISABLE a BLOB Repository!');
  34. $js_messages['strBLOBRepositoryDisableAreYouSure'] = sprintf(__('Are you sure you want to disable all BLOB references for database %s?'), PMA_escapeJsString($GLOBALS['db']));
  35. /* For indexes */
  36. $js_messages['strFormEmpty'] = __('Missing value in the form!');
  37. $js_messages['strNotNumber'] = __('This is not a number!');
  38. $js_messages['strAddIndex'] = __('Add Index');
  39. $js_messages['strEditIndex'] = __('Edit Index');
  40. $js_messages['strAddToIndex'] = __('Add %d column(s) to index');
  41. /* Charts */
  42. /* l10n: Default description for the y-Axis of Charts */
  43. $js_messages['strTotalCount'] = __('Total count');
  44. /* For server_privileges.js */
  45. $js_messages['strHostEmpty'] = __('The host name is empty!');
  46. $js_messages['strUserEmpty'] = __('The user name is empty!');
  47. $js_messages['strPasswordEmpty'] = __('The password is empty!');
  48. $js_messages['strPasswordNotSame'] = __('The passwords aren\'t the same!');
  49. $js_messages['strAddUser'] = __('Add user');
  50. $js_messages['strReloadingPrivileges'] = __('Reloading Privileges');
  51. $js_messages['strRemovingSelectedUsers'] = __('Removing Selected Users');
  52. $js_messages['strClose'] = __('Close');
  53. /* for server_status.js */
  54. $js_messages['strEdit'] = __('Edit');
  55. $js_messages['strLiveTrafficChart'] = __('Live traffic chart');
  56. $js_messages['strLiveConnChart'] = __('Live conn./process chart');
  57. $js_messages['strLiveQueryChart'] = __('Live query chart');
  58. $js_messages['strStaticData'] = __('Static data');
  59. /* l10n: Total number of queries */
  60. $js_messages['strTotal'] = __('Total');
  61. /* l10n: Other, small valued, queries */
  62. $js_messages['strOther'] = __('Other');
  63. /* l10n: Thousands separator */
  64. $js_messages['strThousandsSeperator'] = __(',');
  65. /* l10n: Decimal separator */
  66. $js_messages['strDecimalSeperator'] = __('.');
  67. $js_messages['strChartKBSent'] = __('KiB sent since last refresh');
  68. $js_messages['strChartKBReceived'] = __('KiB received since last refresh');
  69. $js_messages['strChartServerTraffic'] = __('Server traffic (in KiB)');
  70. $js_messages['strChartConnections'] = __('Connections since last refresh');
  71. $js_messages['strChartProcesses'] = __('Processes');
  72. $js_messages['strChartConnectionsTitle'] = __('Connections / Processes');
  73. /* l10n: Questions is the name of a MySQL Status variable */
  74. $js_messages['strChartIssuedQueries'] = __('Questions since last refresh');
  75. /* l10n: Questions is the name of a MySQL Status variable */
  76. $js_messages['strChartIssuedQueriesTitle'] = __('Questions (executed statements by the server)');
  77. $js_messages['strChartQueryPie'] = __('Query statistics');
  78. /* server status monitor */
  79. $js_messages['strIncompatibleMonitorConfig'] = __('Local monitor configuration incompatible');
  80. $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.');
  81. $js_messages['strQueryCacheEfficiency'] = __('Query cache efficiency');
  82. $js_messages['strQueryCacheUsage'] = __('Query cache usage');
  83. $js_messages['strQueryCacheUsed'] = __('Query cache used');
  84. $js_messages['strSystemCPUUsage'] = __('System CPU Usage');
  85. $js_messages['strSystemMemory'] = __('System memory');
  86. $js_messages['strSystemSwap'] = __('System swap');
  87. $js_messages['strMiB'] = __('MiB');
  88. $js_messages['strKiB'] = __('KiB');
  89. $js_messages['strAverageLoad'] = __('Average load');
  90. $js_messages['strTotalMemory'] = __('Total memory');
  91. $js_messages['strCachedMemory'] = __('Cached memory');
  92. $js_messages['strBufferedMemory'] = __('Buffered memory');
  93. $js_messages['strFreeMemory'] = __('Free memory');
  94. $js_messages['strUsedMemory'] = __('Used memory');
  95. $js_messages['strTotalSwap'] = __('Total Swap');
  96. $js_messages['strCachedSwap'] = __('Cached Swap');
  97. $js_messages['strUsedSwap'] = __('Used Swap');
  98. $js_messages['strFreeSwap'] = __('Free Swap');
  99. $js_messages['strBytesSent'] = __('Bytes sent');
  100. $js_messages['strBytesReceived'] = __('Bytes received');
  101. $js_messages['strConnections'] = __('Connections');
  102. $js_messages['strProcesses'] = __('Processes');
  103. /* summary row */
  104. $js_messages['strB'] = __('B');
  105. $js_messages['strKiB'] = __('KiB');
  106. $js_messages['strMiB'] = __('MiB');
  107. $js_messages['strGiB'] = __('GiB');
  108. $js_messages['strTiB'] = __('TiB');
  109. $js_messages['strPiB'] = __('PiB');
  110. $js_messages['strEiB'] = __('EiB');
  111. $js_messages['strTables'] = __('%d table(s)');
  112. /* l10n: Questions is the name of a MySQL Status variable */
  113. $js_messages['strQuestions'] = __('Questions');
  114. $js_messages['strTraffic'] = __('Traffic');
  115. $js_messages['strSettings'] = __('Settings');
  116. $js_messages['strRemoveChart'] = __('Remove chart');
  117. $js_messages['strEditChart'] = __('Edit title and labels');
  118. $js_messages['strAddChart'] = __('Add chart to grid');
  119. $js_messages['strClose'] = __('Close');
  120. $js_messages['strAddOneSeriesWarning'] = __('Please add at least one variable to the series');
  121. $js_messages['strNone'] = __('None');
  122. $js_messages['strResumeMonitor'] = __('Resume monitor');
  123. $js_messages['strPauseMonitor'] = __('Pause monitor');
  124. /* Monitor: Instructions Dialog */
  125. $js_messages['strBothLogOn'] = __('general_log and slow_query_log are enabled.');
  126. $js_messages['strGenLogOn'] = __('general_log is enabled.');
  127. $js_messages['strSlowLogOn'] = __('slow_query_log is enabled.');
  128. $js_messages['strBothLogOff'] = __('slow_query_log and general_log are disabled.');
  129. $js_messages['strLogOutNotTable'] = __('log_output is not set to TABLE.');
  130. $js_messages['strLogOutIsTable'] = __('log_output is set to TABLE.');
  131. $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.');
  132. $js_messages['strLongQueryTimeSet'] = __('long_query_time is set to %d second(s).');
  133. $js_messages['strSettingsAppliedGlobal'] = __('Following settings will be applied globally and reset to default on server restart:');
  134. /* l10n: %s is FILE or TABLE */
  135. $js_messages['strSetLogOutput'] = __('Set log_output to %s');
  136. /* l10n: Enable in this context means setting a status variable to ON */
  137. $js_messages['strEnableVar'] = __('Enable %s');
  138. /* l10n: Disable in this context means setting a status variable to OFF */
  139. $js_messages['strDisableVar'] = __('Disable %s');
  140. /* l10n: %d seconds */
  141. $js_messages['setSetLongQueryTime'] = __('Set long_query_time to %ds');
  142. $js_messages['strNoSuperUser'] = __('You can\'t change these variables. Please log in as root or contact your database administrator.');
  143. $js_messages['strChangeSettings'] = __('Change settings');
  144. $js_messages['strCurrentSettings'] = __('Current settings');
  145. $js_messages['strChartTitle'] = __('Chart Title');
  146. /* l10n: As in differential values */
  147. $js_messages['strDifferential'] = __('Differential');
  148. $js_messages['strDividedBy'] = __('Divided by %s');
  149. $js_messages['strUnit'] = __('Unit');
  150. $js_messages['strFromSlowLog'] = __('From slow log');
  151. $js_messages['strFromGeneralLog'] = __('From general log');
  152. $js_messages['strAnalysingLogsTitle'] = __('Analysing logs');
  153. $js_messages['strAnalysingLogs'] = __('Analysing & loading logs. This may take a while.');
  154. $js_messages['strCancelRequest'] = __('Cancel request');
  155. $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.');
  156. $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.');
  157. $js_messages['strLogDataLoaded'] = __('Log data loaded. Queries executed in this time span:');
  158. $js_messages['strJumpToTable'] = __('Jump to Log table');
  159. $js_messages['strNoDataFoundTitle'] = __('No data found');
  160. $js_messages['strNoDataFound'] = __('Log analysed, but no data found in this time span.');
  161. $js_messages['strAnalyzing'] = __('Analyzing...');
  162. $js_messages['strExplainOutput'] = __('Explain output');
  163. $js_messages['strStatus'] = __('Status');
  164. $js_messages['strTime'] = __('Time');
  165. $js_messages['strTotalTime'] = __('Total time:');
  166. $js_messages['strProfilingResults'] = __('Profiling results');
  167. $js_messages['strTable'] = _pgettext('Display format', 'Table');
  168. $js_messages['strChart'] = __('Chart');
  169. $js_messages['strChartEdit'] = __('Edit chart');
  170. $js_messages['strSeries'] = __('Series');
  171. /* l10n: A collection of available filters */
  172. $js_messages['strFiltersForLogTable'] = __('Log table filter options');
  173. /* l10n: Filter as in "Start Filtering" */
  174. $js_messages['strFilter'] = __('Filter');
  175. $js_messages['strFilterByWordRegexp'] = __('Filter queries by word/regexp:');
  176. $js_messages['strIgnoreWhereAndGroup'] = __('Group queries, ignoring variable data in WHERE clauses');
  177. $js_messages['strSumRows'] = __('Sum of grouped rows:');
  178. $js_messages['strTotal'] = __('Total:');
  179. $js_messages['strLoadingLogs'] = __('Loading logs');
  180. $js_messages['strRefreshFailed'] = __('Monitor refresh failed');
  181. $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.');
  182. $js_messages['strReloadPage'] = __('Reload page');
  183. $js_messages['strAffectedRows'] = __('Affected rows:');
  184. $js_messages['strFailedParsingConfig'] = __('Failed parsing config file. It doesn\'t seem to be valid JSON code.');
  185. $js_messages['strFailedBuildingGrid'] = __('Failed building chart grid with imported config. Resetting to default config...');
  186. $js_messages['strImport'] = __('Import');
  187. $js_messages['strImportDialogTitle'] = __('Import monitor configuration');
  188. $js_messages['strImportDialogMessage'] = __('Please select the file you want to import');
  189. $js_messages['strAnalyzeQuery'] = __('Analyse Query');
  190. /* Server status advisor */
  191. $js_messages['strAdvisorSystem'] = __('Advisor system');
  192. $js_messages['strPerformanceIssues'] = __('Possible performance issues');
  193. $js_messages['strIssuse'] = __('Issue');
  194. $js_messages['strRecommendation'] = __('Recommendation');
  195. $js_messages['strRuleDetails'] = __('Rule details');
  196. $js_messages['strJustification'] = __('Justification');
  197. $js_messages['strFormula'] = __('Used variable / formula');
  198. $js_messages['strTest'] = __('Test');
  199. /* For inline query editing */
  200. $js_messages['strGo'] = __('Go');
  201. $js_messages['strCancel'] = __('Cancel');
  202. /* For Ajax Notifications */
  203. $js_messages['strLoading'] = __('Loading');
  204. $js_messages['strProcessingRequest'] = __('Processing Request');
  205. $js_messages['strErrorProcessingRequest'] = __('Error in Processing Request');
  206. $js_messages['strDroppingColumn'] = __('Dropping Column');
  207. $js_messages['strAddingPrimaryKey'] = __('Adding Primary Key');
  208. $js_messages['strOK'] = __('OK');
  209. $js_messages['strDismiss'] = __('Click to dismiss this notification');
  210. /* For db_operations.js */
  211. $js_messages['strRenamingDatabases'] = __('Renaming Databases');
  212. $js_messages['strReloadDatabase'] = __('Reload Database');
  213. $js_messages['strCopyingDatabase'] = __('Copying Database');
  214. $js_messages['strChangingCharset'] = __('Changing Charset');
  215. $js_messages['strTableMustHaveAtleastOneColumn'] = __('Table must have at least one column');
  216. $js_messages['strYes'] = __('Yes');
  217. $js_messages['strNo'] = __('No');
  218. /* For db_stucture.js */
  219. $js_messages['strInsertTable'] = __('Insert Table');
  220. $js_messages['strHideIndexes'] = __('Hide indexes');
  221. $js_messages['strShowIndexes'] = __('Show indexes');
  222. /* For db_search.js */
  223. $js_messages['strSearching'] = __('Searching');
  224. $js_messages['strHideSearchResults'] = __('Hide search results');
  225. $js_messages['strShowSearchResults'] = __('Show search results');
  226. $js_messages['strBrowsing'] = __('Browsing');
  227. $js_messages['strDeleting'] = __('Deleting');
  228. /* For db_routines.js */
  229. $js_messages['MissingReturn'] = __('The definition of a stored function must contain a RETURN statement!');
  230. /* For ENUM/SET editor*/
  231. $js_messages['enum_editor'] = __('ENUM/SET editor');
  232. $js_messages['enum_columnVals'] =__('Values for column %s');
  233. $js_messages['enum_newColumnVals'] = __('Values for a new column');
  234. $js_messages['enum_hint'] =__('Enter each value in a separate field');
  235. $js_messages['enum_addValue'] =__('Add %d value(s)');
  236. /* For import.js */
  237. $js_messages['strImportCSV'] = __('Note: If the file contains multiple tables, they will be combined into one');
  238. /* For sql.js */
  239. $js_messages['strHideQueryBox'] = __('Hide query box');
  240. $js_messages['strShowQueryBox'] = __('Show query box');
  241. $js_messages['strEdit'] = __('Edit');
  242. $js_messages['strNoRowSelected'] = __('No rows selected');
  243. $js_messages['strChangeTbl'] = __('Change');
  244. $js_messages['strQueryExecutionTime'] = __('Query execution time');
  245. $js_messages['strNotValidRowNumber'] = __('%d is not valid row number.');
  246. /* For server_variables.js */
  247. $js_messages['strSave'] = __('Save');
  248. /* For tbl_select.js */
  249. $js_messages['strHideSearchCriteria'] = __('Hide search criteria');
  250. $js_messages['strShowSearchCriteria'] = __('Show search criteria');
  251. /* For tbl_zoom_plot_jqplot.js */
  252. $js_messages['strZoomSearch'] = __('Zoom Search');
  253. $js_messages['strDisplayHelp'] = '<ul><li>'
  254. . __('Each point represents a data row.')
  255. . '</li><li>'
  256. . __('Hovering over a point will show its label.')
  257. . '</li><li>'
  258. . __('To zoom in, select a section of the plot with the mouse.')
  259. . '</li><li>'
  260. . __('Click reset zoom link to come back to original state.')
  261. . '</li><li>'
  262. . __('Click a data point to view and possibly edit the data row.')
  263. . '</li><li>'
  264. . __('The plot can be resized by dragging it along the bottom right corner.')
  265. . '</li></ul>';
  266. $js_messages['strInputNull'] = '<strong>' . __('Select two columns') . '</strong>';
  267. $js_messages['strSameInputs'] = '<strong>' . __('Select two different columns') . '</strong>';
  268. $js_messages['strQueryResults'] = __('Query results');
  269. $js_messages['strDataPointContent'] = __('Data point content');
  270. /* For tbl_change.js */
  271. $js_messages['strIgnore'] = __('Ignore');
  272. $js_messages['strCopy'] = __('Copy');
  273. $js_messages['strX'] = __('X');
  274. $js_messages['strY'] = __('Y');
  275. $js_messages['strPoint'] = __('Point');
  276. $js_messages['strPointN'] = __('Point %d');
  277. $js_messages['strLineString'] = __('Linestring');
  278. $js_messages['strPolygon'] = __('Polygon');
  279. $js_messages['strGeometry'] = __('Geometry');
  280. $js_messages['strInnerRing'] = __('Inner Ring');
  281. $js_messages['strOuterRing'] = __('Outer Ring');
  282. $js_messages['strAddPoint'] = __('Add a point');
  283. $js_messages['strAddInnerRing'] = __('Add an inner ring');
  284. $js_messages['strAddPolygon'] = __('Add a polygon');
  285. /* For tbl_structure.js */
  286. $js_messages['strAddColumns'] = __('Add columns');
  287. /* Designer (js/pmd/move.js) */
  288. $js_messages['strSelectReferencedKey'] = __('Select referenced key');
  289. $js_messages['strSelectForeignKey'] = __('Select Foreign Key');
  290. $js_messages['strPleaseSelectPrimaryOrUniqueKey'] = __('Please select the primary key or a unique key');
  291. $js_messages['strChangeDisplay'] = __('Choose column to display');
  292. $js_messages['strLeavingDesigner'] = __('You haven\'t saved the changes in the layout. They will be lost if you don\'t save them. Do you want to continue?');
  293. /* Visual query builder (js/pmd/move.js) */
  294. $js_messages['strAddOption'] = __('Add an option for column ');
  295. /* For makegrid.js (column reordering, show/hide column, grid editing) */
  296. $js_messages['strCellEditHint'] = __('Press escape to cancel editing');
  297. $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?');
  298. $js_messages['strColOrderHint'] = __('Drag to reorder');
  299. $js_messages['strSortHint'] = __('Click to sort');
  300. $js_messages['strColMarkHint'] = __('Click to mark/unmark');
  301. $js_messages['strColVisibHint'] = __('Click the drop-down arrow<br />to toggle column\'s visibility');
  302. $js_messages['strShowAllCol'] = __('Show all');
  303. $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.');
  304. $js_messages['strGridEditFeatureHint'] = __('You can also edit most columns<br />by clicking directly on their content.');
  305. $js_messages['strGoToLink'] = __('Go to link');
  306. /* password generation */
  307. $js_messages['strGeneratePassword'] = __('Generate password');
  308. $js_messages['strGenerate'] = __('Generate');
  309. $js_messages['strChangePassword'] = __('Change Password');
  310. /* navigation tabs */
  311. $js_messages['strMore'] = __('More');
  312. /* update */
  313. $js_messages['strNewerVersion'] = __('A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is %s, released on %s.');
  314. /* l10n: Latest available phpMyAdmin version */
  315. $js_messages['strLatestAvailable'] = __(', latest stable version:');
  316. $js_messages['strUpToDate'] = __('up to date');
  317. echo "var PMA_messages = new Array();\n";
  318. foreach ($js_messages as $name => $js_message) {
  319. PMA_printJsValue("PMA_messages['" . $name . "']", $js_message);
  320. }
  321. /* Calendar */
  322. echo "var themeCalendarImage = '" . $GLOBALS['pmaThemeImage'] . 'b_calendar.png' . "';\n";
  323. /* Image path */
  324. echo "var pmaThemeImage = '" . $GLOBALS['pmaThemeImage'] . "';\n";
  325. /* Version */
  326. echo "var pmaversion = '" . PMA_VERSION . "';\n";
  327. echo "if ($.datepicker) {\n";
  328. /* l10n: Display text for calendar close link */
  329. PMA_printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
  330. /* l10n: Display text for previous month link in calendar */
  331. PMA_printJsValue(
  332. "$.datepicker.regional['']['prevText']",
  333. _pgettext('Previous month', 'Prev')
  334. );
  335. /* l10n: Display text for next month link in calendar */
  336. PMA_printJsValue(
  337. "$.datepicker.regional['']['nextText']",
  338. _pgettext('Next month', 'Next')
  339. );
  340. /* l10n: Display text for current month link in calendar */
  341. PMA_printJsValue("$.datepicker.regional['']['currentText']", __('Today'));
  342. PMA_printJsValue("$.datepicker.regional['']['monthNames']",
  343. array(
  344. __('January'),
  345. __('February'),
  346. __('March'),
  347. __('April'),
  348. __('May'),
  349. __('June'),
  350. __('July'),
  351. __('August'),
  352. __('September'),
  353. __('October'),
  354. __('November'),
  355. __('December')));
  356. PMA_printJsValue("$.datepicker.regional['']['monthNamesShort']",
  357. array(
  358. /* l10n: Short month name */
  359. __('Jan'),
  360. /* l10n: Short month name */
  361. __('Feb'),
  362. /* l10n: Short month name */
  363. __('Mar'),
  364. /* l10n: Short month name */
  365. __('Apr'),
  366. /* l10n: Short month name */
  367. _pgettext('Short month name', 'May'),
  368. /* l10n: Short month name */
  369. __('Jun'),
  370. /* l10n: Short month name */
  371. __('Jul'),
  372. /* l10n: Short month name */
  373. __('Aug'),
  374. /* l10n: Short month name */
  375. __('Sep'),
  376. /* l10n: Short month name */
  377. __('Oct'),
  378. /* l10n: Short month name */
  379. __('Nov'),
  380. /* l10n: Short month name */
  381. __('Dec')));
  382. PMA_printJsValue("$.datepicker.regional['']['dayNames']",
  383. array(
  384. __('Sunday'),
  385. __('Monday'),
  386. __('Tuesday'),
  387. __('Wednesday'),
  388. __('Thursday'),
  389. __('Friday'),
  390. __('Saturday')));
  391. PMA_printJsValue("$.datepicker.regional['']['dayNamesShort']",
  392. array(
  393. /* l10n: Short week day name */
  394. __('Sun'),
  395. /* l10n: Short week day name */
  396. __('Mon'),
  397. /* l10n: Short week day name */
  398. __('Tue'),
  399. /* l10n: Short week day name */
  400. __('Wed'),
  401. /* l10n: Short week day name */
  402. __('Thu'),
  403. /* l10n: Short week day name */
  404. __('Fri'),
  405. /* l10n: Short week day name */
  406. __('Sat')));
  407. PMA_printJsValue("$.datepicker.regional['']['dayNamesMin']",
  408. array(
  409. /* l10n: Minimal week day name */
  410. __('Su'),
  411. /* l10n: Minimal week day name */
  412. __('Mo'),
  413. /* l10n: Minimal week day name */
  414. __('Tu'),
  415. /* l10n: Minimal week day name */
  416. __('We'),
  417. /* l10n: Minimal week day name */
  418. __('Th'),
  419. /* l10n: Minimal week day name */
  420. __('Fr'),
  421. /* l10n: Minimal week day name */
  422. __('Sa')));
  423. /* l10n: Column header for week of the year in calendar */
  424. PMA_printJsValue("$.datepicker.regional['']['weekHeader']", __('Wk'));
  425. /* l10n: Month-year order for calendar, use either "calendar-month-year" or "calendar-year-month". */
  426. PMA_printJsValue("$.datepicker.regional['']['showMonthAfterYear']", (__('calendar-month-year') == 'calendar-year-month'));
  427. /* l10n: Year suffix for calendar, "none" is empty. */
  428. $year_suffix = _pgettext('Year suffix', 'none');
  429. PMA_printJsValue("$.datepicker.regional['']['yearSuffix']", ($year_suffix == 'none' ? '' : $year_suffix));
  430. ?>
  431. $.extend($.datepicker._defaults, $.datepicker.regional['']);
  432. } /* if ($.datepicker) */
  433. <?php
  434. echo "if ($.timepicker) {\n";
  435. PMA_printJsValue("$.timepicker.regional['']['timeText']", __('Time'));
  436. PMA_printJsValue("$.timepicker.regional['']['hourText']", __('Hour'));
  437. PMA_printJsValue("$.timepicker.regional['']['minuteText']", __('Minute'));
  438. PMA_printJsValue("$.timepicker.regional['']['secondText']", __('Second'));
  439. ?>
  440. $.extend($.timepicker._defaults, $.timepicker.regional['']);
  441. } /* if ($.timepicker) */