-
AuthorPosts
-
May 12, 2011 at 10:02 am #163905
In the JA Rave template is there any possibility the pathway to be translated, because I put You are here in language files, but it is not working it remains just on English.
The code is in mainnav.php:[PHP]<div class=”ja-breadcrums”>
<strong><?php echo JText::_(‘You are here:’)?></strong><a href=”<?php echo $this->baseurl; ?>”>Home ></a> <jdoc:include type=”module” name=”breadcrumbs” />
</div>[/PHP]How can be You are here and Home link translated and to be used in two languages.
Thanks
pritam Friendpritam
- Join date:
- April 2011
- Posts:
- 609
- Downloads:
- 0
- Uploads:
- 29
- Thanks:
- 11
- Thanked:
- 125 times in 113 posts
May 12, 2011 at 12:25 pm #390958Hello,
Here you have to do some edits in the navhelper.php in the following path
File Path: pluginssystemjat3base-themesdefaultblocksnavhelper.php copy the navhelper.php and then paste it to
File Path : templates/ja_rave/blocks Open the navhelper.php and make changes which you want to publish.
Edit the text ” You are here ” in the following php code. you will see the change in the template.
Code:
<?php echo JText::_(‘You are here’)?>
May 12, 2011 at 12:29 pm #390959<em>@pritam 240057 wrote:</em><blockquote>Hello,
Here you have to do some edits in the navhelper.php in the following path
File Path: pluginssystemjat3base-themesdefaultblocksnavhelper.php copy the navhelper.php and then paste it to
File Path : templates/ja_rave/blocks Open the navhelper.php and make changes which you want to publish.
Edit the text ” You are here ” in the following php code. you will see the change in the template.
Code:
<?php echo JText::_(‘You are here’)?></blockquote>
But as you said I don’t need to change the pathway, but to translate in order to be multilingual. If I change the pathway the changes will be made on the whole site and I want: You are here to be translated, not just changed.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 15, 2011 at 1:45 pm #391296<em>@tienhc 240352 wrote:</em><blockquote>You try adding the following code in your global language ( for example english: its en-GB/en-GB.ini)
YOU ARE HERE:=Your Text
</blockquote>This works for You are here, because it is translated, but the Home link is still not translated. The code is shown in my first post. Is there any solution to translate this?
Thank you for your help.
May 18, 2011 at 9:01 am #391787Will somebody provide answer?
May 21, 2011 at 5:14 pm #392249Go to Module Manager and look for the Breadcrumb. There, you can edit “Text for Home Entry” and put any text you want. Sorry for my bad english. I hope it helps you.
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
May 21, 2011 at 8:49 pm #392268Are you using the J1.5 or the J1.6 version?
May 22, 2011 at 9:13 am #392324<em>@benteveo 241786 wrote:</em><blockquote>Go to Module Manager and look for the Breadcrumb. There, you can edit “Text for Home Entry” and put any text you want. Sorry for my bad english. I hope it helps you.</blockquote>
That will translate, but will not show home link in the breadcrumbs, that is the why I put Home link in the php file.
<em>@phill luckhurst 241812 wrote:</em><blockquote>Are you using the J1.5 or the J1.6 version?</blockquote>
1.5
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
May 22, 2011 at 8:18 pm #392359I assume you have added the above code to the mainnav.php file in templates>ja_rave>blocks as it is not there by default?
What you could do is simple replace the <Home> with <?php echo JText::_(‘Crumbs_Home:’)?>
Then in your language file add something like
Crumbs_Home: = Your TranslationMay 23, 2011 at 6:16 am #392392<em>@phill luckhurst 241928 wrote:</em><blockquote>I assume you have added the above code to the mainnav.php file in templates>ja_rave>blocks as it is not there by default?
What you could do is simple replace the <Home> with <?php echo JText::_(‘Crumbs_Home:’)?>
Then in your language file add something like
Crumbs_Home: = Your Translation</blockquote>Thank you very much, this works, but again Home link disappears when you go away from Home.
-
AuthorPosts
This topic contains 11 replies, has 5 voices, and was last updated by vtom 13 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum