Welcome, Guest
Username: Password: Remember me

TOPIC: Change the label Tweetnij to Tweet

Change the label Tweetnij to Tweet 4 years 8 months ago #379

  • webarts
  • webarts's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 3
  • Karma: 0
Hello,

first of all thank you for the great plug in

could you tell me please how can i change the label on the Tweet button from Tweetnij to Tweet ?

thank you
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: Change the label Tweetnij to Tweet 4 years 8 months ago #383

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 910
  • Thank you received: 568
  • Karma: 25
webarts wrote:
Hello,

first of all thank you for the great plug in

could you tell me please how can i change the label on the Tweet button from Tweetnij to Tweet ?

thank you

Hi webarts,
Did you edit the plugin file?
You can find the code as this in /plugins/content/otsocialshare/otsocialshare.php:
if($this->params->get('twitter')==1){
  ...
  $html .= '<a href="http://twitter.com/share" class="twitter-share-button" style="width: '.$widthweet.'px;" data-url="'.$link.'" data-count="'.$twitter_type.'" >Twitter</a>...'; 
  ...
}else{
  $html .='';}

And you can change the text in
<a></a>
tag to any word you want.

Thanks for using our products!
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
Last Edit: 4 years 8 months ago by linh_omg.
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: Change the label Tweetnij to Tweet 4 years 8 months ago #434

  • webarts
  • webarts's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 3
  • Karma: 0
Thank you for your respond.


the code it looks OK.. between the <a> tags it writes "Twitter" but in the frond end as you can see from the screenshot attached displays the word "Tweetnij"

pls advice

thank you for the great extension
Attachments:
  • Attachment This image is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: Change the label Tweetnij to Tweet 4 years 8 months ago #440

  • webarts
  • webarts's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 3
  • Karma: 0
i find the solution here

getk2.org/community/New-to-K2-Ask-here-f...ial-buttons-language



Go to template name folder > layouts
change in all the php files (default.php, android.php etc) this:

make lang="pl" to lang="en"
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka
Time to create page: 0.161 seconds