You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 119 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - strange language problem with phpbb (?) [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Northsea
Nuke Cadet
Nuke Cadet


Joined: Jun 20, 2003
Posts: 6


PostPosted: Tue Jun 24, 2003 7:23 pm Reply with quoteBack to top

Hi!

I have two questions (haven't we all) Very Happy

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
Find all posts by NorthseaView user's profileSend private messageMSN MessengerICQ Number
DeVision
Sergeant
Sergeant


Joined: Jun 03, 2003
Posts: 88


PostPosted: Wed Jun 25, 2003 1:01 am Reply with quoteBack to top

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?
Find all posts by DeVisionView user's profileSend private messageVisit poster's website
Northsea
Nuke Cadet
Nuke Cadet


Joined: Jun 20, 2003
Posts: 6


PostPosted: Thu Jun 26, 2003 9:44 pm Reply with quoteBack to top

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
Find all posts by NorthseaView user's profileSend private messageMSN MessengerICQ Number
Viper
Lieutenant
Lieutenant


Joined: May 04, 2003
Posts: 282

Location: Louisville, KY USA

PostPosted: Thu Jun 26, 2003 10:43 pm Reply with quoteBack to top

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, Very Happy

_________________
Building A Better PHP-Nuke Community!
Image
Find all posts by ViperView user's profileSend private messageVisit poster's website
DeVision
Sergeant
Sergeant


Joined: Jun 03, 2003
Posts: 88


PostPosted: Thu Jun 26, 2003 11:28 pm Reply with quoteBack to top

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.
Find all posts by DeVisionView user's profileSend private messageVisit poster's website
Viper
Lieutenant
Lieutenant


Joined: May 04, 2003
Posts: 282

Location: Louisville, KY USA

PostPosted: Fri Jun 27, 2003 7:05 am Reply with quoteBack to top

He DeVision, that's great, I did not know that, thanks for the info, I just learned something new today, Wink

Linzilla

_________________
Building A Better PHP-Nuke Community!
Image
Find all posts by ViperView user's profileSend private messageVisit poster's website
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Fri Jun 27, 2003 7:25 am Reply with quoteBack to top

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
Find all posts by chatservView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.497 Seconds - 408 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::