Changeset 1725
- Timestamp:
- 06/06/07 14:55:22 (15 months ago)
- Location:
- trunk/gregarius
- Files:
-
- 2 modified
-
cls/l10n.php (modified) (1 diff)
-
schema.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/cls/l10n.php
r1692 r1725 79 79 */ 80 80 function __detectUserLang() { 81 82 if (getConfig('rss.output.lang.force') === true) { 83 return getConfig('rss.output.lang'); 84 // Language defined in the request (?lang=) 85 } 86 81 87 // Language overridden? 82 88 if (defined('RSS_LANGUAGE_OVERRIDE')) { 83 89 return constant('RSS_LANGUAGE_OVERRIDE'); 84 // Language defined in the request (?lang=) 85 } elseif (isset($_REQUEST['lang']) && preg_match('#^[a-z]{2}_?([A-Z]{2})?$#',$_REQUEST['lang']) && ($_REQUEST['lang'] == 'en' || file_exists(GREGARIUS_HOME .'intl/'.$_REQUEST['lang']))) { 90 } elseif (isset($_REQUEST['lang']) && preg_match('#^[a-z]{2}_?([A-Z]{2})?$#',$_REQUEST['lang']) && ($_REQUEST['lang'] == 'en' || file_exists(GREGARIUS_HOME .'intl/'.$_REQUEST['lang']))) { 86 91 $this -> __setLocaleCookie($_REQUEST['lang']); 87 92 rss_invalidate_cache(); 88 93 return $_REQUEST['lang']; 89 94 // Cookie 90 } elseif (isset($_COOKIE[RSS_LOCALE_COOKIE])) {95 } elseif (isset($_COOKIE[RSS_LOCALE_COOKIE])) { 91 96 return trim($_COOKIE[RSS_LOCALE_COOKIE]); 92 97 // HTTP_ACCEPT_LANGUAGE HTTP Argument -
trunk/gregarius/schema.php
r1692 r1725 447 447 "rss.config.markreadonupdate"=> array("false","false","boolean","Mark all old unread feeds as read when updating if new unread feeds are found.",NULL), 448 448 "rss.output.lang" => array("en_US,zh_CN,de,da,es,fr,he,it,ja,pt_BR,pt,ru,sv,0","en_US,zh_CN,de,da,es,fr,he,it,ja,pt_BR,pt,ru,sv,0","enum","Language pack to use.",NULL), 449 "rss.output.lang.force" => array("false","false",'boolean',"When false, Gregarius will negotiate the display language with the browser and will fall back to the language defined in rss.output.lang if the negotiation fails. When true, Gregarius won't negotiate and will always use the language defined in rss.output.lang.",NULL), 449 450 "rss.config.absoluteordering"=> array("true","true","boolean","Allow feeds and folders to be ordered by their order in the admin section. If this option is set to false, channels and folders will be organized alphabetically by their titles.",NULL), 450 451 "rss.config.robotsmeta" => array("noindex,follow","noindex,follow","string","How should spiders crawl us? (see http://www.robotstxt.org/wc/meta-user.html for more info).",NULL),
