Author |
Message |
Randomizer
Regular


Joined: Jun 10, 2005
Posts: 57
Location: Sweden
|
Posted:
Fri Oct 28, 2005 1:42 am |
|
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. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Fri Oct 28, 2005 5:31 am |
|
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! |
|
|
 |
Randomizer

|
Posted:
Fri Oct 28, 2005 10:39 am |
|
Thanks for this reply.
I'll start to test right now. |
|
|
|
 |
doffer83
Worker


Joined: Apr 17, 2011
Posts: 117
Location: Amsterdam
|
Posted:
Mon Aug 20, 2012 11:46 am |
|
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) |
|
|
|
 |
neralex
Site Admin

Joined: Aug 22, 2007
Posts: 1775
|
Posted:
Mon Aug 20, 2012 1:10 pm |
|
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. |
|
|
|
 |
doffer83

|
Posted:
Mon Aug 20, 2012 1:37 pm |
|
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

|
Posted:
Mon Aug 20, 2012 2:57 pm |
|
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!  |
|
|
|
 |
doffer83

|
Posted:
Mon Aug 20, 2012 3:24 pm |
|
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

|
Posted:
Tue Aug 21, 2012 10:20 am |
|
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 |
|
|
|
 |
|