summaryrefslogtreecommitdiff
path: root/modules/locale
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-11-07 19:03:35 +0000
committerDries Buytaert <dries@buytaert.net>2003-11-07 19:03:35 +0000
commitef0fa006ed83a10326ff0affc5f83a55fe591836 (patch)
tree0c31cb244e9614e020af99482e2bc14e1d99ac50 /modules/locale
parent7b915b3c713d238cfda49900bcbfec231bdbb315 (diff)
downloadbrdo-ef0fa006ed83a10326ff0affc5f83a55fe591836.tar.gz
brdo-ef0fa006ed83a10326ff0affc5f83a55fe591836.tar.bz2
- Usability improvement: replaced many selection boxes by radio buttons.
Patch by Stefan.
Diffstat (limited to 'modules/locale')
-rw-r--r--modules/locale/locale.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index 2b0230be6..4b3812e82 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -82,7 +82,7 @@ function locale_link($type) {
function locale_user($type, &$edit, &$user) {
global $languages;
if ($type == "edit_form" && count($languages) > 1) {
- $output = form_select(t("Language"), "language", $user->language, $languages, t("Selecting a different language will change the language of the site."));
+ $output = form_radios(t("Language"), "language", $user->language, $languages, t("Selecting a different language will change the language of the site."));
}
return $output;
}
@@ -240,8 +240,8 @@ function locale_seek_form() {
global $languages;
$edit =& $_POST["edit"];
$form .= form_textfield(t("Strings to search for"), "string", $edit["string"], 30, 30, t("Leave blank to show all strings."));
- $form .= form_select(t("Language"), "language", ($edit["language"] ? $edit["language"] : key($languages)), array_merge(array("any" => t("Any language"), "all" => t("All languages")), $languages), t("In which language must the string be translated/untranslated (see status)?"));
- $form .= form_select(t("Status"), "status", $edit["status"], array(2 => t("Untranslated"), 1 => t("Translated"), 0 => t("All")));
+ $form .= form_radios(t("Language"), "language", ($edit["language"] ? $edit["language"] : key($languages)), array_merge(array("any" => t("Any language"), "all" => t("All languages")), $languages), t("In which language must the string be translated/untranslated (see status)?"));
+ $form .= form_radios(t("Status"), "status", $edit["status"], array(2 => t("Untranslated"), 1 => t("Translated"), 0 => t("All")));
$form .= form_submit(t("Search"));
$output .= form($form);