Welcome to Geeklog, Anonymous Tuesday, March 19 2024 @ 04:50 am EDT

Geeklog Forums

Forum 2.8.0 Language file.


Status: offline

Zippo

Forum User
Chatty
Registered: 07/08/11
Posts: 53
confused
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... Rolling Eyes

How do I test my language file?
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Is your language set to Dutch in your_site/usersettings.php page?

Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 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.
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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.

Ben


I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Zippo

Forum User
Chatty
Registered: 07/08/11
Posts: 53
Dutch is the language.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Is your site running on UTF-8? If so, you need to create / edit the dutch_utf-8.php language file.

bye, Dirk
 Quote

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..
 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:
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
 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!!

 Quote

Status: offline

Zippo

Forum User
Chatty
Registered: 07/08/11
Posts: 53
Language file uploade :wink:
 Quote

Status: offline

Zippo

Forum User
Chatty
Registered: 07/08/11
Posts: 53
Language file Spam-X Dutch uploaded.
 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:
 Quote

Status: offline

Zippo

Forum User
Chatty
Registered: 07/08/11
Posts: 53
Thanks for everything.
Topic can be closed, I presume.
 Quote

All times are EDT. The time is now 04:50 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