Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes
Author Message
brononi
New Member
New Member


Joined: Oct 09, 2006
Posts: 1

PostPosted: Sat Mar 10, 2007 9:37 am Reply with quote

Hey,

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.

Any idea what i'm doing wrong?
 
View user's profile Send private message
montego
Site Admin


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

PostPosted: Sat Mar 10, 2007 10:47 am Reply with quote

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.

Hope this helps.

_________________
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
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes

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 ©