Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • fred08 Friend
    #164254

    Ja Nickel mod_login in pop up window

    Hi,
    I’m using Ja Nickel with french languague. The register link which appears in on the pop up menu is not well translated :
    http://www.bi.undp.org/emploi/index….&task=register but it is ok when creating an account from the login menu: http://www.bi.undp.org/emploi/index….&view=register. I mean when I click on register (pop up menu that appears with wrong translation).

    Can you tell me please which file to modify or how to redirect the register (pop up menu option) to the right translation?

    I look forward to here from you soon!

    Fredy

    himangi Friend
    #392211

    Hi,

    What are using for translation? Can you provide site admin access and ftp access via PM?

    fred08 Friend
    #392243

    Hi Himangi,
    I’m using “fr-FR_joomla_lang_full.1.5.20.zip” . Please just let which file contain the pop up register link : /index.php?option=com_user&task=register then I can redirect it to this link: /index.php?option=com_user&view=register where the translation is correct. Please see attached the french translation I’m using.

    Thanks


    Phill Moderator
    #392274

    Currently I am unable to view your site. Please can you put it back online?

    fred08 Friend
    #392349

    Here is the link: http://tinyurl.com/3h556yh
    Please just let which file contain the pop up register link : /index.php?option=com_user&task=register then I can redirect it to this link: /index.php?option=com_user&view=register where the translation is correct. Please see attached the french translation I’m using.

    Thanks

    himangi Friend
    #392417

    Hi,

    I see the same translation with /index.php?option=com_user&task=register & /index.php?option=com_user&view=register links. Can you tell if the problem is solved and if it is how did you solve it?

    Phill Moderator
    #392464

    I too have seen the same. Did you recieve my PM?

    fred08 Friend
    #392771

    Thanks for your reply. The problem is not solved.
    At /index.php?option=com_user&task=register, I have:
    Name instead of Nom (french translation)
    Envoyer instead of Email
    Verify Password instead of ‘Vérification du mot de passe: ‘ (french translation)
    ‘Fields marked with an asterisk (*) are required’ instead of ‘ Les champs signalés par un astérisque (*) sont obligatoires. ‘ (french translation)

    I noticed also that, in the home page I have ‘Envoyer’ instead of ‘Email ‘ and on the other page, it is ok.

    The french translation is ok, the problem is from the template.

    Regards,

    himangi Friend
    #392786

    Hi fred08,

    I am sorry, I still see same translation on view-register and task=register links.. Please see the attached screenshots of both the pages


    1. Screenshot
    2. Screenshot-1
    fred08 Friend
    #392849

    Thanks Himangi,
    Please find attached the sreen shot of the error in the popup:
    Click on ‘Créer un compte’, and you can see what I mean in the popup menu.

    Thank


    1. screen_popup
    Phill Moderator
    #392854

    Hmm, it does appear that a lot of these strings are not translated. Look in templates>ja_nickel>html>mod_login>default.php and you will see the following code.


    <?php // no direct access
    defined('_JEXEC') or die('Restricted access'); ?>
    <?php if($type == 'logout') : ?>
    <?php if ($params->get('greeting')) : ?>
    <li><a href="<?php echo JRoute::_("index.php?option=com_user&task=logout&return=".base64_encode('index.php'));?>" class="logout-switch"><?php echo JText::sprintf( 'HINAME', $user->get('name') ); ?>
    <?php endif; ?>
    <?php echo JText::_( 'BUTTON_LOGOUT'); ?></a></li>
    <?php else : ?>
    <li>
    <a class="login-switch" href="<?php echo JRoute::_('index.php?option=com_user&view=login');?>" onclick="this.blur();showBox('ja-login','mod_login_username',this);return false;" title="<?php JText::_('Login');?>">Login</a>

    <!--LOFIN FORM content-->
    <div id="ja-login" style="width:450px;">
    <?php if(JPluginHelper::isEnabled('authentication', 'openid')) : ?>
    <?php JHTML::_('script', 'openid.js'); ?>
    <?php endif; ?>
    <form action="<?php echo JRoute::_( 'index.php', true, $params->get('usesecure')); ?>" method="post" name="login" id="login" >
    <?php echo $params->get('pretext'); ?>

    <label for="mod_login_username" class="ja-login-user">
    <span><?php echo JText::_('Username') ?>: </span>
    <input name="username" id="mod_login_username" type="text" class="inputbox" alt="username" size="20" />
    </label>

    <label for="mod_login_password" class="ja-login-password">
    <span><?php echo JText::_('Password') ?>: </span>
    <input type="password" id="mod_login_password" name="passwd" class="inputbox" size="20" alt="password" />
    </label>

    <label for="mod_login_remember">
    <input type="hidden" name="remember" id="mod_login_remember" class="inputbox" value="yes" alt="Remember Me" />
    </label>
    <input type="submit" name="Submit" class="button" value="Login" />
    <br />
    <div class="ja-login-links clearfix">
    <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=reset' ); ?>">
    <?php echo JText::_('FORGOT_YOUR_PASSWORD'); ?></a>
    <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=remind' ); ?>">
    <?php echo JText::_('FORGOT_YOUR_USERNAME'); ?></a>
    <?php
    $usersConfig = &JComponentHelper::getParams( 'com_users' );
    if ($usersConfig->get('allowUserRegistration')) : ?>
    <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=register' ); ?>">
    <?php echo JText::_('REGISTER'); ?></a>
    <?php endif; ?>
    </div>
    <?php echo $params->get('posttext'); ?>

    <input type="hidden" name="option" value="com_user" />
    <input type="hidden" name="task" value="login" />
    <input type="hidden" name="return" value="<?php echo $return; ?>" />
    <?php echo JHTML::_( 'form.token' ); ?>
    </form>
    </div>

    </li>
    <?php
    $option = JRequest::getCmd('option');
    $task = JRequest::getCmd('task');
    if($option!='com_user' && $task != 'register') { ?>
    <li>
    <a class="register-switch" href="<?php echo JRoute::_("index.php?option=com_user&task=register");?>" onclick="this.blur();showBox('ja-register','namemsg',this);return false;" >
    <?php echo JText::_('REGISTER');?>
    </a>
    <!--LOFIN FORM content-->
    <script type="text/javascript" src="<?php echo JURI::base();?>media/system/js/validate.js"></script>
    <div id="ja-register" style="width:370px;">
    <script type="text/javascript">
    <!--
    Window.onDomReady(function(){
    document.formvalidator.setHandler('passverify', function (value) { return ($('password').value == value); } );
    });
    // -->
    </script>

    <?php
    if(isset($this->message)){
    $this->display('message');
    }
    ?>

    <form action="<?php echo JRoute::_( 'index.php?option=com_user' ); ?>" method="post" id="josForm" name="josForm" class="form-validate">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane">
    <tr>
    <td width="30%" height="40">
    <label id="namemsg" for="name">
    <?php echo JText::_( 'Name' ); ?>:
    </label>
    </td>
    <td>
    <input type="text" name="name" id="name" size="40" value="" class="inputbox required" maxlength="50" /> *
    </td>
    </tr>
    <tr>
    <td height="40">
    <label id="usernamemsg" for="username">
    <?php echo JText::_( 'Username' ); ?>:
    </label>
    </td>
    <td>
    <input type="text" id="username" name="username" size="40" value="" class="inputbox required validate-username" maxlength="25" /> *
    </td>
    </tr>
    <tr>
    <td height="40">
    <label id="emailmsg" for="email">
    <?php echo JText::_( 'Email' ); ?>:
    </label>
    </td>
    <td>
    <input type="text" id="email" name="email" size="40" value="" class="inputbox required validate-email" maxlength="100" /> *
    </td>
    </tr>
    <tr>
    <td height="40">
    <label id="pwmsg" for="password">
    <?php echo JText::_( 'Password' ); ?>:
    </label>
    </td>
    <td>
    <input class="inputbox required validate-password" type="password" id="password" name="password" size="40" value="" /> *
    </td>
    </tr>
    <tr>
    <td height="40">
    <label id="pw2msg" for="password2">
    <?php echo JText::_( 'Verify Password' ); ?>:
    </label>
    </td>
    <td>
    <input class="inputbox required validate-passverify" type="password" id="password2" name="password2" size="40" value="" /> *
    </td>
    </tr>
    <tr>
    <td colspan="2" height="40">
    <?php echo "Fields marked with an asterisk (*) are required."; ?>
    </td>
    </tr>
    </table>
    <button class="button validate" type="submit"><?php echo JText::_('Register'); ?></button>
    <input type="hidden" name="task" value="register_save" />
    <input type="hidden" name="id" value="0" />
    <input type="hidden" name="gid" value="0" />
    <?php echo JHTML::_( 'form.token' ); ?>
    </form>
    </div>
    </li>
    <?php } ?>
    <!--LOFIN FORM content-->
    <?php endif; ?>

    Please replace all the code in that file with below.


    <?php // no direct access
    defined('_JEXEC') or die('Restricted access'); ?>
    <?php if($type == 'logout') : ?>
    <?php if ($params->get('greeting')) : ?>
    <li><a href="<?php echo JRoute::_("index.php?option=com_user&task=logout&return=".base64_encode('index.php'));?>" class="logout-switch"><?php echo JText::sprintf( 'HINAME', $user->get('name') ); ?>
    <?php endif; ?>
    <?php echo JText::_( 'BUTTON_LOGOUT'); ?></a></li>
    <?php else : ?>
    <li>
    <a class="login-switch" href="<?php echo JRoute::_('index.php?option=com_user&view=login');?>" onclick="this.blur();showBox('ja-login','mod_login_username',this);return false;" title="<?php JText::_('LOGIN');?>">Login</a>

    <!--LOFIN FORM content-->
    <div id="ja-login" style="width:450px;">
    <?php if(JPluginHelper::isEnabled('authentication', 'openid')) : ?>
    <?php JHTML::_('script', 'openid.js'); ?>
    <?php endif; ?>
    <form action="<?php echo JRoute::_( 'index.php', true, $params->get('usesecure')); ?>" method="post" name="login" id="login" >
    <?php echo $params->get('pretext'); ?>

    <label for="mod_login_username" class="ja-login-user">
    <span><?php echo JText::_('USERNAME') ?>: </span>
    <input name="username" id="mod_login_username" type="text" class="inputbox" alt="username" size="20" />
    </label>

    <label for="mod_login_password" class="ja-login-password">
    <span><?php echo JText::_('PASSWORD') ?>: </span>
    <input type="password" id="mod_login_password" name="passwd" class="inputbox" size="20" alt="password" />
    </label>

    <label for="mod_login_remember">
    <input type="hidden" name="remember" id="mod_login_remember" class="inputbox" value="yes" alt="Remember Me" />
    </label>
    <input type="submit" name="Submit" class="button" value="Login" />
    <br />
    <div class="ja-login-links clearfix">
    <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=reset' ); ?>">
    <?php echo JText::_('FORGOT_YOUR_PASSWORD'); ?></a>
    <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=remind' ); ?>">
    <?php echo JText::_('FORGOT_YOUR_USERNAME'); ?></a>
    <?php
    $usersConfig = &JComponentHelper::getParams( 'com_users' );
    if ($usersConfig->get('allowUserRegistration')) : ?>
    <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=register' ); ?>">
    <?php echo JText::_('REGISTER'); ?></a>
    <?php endif; ?>
    </div>
    <?php echo $params->get('posttext'); ?>

    <input type="hidden" name="option" value="com_user" />
    <input type="hidden" name="task" value="login" />
    <input type="hidden" name="return" value="<?php echo $return; ?>" />
    <?php echo JHTML::_( 'form.token' ); ?>
    </form>
    </div>

    </li>
    <?php
    $option = JRequest::getCmd('option');
    $task = JRequest::getCmd('task');
    if($option!='com_user' && $task != 'register') { ?>
    <li>
    <a class="register-switch" href="<?php echo JRoute::_("index.php?option=com_user&task=register");?>" onclick="this.blur();showBox('ja-register','namemsg',this);return false;" >
    <?php echo JText::_('REGISTER');?>
    </a>
    <!--LOFIN FORM content-->
    <script type="text/javascript" src="<?php echo JURI::base();?>media/system/js/validate.js"></script>
    <div id="ja-register" style="width:370px;">
    <script type="text/javascript">
    <!--
    Window.onDomReady(function(){
    document.formvalidator.setHandler('passverify', function (value) { return ($('password').value == value); } );
    });
    // -->
    </script>

    <?php
    if(isset($this->message)){
    $this->display('message');
    }
    ?>

    <form action="<?php echo JRoute::_( 'index.php?option=com_user' ); ?>" method="post" id="josForm" name="josForm" class="form-validate">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane">
    <tr>
    <td width="30%" height="40">
    <label id="namemsg" for="name">
    <?php echo JText::_( 'NAME' ); ?>:
    </label>
    </td>
    <td>
    <input type="text" name="name" id="name" size="40" value="" class="inputbox required" maxlength="50" /> *
    </td>
    </tr>
    <tr>
    <td height="40">
    <label id="usernamemsg" for="username">
    <?php echo JText::_( 'USERNAME' ); ?>:
    </label>
    </td>
    <td>
    <input type="text" id="username" name="username" size="40" value="" class="inputbox required validate-username" maxlength="25" /> *
    </td>
    </tr>
    <tr>
    <td height="40">
    <label id="emailmsg" for="email">
    <?php echo JText::_( 'EMAIL' ); ?>:
    </label>
    </td>
    <td>
    <input type="text" id="email" name="email" size="40" value="" class="inputbox required validate-email" maxlength="100" /> *
    </td>
    </tr>
    <tr>
    <td height="40">
    <label id="pwmsg" for="password">
    <?php echo JText::_( 'PASSWORD' ); ?>:
    </label>
    </td>
    <td>
    <input class="inputbox required validate-password" type="password" id="password" name="password" size="40" value="" /> *
    </td>
    </tr>
    <tr>
    <td height="40">
    <label id="pw2msg" for="password2">
    <?php echo JText::_( 'VERIFY PASSWORD' ); ?>:
    </label>
    </td>
    <td>
    <input class="inputbox required validate-passverify" type="password" id="password2" name="password2" size="40" value="" /> *
    </td>
    </tr>
    <tr>
    <td colspan="2" height="40">
    <?php echo "Fields marked with an asterisk (*) are required."; ?>
    </td>
    </tr>
    </table>
    <button class="button validate" type="submit"><?php echo JText::_('Register'); ?></button>
    <input type="hidden" name="task" value="register_save" />
    <input type="hidden" name="id" value="0" />
    <input type="hidden" name="gid" value="0" />
    <?php echo JHTML::_( 'form.token' ); ?>
    </form>
    </div>
    </li>
    <?php } ?>
    <!--LOFIN FORM content-->
    <?php endif; ?>

    If that works we will then have to add a language string for <blockquote>
    <?php echo “Fields marked with an asterisk (*) are required.”; ?>
    </blockquote>

    As no JText construct has been added for that.

    fred08 Friend
    #393047

    Thanks Hemel, it does not work but I replaced english words with french ones and it is ok now:
    see code below:
    <?php echo JText::_( ‘Nom’ ); ?>:
    <?php echo JText::_( ‘Vérification du mot de passe’ ); ?>:
    <?php echo “Les champs signalés par un astérisque (*) sont obligatoires.”; ?>

    I test it and it is ok.

    Regards

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

This topic contains 12 replies, has 3 voices, and was last updated by  fred08 13 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum