Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

Wrong language strings in Social Counter
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Wrong language strings in Social Counter

Wrong language strings in Social Counter 7 years, 3 months ago #33900

I have noticed that in Social Couter module on SJ Expnews we have language strings which are wrong
For example in demo We have
Facebook icon then number of likes and text "Likes" but after that there shouldnt say "Likes" but "Like"
In php code you have LIKE_LABEL and LIKES_LABEL but it doesn't pull language strings.
Also other networks supported in module have the same issue
See image for clarification
www.mediafire.com/view/8d9j3asbr17al8s/smart.png

Fix the damn thing either template either Social media counter module so I can download it....
Last Edit: 7 years, 3 months ago by CyrusXxX.

Re: Wrong language strings in Social Counter 7 years, 3 months ago #33921

Dear CyrusXxX

You can translate for your language in our module for the label that you want: prntscr.com/g9wyz7
eg \modules\mod_sj_social_media_counter\language\en-GB\en-GB.mod_sj_social_media_counter.ini

thanks
The following user(s) said Thank You: CyrusXxX

Re: Wrong language strings in Social Counter 7 years, 3 months ago #33942

It doesn't work I have tried that already.
I am using SJ ExpNews template go and try to translate it yourself on your own demo:
demo.smartaddons.com/#sj-expnews
You have this strins in language files concerning facebook:
LIKE_LABEL = "Like"
LIKES_LABEL = "Likes"

Module displays translation on frontend only from string LIKES_LABEL on both places, but not from LIKE_LABEL .
So if I put Instead of "Likes" word "Smartaddons" it will be displayed on both places.
Try it yourself and see..

Note same hapens with other:
FOLLOWER_LABEL = "Follower"
FOLLOWERS_LABEL = "Followers"
SUBSCRIBER_LABEL = "Subscriber"
SUBSCRIBERS_LABEL = "Subscribers"
Last Edit: 7 years, 3 months ago by CyrusXxX.

Re: Wrong language strings in Social Counter 7 years, 3 months ago #33944

I was right it was template issue with template override for module..
Here is how to fix this:
[ NOTE: This is only for SJ ExpNews template ]
1. Open templates/sj_expnews/html/mod_sj_social_media_counter/default.php
Find these lines :
<?php echo $list['count_facebook_like'] > 1 ? JText::_('LIKE_LABEL') : JText::_('LIKE_LABEL'); ?>
<?php echo $list['count_followers_twitter'] > 1 ? JText::_('FOLLOWERS_LABEL') : JText::_('FOLLOWER_LABEL'); ?>
<?php echo $list['count_followers_linkedin'] > 1 ? JText::_('FOLLOWERS_LABEL') : JText::_('FOLLOWER_LABEL'); ?>
<?php echo $list['count_followers_dribbble'] > 1 ? JText::_('FOLLOWERS_LABEL') : JText::_('FOLLOWER_LABEL'); ?>
<?php echo $list['count_subscribers_youtube'] > 1 ? JText::_('SUBSCRIBERS_LABEL') : JText::_('SUBSCRIBER_LABEL'); ?>
<?php echo $list['count_followers_soundcloud'] > 1 ? JText::_('FOLLOWERS_LABEL') : JText::_('FOLLOWER_LABEL') ?>
<?php echo $list['count_followers_vimeo'] > 1 ? JText::_('FOLLOWERS_LABEL') : JText::_('FOLLOWER_LABEL'); ?>
<?php echo $list['count_followers_gplus'] > 1 ? JText::_('FOLLOWERS_LABEL') : JText::_('FOLLOWER_LABEL'); ?>


and change them to:

<?php echo $list['count_facebook_like'] > 2 ? JText::_('LIKE_LABEL') : JText::_('LIKE_LABEL'); ?>
<?php echo $list['count_followers_twitter'] > 2 ? JText::_('FOLLOWERS_LABEL') : JText::_('FOLLOWER_LABEL'); ?>
<?php echo $list['count_followers_linkedin'] > 2 ? JText::_('FOLLOWERS_LABEL') : JText::_('FOLLOWER_LABEL'); ?>
<?php echo $list['count_followers_dribbble'] > 2 ? JText::_('FOLLOWERS_LABEL') : JText::_('FOLLOWER_LABEL'); ?>
<?php echo $list['count_subscribers_youtube'] > 2 ? JText::_('SUBSCRIBERS_LABEL') : JText::_('SUBSCRIBER_LABEL'); ?>
<?php echo $list['count_followers_soundcloud'] > 2 ? JText::_('FOLLOWERS_LABEL') : JText::_('FOLLOWER_LABEL') ?>
<?php echo $list['count_followers_vimeo'] > 2 ? JText::_('FOLLOWERS_LABEL') : JText::_('FOLLOWER_LABEL'); ?>
<?php echo $list['count_followers_gplus'] > 2 ? JText::_('FOLLOWERS_LABEL') : JText::_('FOLLOWER_LABEL'); ?>


Smartaddons developers you should include this fix into your template package because this override is fixing problem with social counter module language strings.

Now it is translated properly.
www.mediafire.com/view/0b9k41dgay41png/popravka.png

P.S. when I am done your template on my site will be bug free You should hire me to be your tester
Also Social Counter module is not compatible with latest facebook api 2.9 and 2.10 , bare in mind that anyone using apps with this version will not be able to use this module with facebook. Luckly I have one older app on my facebook developer account
And thank you anhqn.
Last Edit: 7 years, 3 months ago by CyrusXxX.

Re: Wrong language strings in Social Counter 7 years, 3 months ago #33971

Dear CyrusXxX

Thanks for your comment.

thanks

Re: Wrong language strings in Social Counter 7 years, 3 months ago #33974

anhqn wrote:
Dear CyrusXxX

Thanks for your comment.

thanks

You are welcome anhqn
  • Page:
  • 1
  • 2
Time to create page: 0.35 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes