By gökhan on Sunday, 05 January 2014
Posted in Technical Issues
Replies 6
Likes 0
Views 727
Votes 0
Hi,

I found something on registration page. I disabled language folders also. Please look at screenshots attached
Also this one attached
·
Sunday, 05 January 2014 00:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

The months are actually being translated in Joomla's language file because we rely on Joomla's language file to translate the month. You can find it in /language/en-GB/en-GB.ini . As for the "Male" value, you can actually translate it in the file /administrator/language/en-GB/en-GB.plg_fields_user_gender.ini
·
Sunday, 05 January 2014 01:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, I have already did for both. But it didnt worked so why i asked. Check screenshot attached.

You forget to adding a tranlating string for "Month" in your php file. I dont think it comes from joomla language file. Take a look at please in en-GB.ini


And i already translated male, female strings
·
Sunday, 05 January 2014 04:43
·
0 Likes
·
0 Votes
·
0 Comments
·
in apps/user/birthday/default/form.day.php

defined( '_JEXEC' ) or die( 'Unauthorized Access' );
?>
<select data-field-birthday-day name="<?php echo $inputName; ?>[day]" style="width: 65px;">
<option value=""></option>


change it to

defined( '_JEXEC' ) or die( 'Unauthorized Access' );
?>
<select data-field-birthday-day name="<?php echo $inputName; ?>[day]" style="width: 65px;">
<option value=""><?php echo JText::_( 'Day' ); ?></option>





AND form.year php


<select data-field-birthday-year name="<?php echo $inputName; ?>[year]" style="width: 80px;">
<option value=""></option>


change to


<select data-field-birthday-year name="<?php echo $inputName; ?>[year]" style="width: 80px;">
<option value=""><?php echo JText::_( 'Year' ); ?></option>





And form.month.php


<select name="<?php echo $inputName;?>[month]" data-field-birthday-month style="width:90px;">
<option value="" <?php echo !$month ? ' selected="selected"' : '';?>>
</option>



change to


 <select name="<?php echo $inputName;?>[month]" data-field-birthday-month style="width:90px;">
<option value="" <?php echo !$month ? ' selected="selected"' : '';?>>
<?php echo JText::_( 'Month' ); ?>
</option>
·
Sunday, 05 January 2014 08:45
·
0 Likes
·
0 Votes
·
0 Comments
·
in apps/usr/gender/default/widgets/display.php

defined( '_JEXEC' ) or die( 'Unauthorized Access' );
?>
<i class="ies-small mr-5 ies-<?php echo $value == 1 ? 'male' : 'female';?>"></i>
<?php if( $value == 1 ){ ?>
<span><?php echo JText::_( 'Male' ); ?></span>
<?php } else { ?>
<span><?php echo JText::_( 'Female' ); ?></span>
<?php } ?>


change to



defined( '_JEXEC' ) or die( 'Unauthorized Access' );
?>
<i class="ies-small mr-5 ies-<?php echo $value == 1 ? 'male' : 'female';?>"></i>
<?php if( $value == 1 ){
echo JText::_( 'PLG_FIELDS_GENDER_DISPLAY_MALE' ); ?>
<?php } else { ?>
<?php echo JText::_( 'PLG_FIELDS_GENDER_DISPLAY_FEMALE'); ?>
<?php } ?>
·
Sunday, 05 January 2014 09:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Thanks for the heads up.
·
Sunday, 05 January 2014 12:12
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post