translate "More" tab
[phpmyadmin.git] / js / messages.php
blobd86f1b33a6cc99ad1680543dfde2d908bd8f8788
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!');
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?'), $GLOBALS['db']);
37 /* For indexes */
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');
51 /* Designer */
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');
69 /* navigation tabs */
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);
77 /* Calendar */
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']",
88 array(
89 __('January'),
90 __('February'),
91 __('March'),
92 __('April'),
93 __('May'),
94 __('June'),
95 __('July'),
96 __('August'),
97 __('September'),
98 __('October'),
99 __('November'),
100 __('December')));
101 PMA_printJsValue("$.datepicker.regional['']['monthNamesShort']",
102 array(
103 /* l10n: Short month name */
104 __('Jan'),
105 /* l10n: Short month name */
106 __('Feb'),
107 /* l10n: Short month name */
108 __('Mar'),
109 /* l10n: Short month name */
110 __('Apr'),
111 /* l10n: Short month name */
112 _pgettext('Short month name', 'May'),
113 /* l10n: Short month name */
114 __('Jun'),
115 /* l10n: Short month name */
116 __('Jul'),
117 /* l10n: Short month name */
118 __('Aug'),
119 /* l10n: Short month name */
120 __('Sep'),
121 /* l10n: Short month name */
122 __('Oct'),
123 /* l10n: Short month name */
124 __('Nov'),
125 /* l10n: Short month name */
126 __('Dec')));
127 PMA_printJsValue("$.datepicker.regional['']['dayNames']",
128 array(
129 __('Sunday'),
130 __('Monday'),
131 __('Tuesday'),
132 __('Wednesday'),
133 __('Thursday'),
134 __('Friday'),
135 __('Saturday')));
136 PMA_printJsValue("$.datepicker.regional['']['dayNamesShort']",
137 array(
138 /* l10n: Short week day name */
139 __('Sun'),
140 /* l10n: Short week day name */
141 __('Mon'),
142 /* l10n: Short week day name */
143 __('Tue'),
144 /* l10n: Short week day name */
145 __('Wed'),
146 /* l10n: Short week day name */
147 __('Thu'),
148 /* l10n: Short week day name */
149 __('Fri'),
150 /* l10n: Short week day name */
151 __('Sat')));
152 PMA_printJsValue("$.datepicker.regional['']['dayNamesMin']",
153 array(
154 /* l10n: Minimal week day name */
155 __('Su'),
156 /* l10n: Minimal week day name */
157 __('Mo'),
158 /* l10n: Minimal week day name */
159 __('Tu'),
160 /* l10n: Minimal week day name */
161 __('We'),
162 /* l10n: Minimal week day name */
163 __('Th'),
164 /* l10n: Minimal week day name */
165 __('Fr'),
166 /* l10n: Minimal week day name */
167 __('Sa')));
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) */