Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
Randomizer
Regular
Regular



Joined: Jun 10, 2005
Posts: 57
Location: Sweden

PostPosted: Fri Oct 28, 2005 1:42 am Reply with quote

Is there a way to show different blocks depending
on which language you have choosed?

I'm using Sommaire as the main menu block.
If I choose Swedish I want to show Sommaire_swedish
and if I choose English I want to show Sommaire_english.
 
View user's profile Send private message Visit poster's website
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Fri Oct 28, 2005 5:31 am Reply with quote

Randomizer,

Yes. Actually, much of the content can be presented in different languages. Within the Administration --> Preferences you would need to set nuke to yes the "Activate Multilingual features". This will change the Block administration function to allow you to pick the language it is for.

I highly recommend, though, you to test out all the multilingual features on a test domain or server somewhere because although nuke can be multilingual, once you set that setting, ALL languages provided by nuke can be used but not all your blocks and modules (the add-ons mostly) will have all these translations available. Hence why you may want to remove some of the languages so that you only have those select few you wish to provided content for and test all the blocks and modules that you use for the existence of proper language define files.

Happy Multi-Lingual Nukin'!

montego

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Randomizer







PostPosted: Fri Oct 28, 2005 10:39 am Reply with quote

Thanks for this reply.
I'll start to test right now.
 
doffer83
Worker
Worker



Joined: Apr 17, 2011
Posts: 117
Location: Amsterdam

PostPosted: Mon Aug 20, 2012 11:46 am Reply with quote

I have turned on this function in CP.. language block too. But switching does not work.. I trierd to set some blocks only for dutch language and some other for English.. but I can see the english blocks.. even I click on dutch flag nothing happen and there are no blocks for this language.. I wish I just could make the feedback in two language working.. (the language files are stored in the right dir)
 
View user's profile Send private message Visit poster's website
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1775

PostPosted: Mon Aug 20, 2012 1:10 pm Reply with quote

The language settings are stored in a cookie. Make sure the language setting in preferences are on "ALL".

Example: Log out as user and set the default language with the language-block for Anonymous. After this log in the RN, choose your language and it must work.
 
View user's profile Send private message
doffer83







PostPosted: Mon Aug 20, 2012 1:37 pm Reply with quote

neralex wrote:
The language settings are stored in a cookie.
yes that's known .. I tried your tricks but nothing happend.

I use from 2 days ago the next code in mainfile.php

Code:
 static $ThemeSelSave;

    $ThemeSelSave = $ThemeSel;
if ($currentlang == "dutch") { 
$ThemeSelSave = "FiSubNuke"; 
} else { 
/* Don't change the theme */ 
}
    return $ThemeSelSave;
}


and even without a second them for dutch .. does not work ether

I send you the link of the site in a pv massage then you can see it in action
 
neralex







PostPosted: Mon Aug 20, 2012 2:57 pm Reply with quote

ok i have it tried self with the following steps and it works without any changes in the mainfile!

1. i have copied the lang-english.php in the language folder of the nuke and have renamed to lang-dutch.php
2. i set the site info block to lang dutch
3. change the language in home to dutch and it works!

Its not nessary to change the mainfile for that. I think you have created many bugs on your website. My HTML tidy plugin counts 230 errors and 6 warnings.

Edit: I have it tested only with a current RavenNuke. Your are using a very old PHPNuke version. Give the current RN a chance! Smile
 
doffer83







PostPosted: Mon Aug 20, 2012 3:24 pm Reply with quote

I will never use phpnuke again.. but when I discovered this raven site ... my own site was already installed and heavy modified. I like the advanced raven more..

Usual works phpnuke with more than one language without any terribles but this version I use now doesn't .. it is made by dadanuke.. they call it a better nuke (with so much bugs I had to fix)
 
doffer83







PostPosted: Tue Aug 21, 2012 10:20 am Reply with quote

Yes now it works.. I changed the maifile.php with a new one from the patch 3.3 and everything became okey.. I wish I could fix my old mainfile.php
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©