Hi,

I have launched this week this website http://complementtod.com.br

It has been developed in three languages. One of the issues that I found is related to the popup window that emerge when you click to login or signup. I couldn't find the way to show the right popup language page because even if you have selected English the popup window will show you Portuguese (which is the default language for the site).

I don't know if there is something that I have to modified here:

print $base_url.'/user/register'?>" class="colorbox-load">

This part of the code that i use on the page--front.tpl.php
I really appreciate any help on this.

Thanks.

Comments

silypointer’s picture

Hi,

  1. We have '$language' global in Drupal, it changes as you change the language on your site.
  2. It changes the value in url as well when you change the language
  3. While rendering on page--front.tpl.php check the value of $language and render the things accordingly.

Hope this helps.

Thanks!

yogeshchaugule8’s picture

Hi Leob,

I've checked link you've provided and, you global language is not getting set properly, you'll have to cross check all your multi-lingual configurations. If everything is properly configured Drupal make sure that every link has valid base url if followed best practices.

Or another thing can be, your language setup is proper but, language suffix is not set properly when you're generating your Login link, because when I see login link, it doesn't has selected language code in url.

Try using l() function. This function make sure that your base url is set properly, so you don't need to use $base_url.

leob’s picture

Thanks for your reply. I will try to use the second solution and let you know if it works.