commit a4ec65e37f32d2be59cf508d0f5a8f212b5e1132
parent e0d4dd5e9ca28c68d2ee95fab81fda5a0dce4ea2
Author: dankert <devnull@localhost>
Date: Sat, 25 Dec 2004 21:50:13 +0100
Korrektur Sprach-Aenderung
Diffstat:
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/actionClasses/LanguageAction.class.php b/actionClasses/LanguageAction.class.php
@@ -20,7 +20,10 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// ---------------------------------------------------------------------------
// $Log$
-// Revision 1.6 2004-12-19 14:55:00 dankert
+// Revision 1.7 2004-12-25 20:50:13 dankert
+// Korrektur Sprach-Aenderung
+//
+// Revision 1.6 2004/12/19 14:55:00 dankert
// Korrektur der Laenderlisten
//
// Revision 1.5 2004/12/13 22:17:51 dankert
@@ -122,9 +125,9 @@ class LanguageAction extends Action
}
else
{
- $iso = $this->getRequestVar('isocode');
- $this->language->iso = $iso;
- $this->language->name = $countryList[$iso];
+ $iso = $this->getRequestVar('isocode');
+ $this->language->isoCode = strtolower( $iso );
+ $this->language->name = $countryList[$iso];
$this->language->save();
}
@@ -149,7 +152,7 @@ class LanguageAction extends Action
$l = new Language( $id );
$l->load();
- unset( $countryList[$l->isoCode] );
+ unset( $countryList[strtoupper($l->isoCode)] );
$list[$id] = array();
$list[$id]['name'] = $l->name;
diff --git a/themes/default/pages/html/language/edit.tpl.php b/themes/default/pages/html/language/edit.tpl.php
@@ -14,7 +14,7 @@
<tr>
<td width="50%" class="f1"><?php echo lang('GLOBAL_LANGUAGE') ?></a></td>
-<td width="50%" class="f2"><?php echo Html::selectBox('isocode',$isocodes,$act_isocode) ?></td>
+<td width="50%" class="f2"><?php echo Html::selectBox('isocode',$isocodes,strtoupper($act_isocode)) ?></td>
</tr>
<?php if ( $delete )
@@ -36,8 +36,6 @@
</form>
</center>
-<script name="JavaScript" type="text/javascript"><!--
-document.forms[0].name.focus();
-//--></script>
+<?php Html::focusField('name') ?>
<?php include( $tpl_dir.'footer.tpl.php') ?>
\ No newline at end of file