I use the swedish language on my site, and it all works good.
I downloaded the swedish language for phpbb, wich also works neat _exept_ this:
Warning: Failed opening 'modules/Forums/language/lang-swedish.php' for inclusion (include_path='.:/usr/share/php/PEAR') in /xxx/html/mainfile.php on line 183
The problem is understandable, because the file doesn't exist at that path, only the lang-english.php does. _however_ i checked that file, and it seems that the file is related to splatt forum (?), wich i don't use at all.
Anyway mainfile.php seems to want to include it anyways. (bug) ??
I used the admin interface for phpbb in nuke to change default language from english, to swedish. (i have also done this in phpnuke itself)
Any ideas? perhaps there is a way to fix this by editing mainfile.php?
Another thing, when i log in with a user, my language in the forum seems to be english, but not if i'm not logged in?
like i said, default is swedish for both phpbb and phpnuke itself.
(i'm using phpnuke 6.5)
Yours
/Northsea
DeVision Sergeant
Joined: Jun 03, 2003
Posts: 88
Posted:
Wed Jun 25, 2003 1:01 am
my suggestion to your second question is that you as an admin still have in your phpbb profile the english lang as default.
go to forum admin and look up your username and check it out.
the first question requires some thinking...
this file is as you said related to the splatt forums that been used long ago but it is not being used now, the forum is looking for a directory named lang-xxxx in this spesific location and takes the language file from there (at least that is what happens in my site and it is too translated)
do you have in
'modules/Forums/language/
a lang-swedish directory?
Northsea Nuke Cadet
Joined: Jun 20, 2003
Posts: 6
Posted:
Thu Jun 26, 2003 9:44 pm
DeVision wrote:
my suggestion to your second question is that you as an admin still have in your phpbb profile the english lang as default.
go to forum admin and look up your username and check it out.
the first question requires some thinking...
this file is as you said related to the splatt forums that been used long ago but it is not being used now, the forum is looking for a directory named lang-xxxx in this spesific location and takes the language file from there (at least that is what happens in my site and it is too translated)
do you have in
'modules/Forums/language/
a lang-swedish directory?
No, but i have a lang_swedish directory, (the swedish language for phpbb downloaded from www.phpbb.com).
However.. there is no lang-swedish.php file, but there is a lang-english.php file.. wich it seems belongs to the splatt forum (is splatt forum even included in the phpnuke 6.5 release?)
If not, it seems that the lang-english.php file shouldn't be there at all, and mainfile.php needs editing...(bug)
_or_ is phpbb forum using lang-english.php, even tough if you edit that file, you can see that it belongs to splatt forum (?).
Thanks for the reply by the way!
/Northsea
Viper Lieutenant
Joined: May 04, 2003
Posts: 282
Location: Louisville, KY USA
Posted:
Thu Jun 26, 2003 10:43 pm
Hi Northsea,
Did you say you downloaded the Swedish Language file from www.phpbb.com? I don't think that will work with PHP-Nuke. There already is a Swedish Language file in PHP-Nuke. Sorry, I guess I'm a little confused,
_________________ Building A Better PHP-Nuke Community!
DeVision Sergeant
Joined: Jun 03, 2003
Posts: 88
Posted:
Thu Jun 26, 2003 11:28 pm
No, Linzilla, you can use the language pack from phpbb it works just fine with nuke.
You just put it in /modules/Forums/language and then you have a option in the forum to switch language.
For your question Northsea - Splatt forums were once used with phpnuke, before using phpbb.
AS I said the language directory should be
Code:
/modules/Forums/language/lang-swedish
and then you should have an option to change the lang in you phpbb profile and forum configuration.
this is the get lang function:
Code:
unction get_lang($module) {
global $currentlang, $language;
if (file_exists("modules/$module/language/lang-$currentlang.php")) {
if ($module == admin) {
include_once("admin/language/lang-$currentlang.php");
} else {
include_once("modules/$module/language/lang-$currentlang.php");
}
} else {
if ($module == admin) {
include_once("admin/language/lang-$currentlang.php");
} else {
include_once("modules/$module/language/lang-$language.php");
}
}
}
now the function goes to
modules/$module/language/lang-$language.php
only if it will not find the $currentlang.php
so please check all defintions are set to swedish ->preferances in your admin control panel, forum configuration and in the admin profile.
_________________ Knowledge is power... use it wisely.
Viper Lieutenant
Joined: May 04, 2003
Posts: 282
Location: Louisville, KY USA
Posted:
Fri Jun 27, 2003 7:05 am
He DeVision, that's great, I did not know that, thanks for the info, I just learned something new today,
Linzilla
_________________ Building A Better PHP-Nuke Community!
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Fri Jun 27, 2003 7:25 am
Usually a quick and dirty fix for this is to grab the desired language file from Nuke 6.0's forum and placing it in the Forum's language folder, else make a copy of lang-english.php rename to lang-yourlang.php and upload, it won't get used but at least the currentlang file will be found.
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum