Translation update done using Pootle.
[phpmyadmin/dkf.git] / js / messages.php
blob8806b0707ef0de40764395d9c6dc29263f920e0b
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 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'] = __('"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['strDroppingEvent'] = __('Dropping Event');
33 $js_messages['strDroppingProcedure'] = __('Dropping Procedure');
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']));
43 /* For indexes */
44 $js_messages['strFormEmpty'] = __('Missing value in the form!');
45 $js_messages['strNotNumber'] = __('This is not a number!');
47 /* For server_privileges.js */
48 $js_messages['strHostEmpty'] = __('The host name is empty!');
49 $js_messages['strUserEmpty'] = __('The user name is empty!');
50 $js_messages['strPasswordEmpty'] = __('The password is empty!');
51 $js_messages['strPasswordNotSame'] = __('The passwords aren\'t the same!');
52 $js_messages['strAddNewUser'] = __('Add a New User');
53 $js_messages['strCreateUser'] = __('Create User');
54 $js_messages['strReloadingPrivileges'] = __('Reloading Privileges');
55 $js_messages['strRemovingSelectedUsers'] = __('Removing Selected Users');
56 $js_messages['strClose'] = __('Close');
58 /* For inline query editing */
59 $js_messages['strGo'] = __('Go');
60 $js_messages['strCancel'] = __('Cancel');
62 /* For Ajax Notifications */
63 $js_messages['strLoading'] = __('Loading');
64 $js_messages['strProcessingRequest'] = __('Processing Request');
65 $js_messages['strErrorProcessingRequest'] = __('Error in Processing Request');
66 $js_messages['strDroppingColumn'] = __('Dropping Column');
67 $js_messages['strAddingPrimaryKey'] = __('Adding Primary Key');
68 $js_messages['strOK'] = __('OK');
70 /* For db_operations.js */
71 $js_messages['strRenamingDatabases'] = __('Renaming Databases');
72 $js_messages['strReloadDatabase'] = __('Reload Database');
73 $js_messages['strCopyingDatabase'] = __('Copying Database');
74 $js_messages['strChangingCharset'] = __('Changing Charset');
75 $js_messages['strTableMustHaveAtleastOneColumn'] = __('Table must have atleast 1 column');
76 $js_messages['strCreateTable'] = __('Create Table');
77 $js_messages['strYes'] = __('Yes');
78 $js_messages['strNo'] = __('No');
80 /* For db_search.js */
81 $js_messages['strSearching'] = __('Searching');
83 /* For sql.js */
84 $js_messages['strToggleQueryBox'] = __('Toggle Query Box Visibility');
85 $js_messages['strInlineEdit'] = __('Inline Edit');
87 /* For tbl_change.js */
88 $js_messages['strIgnore'] = __('Ignore');
90 /* Designer */
91 $js_messages['strModifications'] = __('Modifications have been saved');
92 $js_messages['strRelationDeleted'] = __('Relation deleted');
93 $js_messages['strForeignKeyRelationAdded'] = __('FOREIGN KEY relation added');
94 $js_messages['strInternalRelationAdded'] = __('Internal relation added');
95 $js_messages['strErrorRelationAdded'] = __('Error: Relation not added.');
96 $js_messages['strErrorRelationExists'] = __('Error: relation already exists.');
97 $js_messages['strErrorSaveTable'] = __('Error saving coordinates for Designer.');
98 $js_messages['strGeneralRelationFeat:strDisabled'] = __('General relation features') . ': ' . __('Disabled');
99 $js_messages['strSelectReferencedKey'] = __('Select referenced key');
100 $js_messages['strSelectForeignKey'] = __('Select Foreign Key');
101 $js_messages['strPleaseSelectPrimaryOrUniqueKey'] = __('Please select the primary key or a unique key');
102 $js_messages['strChangeDisplay'] = __('Choose column to display');
104 /* password generation */
105 $js_messages['strGeneratePassword'] = __('Generate password');
106 $js_messages['strGenerate'] = __('Generate');
107 $js_messages['strChangePassword'] = __('Change Password');
109 /* navigation tabs */
110 $js_messages['strMore'] = __('More');
112 echo "var PMA_messages = new Array();\n";
113 foreach ($js_messages as $name => $js_message) {
114 PMA_printJsValue("PMA_messages['" . $name . "']", $js_message);
117 /* Calendar */
118 echo "if ($.datepicker) {\n";
119 /* l10n: Display text for calendar close link */
120 PMA_printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
121 /* l10n: Display text for previous month link in calendar */
122 PMA_printJsValue("$.datepicker.regional['']['prevText']", __('Prev'));
123 /* l10n: Display text for next month link in calendar */
124 PMA_printJsValue("$.datepicker.regional['']['nextText']", __('Next'));
125 /* l10n: Display text for current month link in calendar */
126 PMA_printJsValue("$.datepicker.regional['']['currentText']", __('Today'));
127 PMA_printJsValue("$.datepicker.regional['']['monthNames']",
128 array(
129 __('January'),
130 __('February'),
131 __('March'),
132 __('April'),
133 __('May'),
134 __('June'),
135 __('July'),
136 __('August'),
137 __('September'),
138 __('October'),
139 __('November'),
140 __('December')));
141 PMA_printJsValue("$.datepicker.regional['']['monthNamesShort']",
142 array(
143 /* l10n: Short month name */
144 __('Jan'),
145 /* l10n: Short month name */
146 __('Feb'),
147 /* l10n: Short month name */
148 __('Mar'),
149 /* l10n: Short month name */
150 __('Apr'),
151 /* l10n: Short month name */
152 _pgettext('Short month name', 'May'),
153 /* l10n: Short month name */
154 __('Jun'),
155 /* l10n: Short month name */
156 __('Jul'),
157 /* l10n: Short month name */
158 __('Aug'),
159 /* l10n: Short month name */
160 __('Sep'),
161 /* l10n: Short month name */
162 __('Oct'),
163 /* l10n: Short month name */
164 __('Nov'),
165 /* l10n: Short month name */
166 __('Dec')));
167 PMA_printJsValue("$.datepicker.regional['']['dayNames']",
168 array(
169 __('Sunday'),
170 __('Monday'),
171 __('Tuesday'),
172 __('Wednesday'),
173 __('Thursday'),
174 __('Friday'),
175 __('Saturday')));
176 PMA_printJsValue("$.datepicker.regional['']['dayNamesShort']",
177 array(
178 /* l10n: Short week day name */
179 __('Sun'),
180 /* l10n: Short week day name */
181 __('Mon'),
182 /* l10n: Short week day name */
183 __('Tue'),
184 /* l10n: Short week day name */
185 __('Wed'),
186 /* l10n: Short week day name */
187 __('Thu'),
188 /* l10n: Short week day name */
189 __('Fri'),
190 /* l10n: Short week day name */
191 __('Sat')));
192 PMA_printJsValue("$.datepicker.regional['']['dayNamesMin']",
193 array(
194 /* l10n: Minimal week day name */
195 __('Su'),
196 /* l10n: Minimal week day name */
197 __('Mo'),
198 /* l10n: Minimal week day name */
199 __('Tu'),
200 /* l10n: Minimal week day name */
201 __('We'),
202 /* l10n: Minimal week day name */
203 __('Th'),
204 /* l10n: Minimal week day name */
205 __('Fr'),
206 /* l10n: Minimal week day name */
207 __('Sa')));
208 /* l10n: Column header for week of the year in calendar */
209 PMA_printJsValue("$.datepicker.regional['']['weekHeader']", __('Wk'));
211 PMA_printJsValue("$.datepicker.regional['']['hourText']", __('Hour'));
212 PMA_printJsValue("$.datepicker.regional['']['minuteText']", __('Minute'));
213 PMA_printJsValue("$.datepicker.regional['']['secondText']", __('Second'));
215 $.extend($.datepicker._defaults, $.datepicker.regional['']);
216 } /* if ($.datepicker) */