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
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100769 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
67c9412225
commit
27f20c5948
@ -694,6 +694,7 @@ class i18n extends Object {
|
|||||||
'cy_GB' => array('Welsh', 'Welsh/Cymraeg'),
|
'cy_GB' => array('Welsh', 'Welsh/Cymraeg'),
|
||||||
'da_DK' => array('Danish', 'dansk'),
|
'da_DK' => array('Danish', 'dansk'),
|
||||||
'nl_NL' => array('Dutch', 'Nederlands'),
|
'nl_NL' => array('Dutch', 'Nederlands'),
|
||||||
|
'en_NZ' => array('English (NZ)', 'English (NZ)'),
|
||||||
'en_US' => array('English (US)', 'English (US)'),
|
'en_US' => array('English (US)', 'English (US)'),
|
||||||
'en_GB' => array('English (UK)', 'English (UK)'),
|
'en_GB' => array('English (UK)', 'English (UK)'),
|
||||||
'eo_XX' => array('Esperanto', 'Esperanto'),
|
'eo_XX' => array('Esperanto', 'Esperanto'),
|
||||||
|
@ -266,15 +266,31 @@
|
|||||||
rather log-in with a username instead of an email address, enter that instead.
|
rather log-in with a username instead of an email address, enter that instead.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h4 class="sectionHeading">Development Servers</h4>
|
<h4 class="sectionHeading">Server configuration</h4>
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<label for="devsites">Development servers:</label>
|
<div class="field">
|
||||||
<span class="middleColumn">
|
<label for="devsites">Development servers:</label>
|
||||||
<textarea name="devsites" id="devsites" rows="5" cols="10">
|
<span class="middleColumn">
|
||||||
|
<textarea name="devsites" id="devsites" rows="5" cols="10">
|
||||||
<?php if(@$_POST['devsites']) echo $_POST['devsites'];
|
<?php if(@$_POST['devsites']) echo $_POST['devsites'];
|
||||||
else echo 'localhost
|
else echo 'localhost
|
||||||
127.0.0.1'; ?></textarea>
|
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>
|
</div>
|
||||||
|
|
||||||
<p id="devHelp" class="helpText">
|
<p id="devHelp" class="helpText">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user