Multiple languages in home.php

Having Problems? Need Help? Post here!

Multiple languages in home.php

Postby SynoCloud » Tue Jul 10, 2012 3:17 pm

I have a website in two languages and have an introduction on the home page which has been written in a <p> tag in the home.php .
I can't figure out how to get the plugin to only draw one version (dutch or english) when that particular language is selected. From scanning the forum the closest I got was to write it as follows:

Code: Select all
<!--:en--><p>English content goes here</p><!--:-->
<!--:nl--><p>Dutch content goes here</p><!--:-->


However this has not worked. The website just displays both versions no matter what language is selected.

Please help!
SynoCloud
 
Posts: 4
Joined: Tue Jul 10, 2012 3:09 pm

Re: Multiple languages in home.php

Postby SynoCloud » Fri Jul 13, 2012 7:17 am

Bump please. I still have not solved this issue.
SynoCloud
 
Posts: 4
Joined: Tue Jul 10, 2012 3:09 pm

Re: Multiple languages in home.php

Postby SynoCloud » Sun Jul 15, 2012 5:29 pm

SynoCloud wrote:Bump please. I still have not solved this issue.
SynoCloud
 
Posts: 4
Joined: Tue Jul 10, 2012 3:09 pm

Re: Multiple languages in home.php

Postby petter.p » Mon Jul 16, 2012 12:08 am

Got the same problem and I am also in a hurry. Please help.
petter.p
 
Posts: 1
Joined: Mon Jul 16, 2012 12:07 am

Re: Multiple languages in home.php

Postby SynoCloud » Sun Jul 22, 2012 1:09 pm

Solved. It needs to be wrapped in PHP.

<?php _e("<!--:en--><p>English content goes here</p><!--:--><!--:nl--><p>Dutch content goes here</p><!--:-->") ?>
SynoCloud
 
Posts: 4
Joined: Tue Jul 10, 2012 3:09 pm


Return to qTranslate Support Forum

Who is online

Users browsing this forum: Google [Bot] and 4 guests