Forum
Welcome, Guest
Please Login to access forum.
Re:How to force the plugin to use a diferent language (1 viewing) 
Go to bottom
TOPIC: Re:How to force the plugin to use a diferent language
#665
Mac
Fresh Boarder
Posts: 4
User Offline
How to force the plugin to use a diferent language Karma: 0  
Hi,

This is a wonderful joomla plugin but I need to select a different language (not the joomla language) for all the plugin features .

How can I force the plugin to use a different language ?

Thanks a lot
 
Logged Logged  
  The administrator has disabled public write access.
#666
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:How to force the plugin to use a diferent language Karma: 79  
Hello,

you need to customize the plugin php file to set a specific language ignoring the Joomla config.

If you have some skills i can give you some hints.

Best regards

John
 
Logged Logged  
  The administrator has disabled public write access.
#673
Mac
Fresh Boarder
Posts: 4
User Offline
Re:How to force the plugin to use a diferent language Karma: 0  
Hi John,

I already take a look in the code on fastsocialshare.php and I see that in line 35 you set the variable $langStartTag to 'en' but somewhere in the code it changes to the joomla language code.

I need to force the plugin to use portuguese pt-PT not the brazilian portuguese.

I do appreciate some tips to locate the code to do it.

Is it possible to move the open tags to come out just bellow the other metatags ?

Thanks in advance
 
Logged Logged  
  The administrator has disabled public write access.
#674
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:How to force the plugin to use a diferent language Karma: 79  
You should look at line 471, the constructor of the class

Change lines:
Code:

$this->langTag = str_replace("-", "_", $locale); $this->langStartTag = @array_shift(explode('-', $locale));
to
Code:

$this->langTag = 'pt_PT'; $this->langStartTag = 'pt';
 
Logged Logged  
  The administrator has disabled public write access.
#678
Mac
Fresh Boarder
Posts: 4
User Offline
Re:How to force the plugin to use a diferent language Karma: 0  
Hi,

That code works but it seams it just make changes for Like not for Share and google plus.

Is there any other place to change this ?

Thanks
 
Logged Logged  
  The administrator has disabled public write access.
#679
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:How to force the plugin to use a diferent language Karma: 79  
Hi,

the 'Share' button is at line 165 and it's not affected by lang tag.

All the other buttons will be affected by the lang tag

Regards
 
Logged Logged  
  The administrator has disabled public write access.
Go to top