Hacks

XOOPS Multilanguages : Smarty variables ready to be used!

marcan  01-Sep-2004 14:30 4757 Reads   No comments 
Important

Please note that you need some basic knowledge of PHP to do the following exercise. Also, you should backup any file prior to modifications.

Before you start, you need to have successfully installed XOOPS Multilanguages v1.4.1 and carefully followed the instructions of the ReadMe.txt file.

1- Language image

XOOPS Multilanguages automatically creates, for each language, a smarty variable containing the image and the hyperlink to change to this language when clicking on the image.

For example, if your site has those languages installed : french and english, you can use these variables anywhere in your theme : <{$lang_image_french}> and <{$lang_image_english}>.

2- Hyperlink to change to a specific language

If you don't want the image, you can use the smarty variable containing only the hyperlink to change to a specific language.

XOOPS Multilanguages automatically creates, for each language, a smarty variable containing the hyperlink to change to this language.

For example, if your site has those languages installed : french and english, you can use these variables anywere in your theme : Français and English.

That's it! Hope it helps!

Should you have any questions, please, feel free to post them on NotreVie.ca

.:: marcan (aka mal aka Marc-André) ::.
.:: NotreVie.ca ::.
Rating 0/5
Rating: 0/5 (0 votes)
Voting is disabled!


Login

Who's Online

227 user(s) are online (32 user(s) are browsing Publisher)


Members: 0


Guests: 227


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits

Categories