-
AuthorPosts
-
April 27, 2016 at 11:45 am #923445
Hello,
how to change default language to another (rus) in the contacts block? Pls see an attach.
link http://wingseducation.ru/ru/contacts
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
May 26, 2016 at 8:19 am #934974Ok thanks!
For one language web site version it works well. But how to use it if our site has two languages?pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
May 26, 2016 at 9:13 am #934979But how to use it if our site has two languages?
Hi
You should add language strings , so open file and change
<div> <i class="fa fa-phone"></i> <span class="contact-telephone" itemprop="telephone"> <strong>Call Us</strong><?php echo nl2br($this->contact->telephone); ?> </span> </div>
To :
<div> <i class="fa fa-phone"></i> <span class="contact-telephone" itemprop="telephone"> <?php echo '<strong>'. JText::_('TPL_CONTACT_ADDRESS_TOP_CALL_US').'</strong>'; ?><?php echo nl2br($this->contact->telephone); ?> </span> </div>
Then go to Languages -> Override-> New- > and add the override for TPL_CONTACT_ADDRESS_TOP_CALL_US selecting the respective language file
first apply to the english language and then apply translation for the other installed languageYou can change also the "Mail Us" and "website" adding new languages strings
TPL_CONTACT_ADDRESS_TOP_MAIL_US
TPL_CONTACT_ADDRESS_TOP_WEBSITEHope it helps
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 3 replies, has 2 voices, and was last updated by pavit 8 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum