Project

General

Profile

« Previous | Next » 

Revision 629

Added by doc almost 17 years ago

added possibility to select the default backend language during installation process

View differences:

index.php
167 167
		</table>
168 168
		<table cellpadding="3" cellspacing="0" width="100%" align="center">
169 169
		<tr>
170
			<td colspan="2"><h1>Step 3</h1>Please check your path settings, and select your default timezone...</td>
170
			<td colspan="2"><h1>Step 3</h1>Please check your path settings, and select a default timezone and a default backend language...</td>
171 171
		</tr>
172 172
		<tr>
173 173
			<td width="125" style="color: #666666;">
......
230 230
				</select>
231 231
			</td>
232 232
		</tr>
233
		<tr>
234
			<td style="color: #666666;">
235
				Default Language:
236
			</td>
237
			<td>
238
				<select tabindex="3" name="default_language" style="width: 100%;">
239
					<?php
240
					$DEFAULT_LANGUAGE = array(
241
						'CA'=>'Catalan', 'DA'=>'Danish', 'DE'=>'Deutsch', 'EN'=>'English',
242
						'ES'=>'Spanish', 'ET'=>'Eesti', 'FI'=>'Suomi', 'FR'=>'Fran&ccedil;ais',
243
						'HR'=>'Hrvatski', 'HU'=>'Magyar','IT'=>'Italiano', 'LV'=>'Latviesu',
244
						'NL'=>'Nederlands','PT'=>'Portuguese (Brazil)','SE'=>'Svenska', 'TR'=>'Turkish'
245
					);
246
					foreach($DEFAULT_LANGUAGE as $lang_id => $lang_title) {
247
						?>
248
							<option value="<?php echo $lang_id; ?>"<?php if(isset($_SESSION['default_language']) AND $_SESSION['default_language'] == $lang_id) { echo ' selected'; } elseif(!isset($_SESSION['default_language']) AND $lang_id == 'EN') { echo 'selected'; } ?>><?php echo $lang_title; ?></option>
249
						<?php
250
					}
251
					?>
252
				</select>
253
			</td>
254
		</tr>
233 255
		</table>
234 256
		<table cellpadding="5" cellspacing="0" width="100%" align="center">
235 257
		<tr>

Also available in: Unified diff