diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-05-20 13:51:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-05-20 13:51:40 +0000 |
commit | 20397ad3d9dad39670ed92923d2513bd89c7b0bb (patch) | |
tree | 1e16b41f8312007e0f0805c6db7c94813f5c05fb /modules/locale | |
parent | 3fbd49d786e57ebde5736793a5050cda8796205d (diff) | |
download | brdo-20397ad3d9dad39670ed92923d2513bd89c7b0bb.tar.gz brdo-20397ad3d9dad39670ed92923d2513bd89c7b0bb.tar.bz2 |
CHANGES
- Redid settings.module and even renamed it to conf.module.
* Settings are now grouped in basic categories like "system
settings", "module settings" and "filters".
* Added new settings to make Drupal easier to configure and
to make some aspects like the watchdog scale better.
- Renamed includes/settings.php to includes/conf.php.
- Added filter support to conf.module and introduced filter hooks so
modules can implement and export new filters. Example filters are
an HTML filter (implemented), a profanity filter, an url converter,
ASCII smileys to images filter and so on ...
- Reworked the check_* functions: user contributed content/input is
only verified and filtered once in its lifespan.
NOTES
- Altough this is a large commit, no database changes are required.
Diffstat (limited to 'modules/locale')
-rw-r--r-- | modules/locale/locale.module | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module index deb802b29..1e2a074c8 100644 --- a/modules/locale/locale.module +++ b/modules/locale/locale.module @@ -3,7 +3,7 @@ function locale_help() { ?> <P>Normally programs are written and documented in English, and use English to interact with users. This is true for a great deal of websites. However, most people are less comfortable with English than with their own native language, and would prefer to use their mother tongue as much as possible. Many people love see their website showing a lot less of English, and far more of their own language.</P> - <P>Therefore drupal provides a framework to setup a multi-lingual website, or to overwrite the default texts in English. We explored the various alternatives to support internationalization and decided to design the framework in such a way that the impact of internationalization on drupal's sources is minimized, modular and that it doesn't require a HTML or PHP wizard to maintain translations. Maintaining translations had to be simple so it became as easy as filling out forms on the administration page. A side effect is that translation support adds significant overhead to the dynamic generation of your website. If you don't need translation support, consider to turn it off.</P> + <P>Therefore drupal provides a framework to setup a multi-lingual website, or to overwrite the default texts in English. We explored the various alternatives to support internationalization and decided to design the framework in such a way that the impact of internationalization on drupal's sources is minimized, modular and that it doesn't require a HTML or PHP wizard to maintain translations. Maintaining translations had to be simple so it became as easy as filling out forms on the administration page. A side effect is that translation support adds significant overhead to the dynamic generation of your website. If you don't need translation support, consider to turning it off from the "conf" section.</P> <H3>Adding a new language</H3> @@ -24,6 +24,10 @@ function locale_help() { <?php } +function locale_conf_options() { + return form_select(t("Locale support"), "locale", variable_get("locale", 1), array("Disabled", "Enabled"), t("Disable locale support if your site does not require translation or internationalization support.")); +} + function locale_delete($id) { db_query("DELETE FROM locales WHERE id = '$id'"); } |