-
AuthorPosts
-
December 27, 2010 at 2:41 am #157903
Hi, I need change one word to different lenguage, the word is “login”, topbar.
I try the jalogin lenguage file, but this wort not change.
anbody knows how to change it ?modules/mod_jalogin/tmpl/default.php is it right file ?
thanks : )
Phan Gam FriendPhan Gam
- Join date:
- June 2008
- Posts:
- 216
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 4
- Thanked:
- 39 times in 38 posts
December 27, 2010 at 8:46 am #368737Hi,
In JA Social template, ja_login module is overrided in this template, you can change Text for login label as follows:
1. Open default.php file under templatesja_socialhtmlmod_jalogin folder,
2. Finding a tag for login link
<a class="login-switch" href="<?php echo JRoute::_('index.php?option=com_user&view=login');?>" onclick="showBox('ja-user-login','mod_login_username',this, window.event || event);return false;" title="<?php JText::_('Login');?>"><span>Login</span></a>
arroud line 10 in this file.
3. Replace code block above to
<a class="login-switch" href="<?php echo JRoute::_('index.php?option=com_user&view=login');?>" onclick="showBox('ja-user-login','mod_login_username',this, window.event || event);return false;" title="<?php JText::_('Login');?>"><span><?php echo JText::_('BUTTON_LOGIN') ?></span></a>
4. In ja login laguage file ( languageen-GBen-GB.mod_jalogin.ini , Or your language file default), you can modify BUTTON_LOGIN to your language.
Remember to clear all cache data before refreshing your site.
Hope that helpsDecember 27, 2010 at 11:12 pm #368847thanks.
It works, but now, how I can change the caption of the button that the user click on it after they insert their name&pass, I didnt find this code..Phan Gam FriendPhan Gam
- Join date:
- June 2008
- Posts:
- 216
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 4
- Thanked:
- 39 times in 38 posts
December 29, 2010 at 4:24 am #369048<em>@dhyamin 211153 wrote:</em><blockquote>thanks.
It works, but now, how I can change the caption of the button that the user click on it after they insert their name&pass, I didnt find this code..</blockquote>Hi,
There is solution for you. In the same file above, find this code
<input type="submit" name="Submit" class="button" value="Login" />
arround line 34
Change it to
<input type="submit" name="Submit" class="button" value="<?php echo JText::_('BUTTON_LOGIN') ?>" title="{your login caption}"/>
Regards!December 30, 2010 at 12:22 am #369241thanks solved!
I changed it to:
[PHP]<input type=”submit” name=”Submit” class=”button” value=”<?php echo JText::_(‘BUTTON_LOGIN’) ?>” />[/PHP]it’s enough, why we need the title?
because I can’t write Hebrew in this file. -
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by Phan Gam 13 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum