Translation Bug in tfc.Item.form.php

Please post bugs you have found in tuffclassified theme. If you have fix for that post it too.
Do not post anything else, issue related to third party plugins should not be posted here.
Locked
renas
Starter
Posts: 30
Joined: Sun Jun 14, 2015 5:33 pm

Translation Bug in tfc.Item.form.php

Post by renas »

Hi,

In post form translation files are not used in form selectors as "Select category" when multiple selection.

Example:

From:
if(osc.langs.select_subcategory==undefined) { osc.langs.select_subcategory = '<?php echo osc_esc_js(__('Select subcategory')); ?>'; }

To:
if(osc.langs.select_subcategory==undefined) { osc.langs.select_subcategory = '<?php echo osc_esc_js(__('Select subcategory', 'tuffclassified')); ?>'; }

This applies to all the fields in the form and also to search sidebar.

Example:
<option value=""><?php _e('Select State/Region First', 'tuffclassified'); ?></option>

Already corrected. Let me know and i will send the corrected file.
User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm

Re: Translation Bug in tfc.Item.form.php

Post by tuffadmin »

Thanks for reporting it.
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market
renas
Starter
Posts: 30
Joined: Sun Jun 14, 2015 5:33 pm

Re: Translation Bug in tfc.Item.form.php

Post by renas »

The same is hapening with contact ad form. :(
renas
Starter
Posts: 30
Joined: Sun Jun 14, 2015 5:33 pm

Re: Translation Bug in tfc.Item.form.php

Post by renas »

And also item.php (More/Less)

Code: Select all

var MORE = "... <?php _e('More','tuffclassified'); ?>...",
LESS = " <?php _e('Less','tuffclassified'); ?>...";
renas
Starter
Posts: 30
Joined: Sun Jun 14, 2015 5:33 pm

Re: Translation Bug in tfc.Item.form.php

Post by renas »

And also on user-public-profile.php, please correct this issues in future versions as it will be painfull to correct this on future versions again.

From:

Code: Select all

						<legend><?php _e('Profile'); ?></legend>
						<ul class="list-unstyled">
							<li><img alt='' src="http://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( osc_user_email() ) ) ); ?>?s=200" class="avatar avatar-200 img-rounded" height="200" width="200" />
							</li>
							<li><strong><i class="fa fa-user fa-fw"></i><?php _e(' Full name'); ?>:</strong> <?php echo osc_user_name(); ?></li>
							<li><strong><i class="fa fa-home fa-fw"></i><?php _e(' Address'); ?>:</strong> <?php echo $address; ?></li>
							<li><strong><i class="fa fa-map-marker fa-fw"></i><?php _e(' Location'); ?>:</strong> <?php echo $location; ?></li>
							<li><strong><i class="fa fa-globe fa-fw"></i><?php _e(' Website'); ?>:</strong> <?php echo osc_user_website(); ?></li>
							<li><strong><i class="fa fa-comment fa-fw"></i><?php _e(' User Description'); ?>:</strong> <?php echo osc_user_info(); ?></li>
						</ul>
					</div>
					<div id="description" class="latest_ads">
						<legend><?php echo osc_user_name(); ?>'s <?php _e('Latest items'); ?></legend>
						<?php $class = "even" ; ?>
						<?php while(osc_has_items()) { include WebThemes::newInstance()->getCurrentThemePath().'ad-loop.php'; ?>
						<?php }?>			   
					</div>
To:

Code: Select all

					<div class="description">
						<legend><?php _e('Profile', 'tuffclassified'); ?></legend>
						<ul class="list-unstyled">
							<li><img alt='' src="http://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( osc_user_email() ) ) ); ?>?s=200" class="avatar avatar-200 img-rounded" height="200" width="200" />
							</li>
							<li><strong><i class="fa fa-user fa-fw"></i><?php _e(' Name', 'tuffclassified'); ?>:</strong> <?php echo osc_user_name(); ?></li>
							<li><strong><i class="fa fa-home fa-fw"></i><?php _e(' Address', 'tuffclassified'); ?>:</strong> <?php echo $address; ?></li>
							<li><strong><i class="fa fa-map-marker fa-fw"></i><?php _e(' Location', 'tuffclassified'); ?>:</strong> <?php echo $location; ?></li>
							<li><strong><i class="fa fa-globe fa-fw"></i><?php _e(' Website', 'tuffclassified'); ?>:</strong> <?php echo osc_user_website(); ?></li>
							<li><strong><i class="fa fa-comment fa-fw"></i><?php _e(' User Description', 'tuffclassified'); ?>:</strong> <?php echo osc_user_info(); ?></li>
						</ul>
					</div>
					<div id="description" class="latest_ads">
						<legend><?php echo osc_user_name(); ?>'s <?php _e('Latest items', 'tuffclassified'); ?></legend>
						<?php $class = "even" ; ?>
						<?php while(osc_has_items()) { include WebThemes::newInstance()->getCurrentThemePath().'ad-loop.php'; ?>
						<?php }?>			   
					</div>
Locked