summaryrefslogtreecommitdiff
path: root/modules/locale.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-10-07 18:16:41 +0000
committerDries Buytaert <dries@buytaert.net>2003-10-07 18:16:41 +0000
commit22c889e7c05b1c2dd98ad5e6b3547234a3f6596f (patch)
tree8b63c79053762af3284384a7e8c54a2d3e9b0d45 /modules/locale.module
parentfbc674f14301fd92f97f2506a72c22b7d51c1c43 (diff)
downloadbrdo-22c889e7c05b1c2dd98ad5e6b3547234a3f6596f.tar.gz
brdo-22c889e7c05b1c2dd98ad5e6b3547234a3f6596f.tar.bz2
- Help system improvements: eliminated the _system hook. Patch by Michael.
- Bloggerapi module fixes. Patch by Kjartan. - Coding style fixes. Patch by Michael.
Diffstat (limited to 'modules/locale.module')
-rw-r--r--modules/locale.module14
1 files changed, 3 insertions, 11 deletions
diff --git a/modules/locale.module b/modules/locale.module
index b57c321b5..faecd98b5 100644
--- a/modules/locale.module
+++ b/modules/locale.module
@@ -4,7 +4,7 @@
function locale_help($section = "admin/locale/help") {
$output = "";
- switch($section) {
+ switch ($section) {
case 'admin/help':
case 'admin/locale/help':
$output .= "<p>Most programs are written and documented in English, and use English to interact with users. This is also true for a great deal of web sites. However, most people are less comfortable with English than with their native language, and would prefer to use their mother tongue as much as possible. Many people love see their web site showing a lot less English, and far more of their own language.</p>";
@@ -33,9 +33,9 @@ function locale_help($section = "admin/locale/help") {
mysql> ALTER TABLE {locales} ADD nl TEXT DEFAULT '' NOT NULL;
mysql> ALTER TABLE {locales} ADD fr TEXT DEFAULT '' NOT NULL;
</pre>";
- $output = t($output, array("%overview" => l(t("overview"), "admin/locale") ));
+ $output = t($output, array("%overview" => l(t("overview"), "admin/locale")));
break;
- case 'admin/system/modules':
+ case 'admin/system/modules#description':
$output = t("Enables the translation of the user interface to languages other than English.");
break;
case 'admin/locale':
@@ -55,14 +55,6 @@ function locale_help($section = "admin/locale/help") {
return $output;
}
-function locale_system($field){
- $output = "";
-
- if ($field == "description") { $output = locale_help("admin/system/modules"); }
-
- return $output;
-}
-
function locale_perm() {
return array("administer locales");
}