Welcome to Geeklog, Anonymous Sunday, November 24 2024 @ 03:18 am EST
Geeklog Forums
Forum 2.8.0 Language file.
I am working on a Dutch translation.
I choose Dutch as default in GeekLog.
I translate using the English file.
I replaced it with the English files (Normal and UTF),
I created the Dutch files (Normal and UTF)
in the ./forum/language folder.
I only see English...
How do I test my language file?
I choose Dutch as default in GeekLog.
I translate using the English file.
I replaced it with the English files (Normal and UTF),
I created the Dutch files (Normal and UTF)
in the ./forum/language folder.
I only see English...
How do I test my language file?
12
16
Quote
Zippo
Anonymous
Ehmmmm...
A lot of lang04 and other language stuf in that file.
But nowhere to find which my default is.
I can tell you that my GeekLog is in Dutch Language when I login.
A lot of lang04 and other language stuf in that file.
But nowhere to find which my default is.
I can tell you that my GeekLog is in Dutch Language when I login.
12
12
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Status: offline
Zippo
Forum User
Chatty
Registered: 07/08/11
Posts: 53
- I made both files ... just to be on the safe side.
- I backupped the english files and replaced them with mine.
- Restarted browser,...
- close open window TAB....
- logout/login
- delete history...
But forum... stays English
I do not understand..
- I backupped the english files and replaced them with mine.
- Restarted browser,...
- close open window TAB....
- logout/login
- delete history...
But forum... stays English
I do not understand..
9
9
Quote
Status: offline
Roccivic
Forum User
Moderator
Registered: 05/19/10
Posts: 136
Ok, so this NOT a good solution, but will probably get you by or show you where the issue is. Go to '{geeklog_base_dir}/plugins/forum/' and find a file called 'functions.inc'.
At line 43 you will find this code:
* Include language file
*/
$plugin_path = $_CONF['path'] . 'plugins/forum/';
$langfile = $plugin_path . 'language/' . $_CONF['language'] . '.php';
if (file_exists($langfile)) {
require_once $langfile;
} else {
require_once $plugin_path . 'language/english.php';
}
Replace that with:
* Include language file
*/
$plugin_path = $_CONF['path'] . 'plugins/forum/';
//$langfile = $plugin_path . 'language/' . $_CONF['language'] . '.php';
//if (file_exists($langfile)) {
// require_once $langfile;
//} else {
require_once $plugin_path . 'language/dutch.php';
//}
There are two possible outcomes:
1) The forum will work in Dutch (the least likely)
2) There will be a PHP error and the forum will stop working altogether (maybe even taking Geeklog down with it). If this happens, it means that you placed you 'dutch.php' and 'dutch_utf-8.php' in the wrong folder, named them incorrectly or something like that.
Note that the forum languages files should go into: '{geeklog_base_dir}/plugins/forum/language/' (the './forum/language/' path that you specified above could be anything).
If you successfully finish translating, please send us your language file, so that we can include it in the final 2.8.0 release.
You can submit it as an attachment here: http://code.google.com/p/geeklog/issues/list
Rouslan
At line 43 you will find this code:
Text Formatted Code
/*** Include language file
*/
$plugin_path = $_CONF['path'] . 'plugins/forum/';
$langfile = $plugin_path . 'language/' . $_CONF['language'] . '.php';
if (file_exists($langfile)) {
require_once $langfile;
} else {
require_once $plugin_path . 'language/english.php';
}
Replace that with:
Text Formatted Code
/*** Include language file
*/
$plugin_path = $_CONF['path'] . 'plugins/forum/';
//$langfile = $plugin_path . 'language/' . $_CONF['language'] . '.php';
//if (file_exists($langfile)) {
// require_once $langfile;
//} else {
require_once $plugin_path . 'language/dutch.php';
//}
There are two possible outcomes:
1) The forum will work in Dutch (the least likely)
2) There will be a PHP error and the forum will stop working altogether (maybe even taking Geeklog down with it). If this happens, it means that you placed you 'dutch.php' and 'dutch_utf-8.php' in the wrong folder, named them incorrectly or something like that.
Note that the forum languages files should go into: '{geeklog_base_dir}/plugins/forum/language/' (the './forum/language/' path that you specified above could be anything).
If you successfully finish translating, please send us your language file, so that we can include it in the final 2.8.0 release.
You can submit it as an attachment here: http://code.google.com/p/geeklog/issues/list
Rouslan
11
15
Quote
Status: offline
Zippo
Forum User
Chatty
Registered: 07/08/11
Posts: 53
:chestslam:
You are a genius!! :banana:
I have:
public_html/forum/language (<----- P.S. Can I delete this forum folder & subfolders <--)
AND
public_html/plugins/forum/language
So I got an error, put the file in the right Folder and it works!!
You are a genius!! :banana:
I have:
public_html/forum/language (<----- P.S. Can I delete this forum folder & subfolders <--)
AND
public_html/plugins/forum/language
So I got an error, put the file in the right Folder and it works!!
9
16
Quote
Status: offline
Roccivic
Forum User
Moderator
Registered: 05/19/10
Posts: 136
Quote by: Zippo
public_html/forum/language (<----- P.S. Can I delete this forum folder & subfolders <--)
Yes, delete it, it's useless.
Quote by: Zippo
Language file uploade :wink:
Thank you.
Quote by: Zippo
Language file Spam-X Dutch uploaded.
The link that I provided to you earlier only good for uploading thing that are related to 'Forum', 'Search Word Ranking' and 'Autotags' plugins. For core plugins (the ones that come with the official Geeklog package), the correct place to upload them is here: http://www.geeklog.net/filemgmt/submit.php
I've forwarded it there for you for this time :wink:
12
11
Quote
All times are EST. The time is now 03:18 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