Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

[SOLVED] Multiple language in Modules

01-13-2010, 07:49 AM
# 1 (permalink)
redcat
Hello,
I would like to add multiple languages to the YJ Newsflash module (Ex: readmore to also be "Ler mais") depending on wether the user is seeing the site in portuguese or english.
Can someone provide me some assistance on how to do this?
Thank you in advance,

Duarte
01-20-2010, 03:28 PM
# 2 (permalink)
SomeoneHere
Have you installed Joomfish on your site to use it as a multilanguage site?
If you have other language installed than default english you can open the file mod_yjnewsflash.php and find this line here:

Code:

echo "<span class=\"yjnsreadon\"><a class=\"yjns_rm\" href=\"".JRoute::_($link)."\">Read more</a></span>";
And change it into this here:

Code:

echo "<span class=\"yjnsreadon\"><a class=\"yjns_rm\" href=\"".JRoute::_($link)."\">". JText::_("READMORE").)"</a></span>";
Then you need to create a file called en-GB.mod_yj_newsflash.ini and place in the site root/languages/en-GB folder
Open that file and add this into it:

Code:

READMORE=Read More
Save it with encoding utf8 NO BOM

For any other language you need to do the same steps as above:
Copy the file en-GB.mod_yj_newsflash.ini into each different language folder you have, and rename the file with the correct letters in front of the name
Spanish would be es-ES.mod_yj_newsflash.ini i guess. And then you can open the file and translate the text:

Code:

READMORE=Leer Más
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Powered by vBulletin®
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

Members Login

Username
Password