VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

How can I install multi-language for this template
(1 viewing) (1) Guest

TOPIC: How can I install multi-language for this template

Re: How can I install multi-language for this template 07 May 2015 03:40 #6650

I mean how I can to change "Go to top" by click Language Switcher in stead of editting code in "templates/jf_creativia/index.php"?

  • Posts:21
  • thanmem
  • Junior Boarder
  • OFFLINE
  • Karma: 0

Re: How can I install multi-language for this template 07 May 2015 03:50 #6652

You can use:

<a href="#"><?php echo JText::_('GO_TO_TOP'); ?></a>

then create a New Language Override.

joomfreak
The following user(s) said Thank You: thanmem

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: How can I install multi-language for this template 08 May 2015 02:34 #6655

I do not know why it appears after creating 3 main menu (1-all, 2-en & 3-vn). It likes a blank article Home in homepage. Give me your support.

This image is hidden for guests. Please log in or register to see it.

Thanks u so much!

  • Posts:21
  • thanmem
  • Junior Boarder
  • OFFLINE
  • Karma: 0

Re: How can I install multi-language for this template 08 May 2015 03:12 #6659

Edit templates/jf_creativia/index.php, add line this after
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$menu = $app->getMenu();
 
$lang = JFactory::getLanguage();
 

Then find and replace:
if ($menu->getActive() != $menu->getDefault())

to:
if ($menu->getActive() != $menu->getDefault($lang->getTag()))


joomfreak
Last Edit: 13 May 2015 03:13 by isupport.
The following user(s) said Thank You: thanmem

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: How can I install multi-language for this template 08 May 2015 11:17 #6663

I've changed it but, nothing happen. Can you login to my site and tell me how to fix it

vec.zz.mu/index.php?lang=en

  • Posts:21
  • thanmem
  • Junior Boarder
  • OFFLINE
  • Karma: 0

Re: How can I install multi-language for this template 11 May 2015 03:27 #6674

I've fixed it.

joomfreak

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0
Time to create page: 1.06 seconds
Wednesday 24 April 2024

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.