Posted on: 07/14/11 01:51pm
By: Zippo
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?
Re: Forum 2.8.0 Language file.
Posted on: 07/14/11 02:37pm
By: ::Ben
Is your language set to Dutch in your_site/usersettings.php page?
Ben
Re: Forum 2.8.0 Language file.
Posted on: 07/14/11 02:51pm
By: Anonymous (Zippo)
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.
Re: Forum 2.8.0 Language file.
Posted on: 07/14/11 03:47pm
By: ::Ben
your_site/usersettings.php page is your account page. You need to go to this page on your site with your browser to check what is your language setting.
Your account settings on geeklog.net are
here[*1] .
Ben
Re: Forum 2.8.0 Language file.
Posted on: 07/14/11 05:40pm
By: Zippo
Dutch is the language.
Re: Forum 2.8.0 Language file.
Posted on: 07/15/11 04:29am
By: Dirk
Is your site running on UTF-8? If so, you need to create / edit the dutch_utf-8.php language file.
bye, Dirk
Re: Forum 2.8.0 Language file.
Posted on: 07/15/11 06:00am
By: Zippo
- 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..
Re: Forum 2.8.0 Language file.
Posted on: 07/15/11 07:15am
By: Roccivic
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:
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[*2]
Rouslan
Re: Forum 2.8.0 Language file.
Posted on: 07/15/11 07:36am
By: Zippo
: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!!
Re: Forum 2.8.0 Language file.
Posted on: 07/15/11 08:33am
By: Zippo
Language file uploade :wink:
Re: Forum 2.8.0 Language file.
Posted on: 07/16/11 05:58am
By: Zippo
Language file Spam-X Dutch uploaded.
Re: Forum 2.8.0 Language file.
Posted on: 07/16/11 06:38am
By: Roccivic
Quote by: Zippo
public_html/forum/language (<----- P.S. Can I delete this forum folder & subfolders <--)
Yes, delete it, it's useless.
Quote by: ZippoLanguage file uploade :wink:
Thank you.
Quote by: ZippoLanguage 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[*3]
I've forwarded it there for you for this time :wink:
Re: Forum 2.8.0 Language file.
Posted on: 07/16/11 06:56am
By: Zippo
Thanks for everything.
Topic can be closed, I presume.