diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-08-11 11:26:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-08-11 11:26:20 +0000 |
commit | 1831e1b690f02d7f551d38ef88a0ba200f786497 (patch) | |
tree | cc3805acedb24888afbd7cd76129e690c0c81d0e /modules/node/node.module | |
parent | 8517e17e70db3d80410a9020d378587f93e74d14 (diff) | |
download | brdo-1831e1b690f02d7f551d38ef88a0ba200f786497.tar.gz brdo-1831e1b690f02d7f551d38ef88a0ba200f786497.tar.bz2 |
- New locale module thanks to Gerhard, Goba, Marco, Kristjan and others.
The new locale module provides every functionality on the web interface, so you don't need to edit the configuration files or add columns, when you add a new language. This module is an integration of the old locale and localegettext modules, plus a bunch of logic to parse Gettext Portable Object files (opposed to Machine Object files, as supported by localegettext).
Note: I made some minor changes to the context-sensitive help texts and to some of the status messages.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index e01353ec6..d619b0063 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -994,7 +994,8 @@ function node_block($op = 'list', $delta = 0) { * The link should be an absolute URL. */ function node_feed($nodes = 0, $channel = array()) { - global $base_url, $languages; + global $base_url; + $languages = (function_exists('locale')) ? locale_supported_languages() : array(); if (!$nodes) { $nodes = db_query_range('SELECT nid FROM {node} WHERE promote = 1 AND status = 1 ORDER BY created DESC', 0, 15); @@ -1012,7 +1013,7 @@ function node_feed($nodes = 0, $channel = array()) { 'title' => variable_get('site_name', 'drupal') .' - '. variable_get('site_slogan', ''), 'link' => $base_url, 'description' => variable_get('site_mission', ''), - 'language' => (($key = reset(array_keys($languages))) ? $key : 'en') + 'language' => (($key = reset(array_keys($languages['name']))) ? $key : 'en') ); $channel = array_merge($channel_defaults, $channel); |