-
AuthorPosts
-
May 20, 2011 at 5:26 pm #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
himangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
May 21, 2011 at 8:40 am #392211Hi,
What are using for translation? Can you provide site admin access and ftp access via PM?
May 21, 2011 at 3:03 pm #392243Hi 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
Phill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
May 21, 2011 at 9:12 pm #392274Currently I am unable to view your site. Please can you put it back online?
May 22, 2011 at 6:10 pm #392349Here 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
himangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
May 23, 2011 at 9:24 am #392417Hi,
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
Phill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
May 23, 2011 at 2:37 pm #392464I too have seen the same. Did you recieve my PM?
May 25, 2011 at 7:29 am #392771Thanks 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
himangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
May 25, 2011 at 8:33 am #392786Hi 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
-
May 25, 2011 at 12:47 pm #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
Phill Moderator
Phill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
May 25, 2011 at 1:06 pm #392854Hmm, 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.
May 26, 2011 at 5:27 pm #393047Thanks 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
AuthorPostsViewing 12 posts - 1 through 12 (of 12 total)This topic contains 12 replies, has 3 voices, and was last updated by
fred08 13 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum