mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT you can now choose your site locale at install time (from r100769)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105645 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a0d1c7d2b1
commit
5c965330c3
@ -694,6 +694,7 @@ class i18n extends Object {
|
||||
'cy_GB' => array('Welsh', 'Welsh/Cymraeg'),
|
||||
'da_DK' => array('Danish', 'dansk'),
|
||||
'nl_NL' => array('Dutch', 'Nederlands'),
|
||||
'en_NZ' => array('English (NZ)', 'English (NZ)'),
|
||||
'en_US' => array('English (US)', 'English (US)'),
|
||||
'en_GB' => array('English (UK)', 'English (UK)'),
|
||||
'eo_XX' => array('Esperanto', 'Esperanto'),
|
||||
|
@ -266,15 +266,31 @@
|
||||
rather log-in with a username instead of an email address, enter that instead.
|
||||
</p>
|
||||
|
||||
<h4 class="sectionHeading">Development Servers</h4>
|
||||
<h4 class="sectionHeading">Server configuration</h4>
|
||||
<div class="section">
|
||||
<label for="devsites">Development servers:</label>
|
||||
<span class="middleColumn">
|
||||
<textarea name="devsites" id="devsites" rows="5" cols="10">
|
||||
<div class="field">
|
||||
<label for="devsites">Development servers:</label>
|
||||
<span class="middleColumn">
|
||||
<textarea name="devsites" id="devsites" rows="5" cols="10">
|
||||
<?php if(@$_POST['devsites']) echo $_POST['devsites'];
|
||||
else echo 'localhost
|
||||
127.0.0.1'; ?></textarea>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="locale">Locale:</label>
|
||||
<span class="middleColumn">
|
||||
<select name="locale" id="locale">
|
||||
<?php
|
||||
$selectedLocale = isset($_POST['locale']) ? $_POST['locale'] : $defaultLocale;
|
||||
foreach($locales as $code => $details) {
|
||||
$selected = $code == $selectedLocale ? ' selected="true"' : '';
|
||||
echo "<option$selected value=\"$code\">{$details[0]} - {$details[1]}</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p id="devHelp" class="helpText">
|
||||
|
Loading…
x
Reference in New Issue
Block a user