Permalink
Browse files

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
  • Loading branch information...
1 parent a0d1c7d commit 5c965330c3ec64f40ceb875c593ae55eb3e987d6 @chillu chillu committed May 25, 2010
Showing with 22 additions and 5 deletions.
  1. +1 −0 core/i18n.php
  2. +21 −5 dev/install/config-form.html
View
@@ -694,6 +694,7 @@ public static function get_js_i18n() {
'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 @@ <h4 class="sectionHeading">SilverStripe Administration Account</h4>
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">

0 comments on commit 5c96533

Please sign in to comment.