I can't get my language correct for the title of the different boxes.
In the administration of NSN, you can give a title to the box, but since i work with different languages, i really want the title to have dirrent languages...
I've tried to put in TITLEBLOCK1, _TITLEBLOCK1, ._TITLEBLOCK1 and "._TITLEBLOCK1.". But none of it worked.
The TITLEBLOCK is defined in \languages\lang-dutch.php and \languages\lang-french.php.
Joined: Aug 29, 2004 Posts: 7330 Location: Arizona
Posted:
Sat Mar 10, 2007 10:47 am
brononi, first of all welcome to RavenPHPScripts!
Unfortunately, PHP-Nuke requires a bit of work to get it to do this. Here are the steps (we will use the User Info block as an example to support both English and German):
1) Make sure in Preferences you have the "Activate Multilingual features? " option set to "yes"
2) For each language that you wish to support, create a new block file. In our example, you would create an exact copy of block-User_Info.php to maybe something like this block-User_Info_GE.php.
3) Now both blocks will show up in the block list. Add "User Info" and give it the language of English. Give it an English title that you want.
4) Then come back and Add "User Info GE" and give it the language of German. Give it a German title that you want.
5) Repeat these steps for each block.
If the block itself is written properly to be multilingual, then you just need to replicate each one for each language.
Now, when a user is logged in and changes their language, they will see the appropriate block.
BTW, if you want to remove languages from showing up on your site (i.e., maybe you don't care to support them), just remove the corresponding language files.
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