Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • dhyamin Friend
    #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 Friend
    #368737

    Hi,
    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 helps

    dhyamin Friend
    #368847

    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..

    Phan Gam Friend
    #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!

    dhyamin Friend
    #369241

    thanks 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.

    Phan Gam Friend
    #369251

    Hi,
    Title property for button’s tooltip, when you hover on Login button. That is not necessary if you dont want button tooltip

    Regard!

Viewing 6 posts - 1 through 6 (of 6 total)

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