From a3b9b7e92d5c9b47793c7b0e619c45352472890b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 18 Jul 2001 08:09:46 +0000 Subject: - node.module: + added missing t()-functions (reported by Nick). - locale.module: + renamed '$lang' to '$language' (reported by Nick). --- cron.php | 2 +- modules/locale.module | 24 ++++++++++++------------ modules/locale/locale.module | 24 ++++++++++++------------ modules/node.module | 4 ++-- modules/node/node.module | 4 ++-- 5 files changed, 29 insertions(+), 29 deletions(-) diff --git a/cron.php b/cron.php index acfb9507d..a29170219 100644 --- a/cron.php +++ b/cron.php @@ -6,7 +6,7 @@ include_once "includes/common.inc"; ** If not in 'safe mode', increase the maximum execution time: */ -if (!get_cfg_var("safe_mode")) { +if (!get_cfg_var("safe_mode")) { set_time_limit(180); } diff --git a/modules/locale.module b/modules/locale.module index 43a3abb65..f0a053bf6 100644 --- a/modules/locale.module +++ b/modules/locale.module @@ -89,10 +89,10 @@ function locale_links($translation) { foreach ($languages as $key=>$value) { if ($translation) { - $output .= "translated '$key' strings | "; + $output .= "translated '$key' strings | "; } else { - $output .= "untranslated '$key' strings | "; + $output .= "untranslated '$key' strings | "; } } @@ -112,21 +112,21 @@ function locale_overview() { return $output; } -function locale_translated($lang) { - $result = db_query("SELECT * FROM locales WHERE $lang != '' ORDER BY string"); +function locale_translated($language) { + $result = db_query("SELECT * FROM locales WHERE $language != '' ORDER BY string"); $output .= "\n"; $output .= " \n"; while ($locale = db_fetch_object($result)) { - $output .= " "; + $output .= " "; } $output .= "
original stringtranslated stringoperations
". check_output($locale->string) ."". check_output($locale->$lang) ."id\"> edit localeid\">delete locale
". check_output($locale->string) ."". check_output($locale->$language) ."id\"> edit localeid\">delete locale
\n"; return $output; } -function locale_untranslated($lang) { - $result = db_query("SELECT * FROM locales WHERE $lang = '' ORDER BY string"); +function locale_untranslated($language) { + $result = db_query("SELECT * FROM locales WHERE $language = '' ORDER BY string"); $output .= "\n"; $output .= " \n"; @@ -139,7 +139,7 @@ function locale_untranslated($lang) { } function locale_admin() { - global $id, $edit, $op, $lang; + global $id, $edit, $op, $language; if (!variable_get("locale", 0)) { print status("locale disabled."); @@ -160,12 +160,12 @@ function locale_admin() { break; case "Save translations": print locale_save(check_input($id), $edit); - break; + break; case "translated": - print locale_translated($lang); - break; + print locale_translated($language); + break; case "untranslated": - print locale_untranslated($lang); + print locale_untranslated($language); break; default: print locale_overview(); diff --git a/modules/locale/locale.module b/modules/locale/locale.module index 43a3abb65..f0a053bf6 100644 --- a/modules/locale/locale.module +++ b/modules/locale/locale.module @@ -89,10 +89,10 @@ function locale_links($translation) { foreach ($languages as $key=>$value) { if ($translation) { - $output .= "translated '$key' strings | "; + $output .= "translated '$key' strings | "; } else { - $output .= "untranslated '$key' strings | "; + $output .= "untranslated '$key' strings | "; } } @@ -112,21 +112,21 @@ function locale_overview() { return $output; } -function locale_translated($lang) { - $result = db_query("SELECT * FROM locales WHERE $lang != '' ORDER BY string"); +function locale_translated($language) { + $result = db_query("SELECT * FROM locales WHERE $language != '' ORDER BY string"); $output .= "
stringoperations
\n"; $output .= " \n"; while ($locale = db_fetch_object($result)) { - $output .= " "; + $output .= " "; } $output .= "
original stringtranslated stringoperations
". check_output($locale->string) ."". check_output($locale->$lang) ."id\"> edit localeid\">delete locale
". check_output($locale->string) ."". check_output($locale->$language) ."id\"> edit localeid\">delete locale
\n"; return $output; } -function locale_untranslated($lang) { - $result = db_query("SELECT * FROM locales WHERE $lang = '' ORDER BY string"); +function locale_untranslated($language) { + $result = db_query("SELECT * FROM locales WHERE $language = '' ORDER BY string"); $output .= "\n"; $output .= " \n"; @@ -139,7 +139,7 @@ function locale_untranslated($lang) { } function locale_admin() { - global $id, $edit, $op, $lang; + global $id, $edit, $op, $language; if (!variable_get("locale", 0)) { print status("locale disabled."); @@ -160,12 +160,12 @@ function locale_admin() { break; case "Save translations": print locale_save(check_input($id), $edit); - break; + break; case "translated": - print locale_translated($lang); - break; + print locale_translated($language); + break; case "untranslated": - print locale_untranslated($lang); + print locale_untranslated($language); break; default: print locale_overview(); diff --git a/modules/node.module b/modules/node.module index ba12cc7c5..c1e2283d5 100644 --- a/modules/node.module +++ b/modules/node.module @@ -349,10 +349,10 @@ function node_admin() { case "view": print node_module_view(node_get_array(array("nid" => $id)), $type); break; - case "Preview": + case t("Preview"): print node_edit_content($edit, $type); break; - case "Submit": + case t("Submit"): print status(node_save_content($edit, $type)); // fall through: default: diff --git a/modules/node/node.module b/modules/node/node.module index ba12cc7c5..c1e2283d5 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -349,10 +349,10 @@ function node_admin() { case "view": print node_module_view(node_get_array(array("nid" => $id)), $type); break; - case "Preview": + case t("Preview"): print node_edit_content($edit, $type); break; - case "Submit": + case t("Submit"): print status(node_save_content($edit, $type)); // fall through: default: -- cgit v1.2.3
stringoperations