2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Exporting of translated messages from PHP to Javascript
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 require_once './libraries/common.inc.php';
22 // But this one is needed for PMA_escapeJsString()
23 require_once './libraries/js_escape.lib.php';
25 $js_messages['strClickToSelect'] = __('Click to select');
26 $js_messages['strClickToUnselect'] = __('Click to unselect');
27 $js_messages['strNoDropDatabases'] = $cfg['AllowUserDropDatabase'] ?
'' : __('"DROP DATABASE" statements are disabled.');
29 /* For confirmations */
30 $js_messages['strDoYouReally'] = __('Do you really want to ');
31 $js_messages['strDropDatabaseStrongWarning'] = __('You are about to DESTROY a complete database!');
32 $js_messages['strDropTableStrongWarning'] = __('You are about to DESTROY a complete table!');
33 $js_messages['strTruncateTableStrongWarning'] = __('You are about to TRUNCATE a complete table!');
34 $js_messages['strDeleteTrackingData'] = __('Delete tracking data for this table');
35 $js_messages['strDeletingTrackingData'] = __('Deleting tracking data');
36 $js_messages['strDroppingPrimaryKeyIndex'] = __('Dropping Primary Key/Index');
37 $js_messages['strOperationTakesLongTime'] = __('This operation could take a long time. Proceed anyway?');
39 /* For blobstreaming */
40 $js_messages['strBLOBRepositoryDisableStrongWarning'] = __('You are about to DISABLE a BLOB Repository!');
41 $js_messages['strBLOBRepositoryDisableAreYouSure'] = sprintf(__('Are you sure you want to disable all BLOB references for database %s?'), PMA_escapeJsString($GLOBALS['db']));
44 $js_messages['strFormEmpty'] = __('Missing value in the form!');
45 $js_messages['strNotNumber'] = __('This is not a number!');
48 /* l10n: Default description for the y-Axis of Charts */
49 $js_messages['strTotalCount'] = __('Total count');
51 /* For server_privileges.js */
52 $js_messages['strHostEmpty'] = __('The host name is empty!');
53 $js_messages['strUserEmpty'] = __('The user name is empty!');
54 $js_messages['strPasswordEmpty'] = __('The password is empty!');
55 $js_messages['strPasswordNotSame'] = __('The passwords aren\'t the same!');
56 $js_messages['strAddUser'] = __('Add user');
57 $js_messages['strReloadingPrivileges'] = __('Reloading Privileges');
58 $js_messages['strRemovingSelectedUsers'] = __('Removing Selected Users');
59 $js_messages['strClose'] = __('Close');
61 /* for server_status.js */
62 $js_messages['strEdit'] = __('Edit');
64 $js_messages['strLiveTrafficChart'] = __('Live traffic chart');
65 $js_messages['strLiveConnChart'] = __('Live conn./process chart');
66 $js_messages['strLiveQueryChart'] = __('Live query chart');
68 $js_messages['strStaticData'] = __('Static data');
69 /* l10n: Total number of queries */
70 $js_messages['strTotal'] = __('Total');
71 /* l10n: Other, small valued, queries */
72 $js_messages['strOther'] = __('Other');
73 /* l10n: Thousands separator */
74 $js_messages['strThousandsSeperator'] = __(',');
75 /* l10n: Decimal separator */
76 $js_messages['strDecimalSeperator'] = __('.');
78 $js_messages['strChartKBSent'] = __('KiB sent since last refresh');
79 $js_messages['strChartKBReceived'] = __('KiB received since last refresh');
80 $js_messages['strChartServerTraffic'] = __('Server traffic (in KiB)');
81 $js_messages['strChartConnections'] = __('Connections since last refresh');
82 $js_messages['strChartProcesses'] = __('Processes');
83 $js_messages['strChartConnectionsTitle'] = __('Connections / Processes');
84 $js_messages['strChartIssuedQueries'] = __('Issued queries since last refresh');
85 $js_messages['strChartIssuedQueriesTitle'] = __('Issued queries');
87 $js_messages['strChartQueryPie'] = __('Query statistics');
89 /* For inline query editing */
90 $js_messages['strGo'] = __('Go');
91 $js_messages['strCancel'] = __('Cancel');
93 /* For Ajax Notifications */
94 $js_messages['strLoading'] = __('Loading');
95 $js_messages['strProcessingRequest'] = __('Processing Request');
96 $js_messages['strErrorProcessingRequest'] = __('Error in Processing Request');
97 $js_messages['strDroppingColumn'] = __('Dropping Column');
98 $js_messages['strAddingPrimaryKey'] = __('Adding Primary Key');
99 $js_messages['strOK'] = __('OK');
101 /* For db_operations.js */
102 $js_messages['strRenamingDatabases'] = __('Renaming Databases');
103 $js_messages['strReloadDatabase'] = __('Reload Database');
104 $js_messages['strCopyingDatabase'] = __('Copying Database');
105 $js_messages['strChangingCharset'] = __('Changing Charset');
106 $js_messages['strTableMustHaveAtleastOneColumn'] = __('Table must have at least one column');
107 $js_messages['strCreateTable'] = __('Create Table');
108 $js_messages['strYes'] = __('Yes');
109 $js_messages['strNo'] = __('No');
111 /* For db_stucture.js */
112 $js_messages['strInsertTable'] = __('Insert Table');
114 /* For db_search.js */
115 $js_messages['strSearching'] = __('Searching');
116 $js_messages['strHideSearchResults'] = __('Hide search results');
117 $js_messages['strShowSearchResults'] = __('Show search results');
118 $js_messages['strBrowsing'] = __('Browsing');
119 $js_messages['strDeleting'] = __('Deleting');
121 /* For db_routines.js */
122 $js_messages['MissingReturn'] = __('The definition of a stored function must contain a RETURN statement!');
123 $js_messages['strValueTooLong'] = __('Value too long in the form!');
126 $js_messages['strImportCSV'] = __('Note: If the file contains multiple tables, they will be combined into one');
129 $js_messages['strHideQueryBox'] = __('Hide query box');
130 $js_messages['strShowQueryBox'] = __('Show query box');
131 $js_messages['strInlineEdit'] = __('Inline Edit');
132 $js_messages['strEdit'] = __('Edit');
133 $js_messages['strSave'] = __('Save');
134 $js_messages['strHide'] = __('Hide');
135 $js_messages['strNoRowSelected'] = __('No rows selected');
136 $js_messages['strChangeTbl'] = __('Change');
138 /* For tbl_select.js */
139 $js_messages['strHideSearchCriteria'] = __('Hide search criteria');
140 $js_messages['strShowSearchCriteria'] = __('Show search criteria');
141 $js_messages['strTableSearch'] = __('Table Search');
143 /* For tbl_zoom_plot.js */
144 $js_messages['strZoomSearch'] = __('Zoom Search');
145 $js_messages['strDisplayHelp'] = __('* Each point represents a data row.<br>* Hovering over a point will show its label.<br>* Drag and select an area in the plot to zoom into it.<br>* Click reset zoom link to come back to original state.<br>* Click data points to view the data row.<br>* The plot can be resized by dragging it along the bottom right corner.<br>');
148 /* For tbl_change.js */
149 $js_messages['strIgnore'] = __('Ignore');
151 /* Designer (pmd/scripts/move.js) */
152 $js_messages['strSelectReferencedKey'] = __('Select referenced key');
153 $js_messages['strSelectForeignKey'] = __('Select Foreign Key');
154 $js_messages['strPleaseSelectPrimaryOrUniqueKey'] = __('Please select the primary key or a unique key');
155 $js_messages['strChangeDisplay'] = __('Choose column to display');
156 $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?');
158 /* Visual query builder (pmd/scripts/move.js) */
159 $js_messages['strAddOption'] = __('Add an option for column ');
161 /* password generation */
162 $js_messages['strGeneratePassword'] = __('Generate password');
163 $js_messages['strGenerate'] = __('Generate');
164 $js_messages['strChangePassword'] = __('Change Password');
166 /* navigation tabs */
167 $js_messages['strMore'] = __('More');
170 $js_messages['strNewerVersion'] = __('A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is %s, released on %s.');
171 /* l10n: Latest available phpMyAdmin version */
172 $js_messages['strLatestAvailable'] = __(', latest stable version:');
173 $js_messages['strUpToDate'] = __('up to date');
175 echo "var PMA_messages = new Array();\n";
176 foreach ($js_messages as $name => $js_message) {
177 PMA_printJsValue("PMA_messages['" . $name . "']", $js_message);
181 echo "var themeCalendarImage = '" . $GLOBALS['pmaThemeImage'] . 'b_calendar.png' . "';\n";
184 echo "var pmaThemeImage = '" . $GLOBALS['pmaThemeImage'] . "';\n";
187 echo "var pmaversion = '" . PMA_VERSION
. "';\n";
189 echo "if ($.datepicker) {\n";
190 /* l10n: Display text for calendar close link */
191 PMA_printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
192 /* l10n: Display text for previous month link in calendar */
193 PMA_printJsValue("$.datepicker.regional['']['prevText']", __('Prev'));
194 /* l10n: Display text for next month link in calendar */
195 PMA_printJsValue("$.datepicker.regional['']['nextText']", __('Next'));
196 /* l10n: Display text for current month link in calendar */
197 PMA_printJsValue("$.datepicker.regional['']['currentText']", __('Today'));
198 PMA_printJsValue("$.datepicker.regional['']['monthNames']",
212 PMA_printJsValue("$.datepicker.regional['']['monthNamesShort']",
214 /* l10n: Short month name */
216 /* l10n: Short month name */
218 /* l10n: Short month name */
220 /* l10n: Short month name */
222 /* l10n: Short month name */
223 _pgettext('Short month name', 'May'),
224 /* l10n: Short month name */
226 /* l10n: Short month name */
228 /* l10n: Short month name */
230 /* l10n: Short month name */
232 /* l10n: Short month name */
234 /* l10n: Short month name */
236 /* l10n: Short month name */
238 PMA_printJsValue("$.datepicker.regional['']['dayNames']",
247 PMA_printJsValue("$.datepicker.regional['']['dayNamesShort']",
249 /* l10n: Short week day name */
251 /* l10n: Short week day name */
253 /* l10n: Short week day name */
255 /* l10n: Short week day name */
257 /* l10n: Short week day name */
259 /* l10n: Short week day name */
261 /* l10n: Short week day name */
263 PMA_printJsValue("$.datepicker.regional['']['dayNamesMin']",
265 /* l10n: Minimal week day name */
267 /* l10n: Minimal week day name */
269 /* l10n: Minimal week day name */
271 /* l10n: Minimal week day name */
273 /* l10n: Minimal week day name */
275 /* l10n: Minimal week day name */
277 /* l10n: Minimal week day name */
279 /* l10n: Column header for week of the year in calendar */
280 PMA_printJsValue("$.datepicker.regional['']['weekHeader']", __('Wk'));
282 PMA_printJsValue("$.datepicker.regional['']['hourText']", __('Hour'));
283 PMA_printJsValue("$.datepicker.regional['']['minuteText']", __('Minute'));
284 PMA_printJsValue("$.datepicker.regional['']['secondText']", __('Second'));
286 $
.extend($
.datepicker
._defaults
, $
.datepicker
.regional
['']);
287 } /* if ($.datepicker) */