PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
brononi
New Member
New Member


Joined: Oct 09, 2006
Posts: 1

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

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: 7330
Location: Arizona

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

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.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum