- made simple template almost feature complete by implementing view modes and more

- other general fixes to things a bit all over the place

git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@12 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
jim
2006-04-04 23:15:55 +00:00
parent a8fe6d5a8c
commit 80fd008b9d
20 changed files with 411 additions and 105 deletions

View File

@@ -22,7 +22,6 @@ Author: Jim Myhrberg
//>Section> init:10
if ( empty($config->language) ) $config->language = 'english';
if ( is_readable('languages/'.$config->language.'.lang.php') ) {
include('languages/'.$config->language.'.lang.php');
} elseif ( is_readable('languages/'.$config->default_lang.'.lang.php') ) {
@@ -31,7 +30,22 @@ if ( is_readable('languages/'.$config->language.'.lang.php') ) {
die("ERROR: Can't open language file.");
}
//>Section> create_object:10
$lang = new lang();
//>Section> warning:10
if ( $lang->_version < $config->req_lang_ver ) {
echo 'WARNING: '.ucfirst($config->language).' language file is out of date and not fully compatible with this version of dList.';
}
//>Section> timer_string:10
if ( stristr($lang->timer_string, '%s') != false ) $timer->pattern = $lang->timer_string;
//>Section> setlocale:10
setlocale(LC_ALL, array_merge($lang->_locale, $config->default_locale));