diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-12-31 12:34:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-12-31 12:34:07 +0000 |
commit | de95001c9291d6f2e66374975b793f84dc155aca (patch) | |
tree | dd57be3f08caf0e32a828bb4961396c79029c0ba /modules/locale.module | |
parent | 8cb66b212ef4df3f24c22f2ab143f2141788a74f (diff) | |
download | brdo-de95001c9291d6f2e66374975b793f84dc155aca.tar.gz brdo-de95001c9291d6f2e66374975b793f84dc155aca.tar.bz2 |
- Tidied up the use of check_output(). Might make rendering pages a bit
snappier (performance improvement).
Diffstat (limited to 'modules/locale.module')
-rw-r--r-- | modules/locale.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/locale.module b/modules/locale.module index 0699879ac..48a480aff 100644 --- a/modules/locale.module +++ b/modules/locale.module @@ -91,7 +91,7 @@ function locale_edit($lid) { $result = db_query("SELECT * FROM locales WHERE lid = '$lid'"); if ($translation = db_fetch_object($result)) { - $form .= form_item(t("Original text"), "<pre>". wordwrap(check_output($translation->string)) ."</pre>"); + $form .= form_item(t("Original text"), "<pre>". wordwrap($translation->string) ."</pre>"); foreach ($languages as $code=>$language) $form .= (strlen($translation->string) > 30) ? form_textarea($language, $code, $translation->$code, 50, 10) : form_textfield($language, $code, $translation->$code, 50, 128); $form .= form_submit(t("Save translations")); @@ -102,8 +102,8 @@ function locale_edit($lid) { function locale_languages($translation) { global $languages; - foreach ($languages as $key=>$value) { - $output .= ($translation->$key) ? "<a href=\"#\" title=\"". check_output($translation->$key) ."\">$key</a> " : "<strike>$key</strike> "; + foreach ($languages as $key => $value) { + $output .= ($translation->$key) ? "<a href=\"#\" title=\"". $translation->$key ."\">$key</a> " : "<strike>$key</strike> "; } return $output; @@ -262,7 +262,7 @@ function locale($string) { } if ($locale_t[$string] != "") { - $string = check_output($locale_t[$string]); + $string = $locale_t[$string]; } else { $result = db_query("SELECT lid, $locale FROM locales WHERE string = '%s'", $string); |