diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-06-27 18:33:33 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-06-27 18:33:33 +0000 |
commit | 58aee8cdad4baef160f7e0cf6dc5e245a1acc080 (patch) | |
tree | 329e6127e5033a4dcb9ebc60031a009c6b53cc90 /includes | |
parent | d190e16c9ef0214293ea32306bfb49d3d1233654 (diff) | |
download | brdo-58aee8cdad4baef160f7e0cf6dc5e245a1acc080.tar.gz brdo-58aee8cdad4baef160f7e0cf6dc5e245a1acc080.tar.bz2 |
- Patch #25603 by Stefan: made the sizes of forms consistent.
TODO: document the defaults in the PHPdoc comments.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/locale.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/locale.inc b/includes/locale.inc index 52b153a4d..fbc9ca16f 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -75,8 +75,8 @@ function _locale_admin_manage_add_screen() { $edit = &$_POST['edit']; $output .= '<h2>'. t('Custom language') .'</h2>'; - $form = form_textfield(t('Language code'), 'langcode', $edit['langcode'], 70, 12, t("Commonly this is an <a href=\"%iso-codes\">ISO 639 language code</a> with an optional country code for regional variants. Examples include 'en', 'en-US' and 'zh-cn'.", array('%iso-codes' => 'http://www.w3.org/WAI/ER/IG/ert/iso639.htm'))); - $form .= form_textfield(t('Language name in English'), 'langname', $edit['langname'], 70, 64, t('Name of the language. Will be available for translation in all languages.')); + $form = form_textfield(t('Language code'), 'langcode', $edit['langcode'], 60, 12, t("Commonly this is an <a href=\"%iso-codes\">ISO 639 language code</a> with an optional country code for regional variants. Examples include 'en', 'en-US' and 'zh-cn'.", array('%iso-codes' => 'http://www.w3.org/WAI/ER/IG/ert/iso639.htm'))); + $form .= form_textfield(t('Language name in English'), 'langname', $edit['langname'], 60, 64, t('Name of the language. Will be available for translation in all languages.')); $form .= form_submit(t('Add language')); $output .= form($form); @@ -945,11 +945,11 @@ function _locale_string_edit($lid) { $form = ''; while ($translation = db_fetch_object($result)) { $orig = $translation->source; - $form .= (strlen($orig) > 40) ? form_textarea($languages['name'][$translation->locale], $translation->locale, $translation->translation, 70, 15) : form_textfield($languages['name'][$translation->locale], $translation->locale, $translation->translation, 50, 128); + $form .= (strlen($orig) > 40) ? form_textarea($languages['name'][$translation->locale], $translation->locale, $translation->translation, 60, 15) : form_textfield($languages['name'][$translation->locale], $translation->locale, $translation->translation, 60, 128); unset($languages['name'][$translation->locale]); } foreach ($languages['name'] as $key => $lang) { - $form .= (strlen($orig) > 40) ? form_textarea($lang, $key, '', 70, 15) : form_textfield($lang, $key, '', 50, 128); + $form .= (strlen($orig) > 40) ? form_textarea($lang, $key, '', 60, 15) : form_textfield($lang, $key, '', 60, 128); } $form = form_item(t('Original text'), wordwrap(check_plain($orig, 0))) . $form; |