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'] = __('"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!');
33 /* For blobstreaming */
34 $js_messages['strBLOBRepositoryDisableStrongWarning'] = __('You are about to DISABLE a BLOB Repository!');
35 $js_messages['strBLOBRepositoryDisableAreYouSure'] = sprintf(__('Are you sure you want to disable all BLOB references for database %s?'), PMA_escapeJsString($GLOBALS['db']));
38 $js_messages['strFormEmpty'] = __('Missing value in the form!');
39 $js_messages['strNotNumber'] = __('This is not a number!');
41 /* For server_privileges.js */
42 $js_messages['strHostEmpty'] = __('The host name is empty!');
43 $js_messages['strUserEmpty'] = __('The user name is empty!');
44 $js_messages['strPasswordEmpty'] = __('The password is empty!');
45 $js_messages['strPasswordNotSame'] = __('The passwords aren\'t the same!');
47 /* For inline query editing */
48 $js_messages['strGo'] = __('Go');
49 $js_messages['strCancel'] = __('Cancel');
52 $js_messages['strModifications'] = __('Modifications have been saved');
53 $js_messages['strRelationDeleted'] = __('Relation deleted');
54 $js_messages['strForeignKeyRelationAdded'] = __('FOREIGN KEY relation added');
55 $js_messages['strInternalRelationAdded'] = __('Internal relation added');
56 $js_messages['strErrorRelationAdded'] = __('Error: Relation not added.');
57 $js_messages['strErrorRelationExists'] = __('Error: relation already exists.');
58 $js_messages['strErrorSaveTable'] = __('Error saving coordinates for Designer.');
59 $js_messages['strGeneralRelationFeat:strDisabled'] = __('General relation features') . ': ' . __('Disabled');
60 $js_messages['strSelectReferencedKey'] = __('Select referenced key');
61 $js_messages['strSelectForeignKey'] = __('Select Foreign Key');
62 $js_messages['strPleaseSelectPrimaryOrUniqueKey'] = __('Please select the primary key or a unique key');
63 $js_messages['strChangeDisplay'] = __('Choose column to display');
65 /* password generation */
66 $js_messages['strGeneratePassword'] = __('Generate password');
67 $js_messages['strGenerate'] = __('Generate');
70 $js_messages['strMore'] = __('More');
72 echo "var PMA_messages = new Array();\n";
73 foreach ($js_messages as $name => $js_message) {
74 PMA_printJsValue("PMA_messages['" . $name . "']", $js_message);
78 echo "if ($.datepicker) {\n";
79 /* l10n: Display text for calendar close link */
80 PMA_printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
81 /* l10n: Display text for previous month link in calendar */
82 PMA_printJsValue("$.datepicker.regional['']['prevText']", __('Prev'));
83 /* l10n: Display text for next month link in calendar */
84 PMA_printJsValue("$.datepicker.regional['']['nextText']", __('Next'));
85 /* l10n: Display text for current month link in calendar */
86 PMA_printJsValue("$.datepicker.regional['']['currentText']", __('Today'));
87 PMA_printJsValue("$.datepicker.regional['']['monthNames']",
101 PMA_printJsValue("$.datepicker.regional['']['monthNamesShort']",
103 /* l10n: Short month name */
105 /* l10n: Short month name */
107 /* l10n: Short month name */
109 /* l10n: Short month name */
111 /* l10n: Short month name */
112 _pgettext('Short month name', 'May'),
113 /* l10n: Short month name */
115 /* l10n: Short month name */
117 /* l10n: Short month name */
119 /* l10n: Short month name */
121 /* l10n: Short month name */
123 /* l10n: Short month name */
125 /* l10n: Short month name */
127 PMA_printJsValue("$.datepicker.regional['']['dayNames']",
136 PMA_printJsValue("$.datepicker.regional['']['dayNamesShort']",
138 /* l10n: Short week day name */
140 /* l10n: Short week day name */
142 /* l10n: Short week day name */
144 /* l10n: Short week day name */
146 /* l10n: Short week day name */
148 /* l10n: Short week day name */
150 /* l10n: Short week day name */
152 PMA_printJsValue("$.datepicker.regional['']['dayNamesMin']",
154 /* l10n: Minimal week day name */
156 /* l10n: Minimal week day name */
158 /* l10n: Minimal week day name */
160 /* l10n: Minimal week day name */
162 /* l10n: Minimal week day name */
164 /* l10n: Minimal week day name */
166 /* l10n: Minimal week day name */
168 /* l10n: Column header for week of the year in calendar */
169 PMA_printJsValue("$.datepicker.regional['']['weekHeader']", __('Wk'));
171 PMA_printJsValue("$.datepicker.regional['']['hourText']", __('Hour'));
172 PMA_printJsValue("$.datepicker.regional['']['minuteText']", __('Minute'));
173 PMA_printJsValue("$.datepicker.regional['']['secondText']", __('Second'));
175 $
.extend($
.datepicker
._defaults
, $
.datepicker
.regional
['']);
176 } /* if ($.datepicker) */