Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 05:53 am EST
Geeklog Forums
Endless hours/language in Chatterblock
Status: offline
LWC
Forum User
Full Member
Registered: 02/19/04
Posts: 818
1) Chatterblock has an option called "Number of hours of Chatter history to display". What if I want it to be unlimited? Sure, I can just enter 999999999, but is there a given number for this choice, like 0? Can I just enter 0?
2) Chatterblock (and other plugins?) has english.php . My Geeklog uses english_utf-8.php and still Geeklog is smart enough to use Chatterblock's english.php . How come? And what if I also use, say, Geeklog's hebrew.php? Should I just create an internal hebrew.php for Chatterblock?
Thanks!
2) Chatterblock (and other plugins?) has english.php . My Geeklog uses english_utf-8.php and still Geeklog is smart enough to use Chatterblock's english.php . How come? And what if I also use, say, Geeklog's hebrew.php? Should I just create an internal hebrew.php for Chatterblock?
Thanks!
12
10
Quote
Status: offline
THEMike
Forum User
Moderator
Registered: 07/25/03
Posts: 141
Location:Sheffield, UK
as for 1, I don't know, ask the chatterblock author directly.
For 2.
Geeklog has a system default language, and optionaly a user language. if languages/userlanguage.php does not exist, the system falls over to languages/systemlanguage.php.
Plugins generaly use the following code;
$langfile = $_CONF['path'] . 'plugins/pluginname/language/' . $_CONF['language'] . '.php';
if (file_exists ($langfile)) {
require_once ($langfile);
} else {
require_once ($_CONF['path'] . 'plugins/pluginname/language/english.php');
}
So if the plugin doesn't have the language chosen, then it will fail over to the english. Note that $_CONF['language'] is set intellegently in lib-common.php, it defaults to the value in config.php, but, if the user has a language set that exists, it is changed to that. SO a system configured to run in german, with a user who asks for english $_CONF will say it's english by the time this code executes, unless english.php doesn't exist when it'll stay as german. If you follow.
So if you want to run your site in hebrew, and your plugins don't have a hebrew.php then you'll have to create one or the plugin will (likely) default to english instead.
Hope that helps.
For 2.
Geeklog has a system default language, and optionaly a user language. if languages/userlanguage.php does not exist, the system falls over to languages/systemlanguage.php.
Plugins generaly use the following code;
Text Formatted Code
$langfile = $_CONF['path'] . 'plugins/pluginname/language/' . $_CONF['language'] . '.php';
if (file_exists ($langfile)) {
require_once ($langfile);
} else {
require_once ($_CONF['path'] . 'plugins/pluginname/language/english.php');
}
So if the plugin doesn't have the language chosen, then it will fail over to the english. Note that $_CONF['language'] is set intellegently in lib-common.php, it defaults to the value in config.php, but, if the user has a language set that exists, it is changed to that. SO a system configured to run in german, with a user who asks for english $_CONF will say it's english by the time this code executes, unless english.php doesn't exist when it'll stay as german. If you follow.
So if you want to run your site in hebrew, and your plugins don't have a hebrew.php then you'll have to create one or the plugin will (likely) default to english instead.
Hope that helps.
8
9
Quote
All times are EST. The time is now 05:53 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content