From de5b9a168daeef12b6f7bcf6e43b767a2d7f35d8 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Mon, 22 Apr 2002 09:05:36 +0000 Subject: - bug fixes: * fixed mails not being parsed properly. * tracker now shows user name when you view your own recent comments. * link to submission queue now points to the right place. * fixed jabber module. * theme is now activated when changed. - applied Gerhards coding style patch. --- modules/locale.module | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'modules/locale.module') diff --git a/modules/locale.module b/modules/locale.module index 0b79a22f6..9813f1152 100644 --- a/modules/locale.module +++ b/modules/locale.module @@ -95,7 +95,7 @@ function locale_languages($translation) { global $languages; foreach ($languages as $key=>$value) { - $output .= ($translation->$key) ? "$key)."\">$key " : "$key "; + $output .= ($translation->$key) ? "$key) ."\">$key " : "$key "; } return $output; @@ -106,10 +106,10 @@ function locale_links($translation) { foreach ($languages as $key=>$value) { if ($translation) { - $output .= la(t("translated '$key' strings"), array("mod" => "locale", "op" => "translated", "language" => $key))." | "; + $output .= la(t("translated '$key' strings"), array("mod" => "locale", "op" => "translated", "language" => $key)) ." | "; } else { - $output .= la(t("untranslated '$key' strings"), array("mod" => "locale", "op" => "untranslated", "language" => $key))." | "; + $output .= la(t("untranslated '$key' strings"), array("mod" => "locale", "op" => "untranslated", "language" => $key)) ." | "; } } @@ -156,18 +156,18 @@ function locale_seek() { $string_query[] = "string LIKE '%". check_query($edit["string"]) ."%'"; if ($edit["status"] != 2) { if (strlen($edit["language"]) == 2) { - $string_query[] = check_query($edit["language"]). " LIKE '%". check_query($edit["string"]) ."%'"; + $string_query[] = check_query($edit["language"]) ." LIKE '%". check_query($edit["string"]) ."%'"; } else { foreach ($languages as $key=>$value) { - $string_query[] = check_query($key). " LIKE '%". check_query($edit["string"]) ."%'"; + $string_query[] = check_query($key) ." LIKE '%". check_query($edit["string"]) ."%'"; } } } - $query[] = "(" . implode(" || ", $string_query) . ")"; + $query[] = "(". implode(" || ", $string_query) .")"; } - $result = db_query("SELECT * FROM locales". (count($query) ? " WHERE ". implode(" && ", $query) : ""). " ORDER BY string"); + $result = db_query("SELECT * FROM locales". (count($query) ? " WHERE ". implode(" && ", $query) : "") ." ORDER BY string"); $output .= "\n"; $output .= " "; @@ -191,7 +191,7 @@ function locale_seek() { $output .= ""; } - $output .= ""; + $output .= ""; } $output .= "
string". check_output(locale_languages($locale)) ."".la(t("edit locale"), array("mod" => "locale", "op" => "edit", "id" => $locale->lid))."".la(t("delete locale"), array("mod" => "locale", "op" => "delete", "id" => $locale->lid))."
". la(t("edit locale"), array("mod" => "locale", "op" => "edit", "id" => $locale->lid)) ."". la(t("delete locale"), array("mod" => "locale", "op" => "delete", "id" => $locale->lid)) ."
\n"; } @@ -216,7 +216,7 @@ function locale_admin() { print status("locale disabled."); } else if (user_access("administer locales")) { - print "". locale_links(1) . locale_links(0) .la(t("search"), array("mod" => "locale", "op" => "Search"))." | ".la(t("overview"), array("mod" => "locale", "op" => "overview"))." | ".la(t("help"), array("mod" => "locale", "op" => "help"))."
\n"; + print "". locale_links(1) . locale_links(0) . la(t("search"), array("mod" => "locale", "op" => "Search")) ." | ". la(t("overview"), array("mod" => "locale", "op" => "overview")) ." | ". la(t("help"), array("mod" => "locale", "op" => "help")) ."
\n"; switch ($op) { case "delete": -- cgit v1.2.3