From 58aee8cdad4baef160f7e0cf6dc5e245a1acc080 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 27 Jun 2005 18:33:33 +0000 Subject: - Patch #25603 by Stefan: made the sizes of forms consistent. TODO: document the defaults in the PHPdoc comments. --- includes/locale.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'includes') 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 .= '

'. t('Custom language') .'

'; - $form = form_textfield(t('Language code'), 'langcode', $edit['langcode'], 70, 12, t("Commonly this is an ISO 639 language code 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 ISO 639 language code 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; -- cgit v1.2.3