diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-02 22:49:43 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-02 22:49:43 +0000 |
commit | 18d46e4733939de06cdd6188736f4adda252fff9 (patch) | |
tree | cca6cd223d0e2fc9adeb544694aa86425bfa4832 | |
parent | aecd316184d76e69dab7d1f143fa955413a843b5 (diff) | |
download | brdo-18d46e4733939de06cdd6188736f4adda252fff9.tar.gz brdo-18d46e4733939de06cdd6188736f4adda252fff9.tar.bz2 |
#205334 follow up by myself: options were improperly counted in language list (minor)
-rw-r--r-- | includes/locale.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/locale.inc b/includes/locale.inc index c52a7299b..6676eb1f2 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -551,7 +551,9 @@ function locale_translate_seek_form() { '#description' => t('Leave blank to show all strings. The search is case sensitive.'), ); $form['search']['language'] = array( - '#type' => (count($languages) <= 5 ? 'radios' : 'select'), + // Change type of form widget if more the 5 options will + // be present (2 of the options are added below). + '#type' => (count($languages) <= 3 ? 'radios' : 'select'), '#title' => t('Language'), '#default_value' => (!empty($query['language']) ? $query['language'] : 'all'), '#options' => array_merge(array('all' => t('All languages'), 'en' => t('English (provided by Drupal)')), $languages), |