Got an issue with translation

Professional Business Joomla template for corporate and business websites suitable for showing stock quotes, up to date news, portfolio management resources or international market data.
GK User
Tue Jul 03, 2012 9:19 pm
I got almost all template translated, k2 included but theres something i cant translate as you can see in attached file, although its translated in language file!

Text: " Make sure you enter the (*) required information where indicated.Basic HTML code is allowed."

And facebook: "Like" "Sign Up to see what your friends like."

Can someone give me a tip on how to handle this?
User avatar
Senior Boarder

teitbite
Wed Jul 04, 2012 12:46 pm
Hi

The part You want to translate is loaded directly from facebook. So the only way is to set a language in parameters. Please edit /html/com_k2/templates/default/item.php and search for a code which is loading this facebook button there You will see a name of language file. Change it to Your language.
User avatar
Moderator

GK User
Wed Jul 04, 2012 2:17 pm
Hi T.,

And what about the Text: " Make sure you enter the (*) required information where indicated.Basic HTML code is allowed." from k2 comments?
User avatar
Senior Boarder

GK User
Wed Jul 04, 2012 2:41 pm
Hi T.,

Facebook button i changed to pt_PT and remains the same! ( in english language )

And what about the Text: " Make sure you enter the (*) required information where indicated.Basic HTML code is allowed." from k2 comments?
User avatar
Senior Boarder

GK User
Wed Jul 04, 2012 4:30 pm
Hi,

That string is in file /language/en-GB/en-GB.com_k2.ini

If you have translated it already, try clearing cache data to check if it affects.
User avatar
Platinum Boarder

GK User
Wed Jul 04, 2012 6:20 pm
Don Lee wrote:Hi,

That string is in file /language/en-GB/en-GB.com_k2.ini


I have translated to /language/pt-PT/pt-PT.com_k2.ini

Don Lee wrote:If you have translated it already, try clearing cache data to check if it affects.


I've done it already and remains the same.

Also facebook "like" button wont translate and i opened item.php file and put language pt-PT and remains in english!
User avatar
Senior Boarder

GK User
Thu Jul 05, 2012 11:58 am
Can you please send me your FTP access via a PM to check further?

Thanks,
User avatar
Platinum Boarder

teitbite
Thu Jul 05, 2012 6:57 pm
Hi

Are You using a standard K2 fb button or a custom code or some plugin for this purpose ?
User avatar
Moderator

GK User
Fri Jul 06, 2012 11:31 am
Hello, I solved like this:

go

templates/gk_finance_business/html/com_k2/templates/default

open

item.php

set your language here:
User avatar
Junior Boarder

GK User
Fri Jul 06, 2012 1:48 pm
So I guess you are using an old version of the template, in the latest one it should use a dynamic variable instead of a fixed value like that, check to upgrade as well.

Cheers,
User avatar
Platinum Boarder

GK User
Fri Jul 06, 2012 4:08 pm
I have the latest version of the template I tried the variable but I have not found. :-(
User avatar
Junior Boarder

GK User
Fri Jul 06, 2012 4:28 pm
Me too, i have the latest version, but i opened item.php, changed it to my language and remains the same as well as the translation problem in k2 comments i mentioned below i can translate as well. Is there any solution?
User avatar
Senior Boarder

teitbite
Fri Jul 06, 2012 4:59 pm
Hi

Yes unfortunately K2 templates are always like that :( Looks like developers didn't want to remove this configuration from K2 settings.
User avatar
Moderator

GK User
Fri Jul 06, 2012 7:08 pm
Hi T,

Theres no solution for this?

P.S.:I have diferent website where i have k2 also and i could translate whithout any problems!
User avatar
Senior Boarder

teitbite
Sat Jul 07, 2012 10:40 am
Hi

The solution should be to change language prefix in /html/com_k2/templates/default/item.php

Is it not working ? Can You send me FTP access ?
User avatar
Moderator

GK User
Sun Jul 15, 2012 6:24 pm
teitbite wrote:Hi

The solution should be to change language prefix in /html/com_k2/templates/default/item.php

Is it not working ? Can You send me FTP access ?


item.php solution does not work!

This week ill send you pm with access to ftp
User avatar
Senior Boarder

teitbite
Mon Jul 16, 2012 3:45 pm
Hi

What was the mail address I should look for ? Searching for "mrmovies" gives me no results :(
User avatar
Moderator

GK User
Thu Aug 16, 2012 10:40 am
I had the same issue, changing en_US in item.php didn't work, but I managed to make it work by changing the same variable in social.php from the leyout/blocks folder. Now the like button is in my own language :P
User avatar
Fresh Boarder

teitbite
Sat Aug 18, 2012 10:37 pm
Pałczyński wrote:I had the same issue, changing en_US in item.php didn't work, but I managed to make it work by changing the same variable in social.php from the leyout/blocks folder. Now the like button is in my own language :P


Hi

What part of the code You have in mind exactly ? Because I think we are talking about 2 different set of buttons and if not I need to know! :)
User avatar
Moderator

GK User
Mon Aug 20, 2012 12:39 pm
teitbite wrote:
Pałczyński wrote:I had the same issue, changing en_US in item.php didn't work, but I managed to make it work by changing the same variable in social.php from the leyout/blocks folder. Now the like button is in my own language :P


Hi

What part of the code You have in mind exactly ? Because I think we are talking about 2 different set of buttons and if not I need to know! :)


It doesnt work for me..im talking about the one that appears between article and space to comment
User avatar
Senior Boarder

teitbite
Tue Aug 21, 2012 11:15 am
Hi

Ok so this is the button loaded by K2 item file. File is located in /html/com_k2/templates/default/item.php

Code: Select all
                              <div class="itemFacebookButton">
                                    <div id="fb-root"></div>
                                    <script type="text/javascript">
                                  (function(d, s, id) {
                                    var js, fjs = d.getElementsByTagName(s)[0];
                                    if (d.getElementById(id)) {return;}
                                    js = d.createElement(s); js.id = id;
                                    js.src = "//connect.facebook.net/en_US/all.js#appId=177111755694317&xfbml=1";
                                    fjs.parentNode.insertBefore(js, fjs);
                                  }(document, 'script', 'facebook-jssdk'));
                          </script>
                                    <div class="fb-like" data-send="false" data-width="260" data-show-faces="true"></div>
                              </div>



As You can see there is "en_US" as default. But maby it's a question to fb developers to learn what the suffix should be. I remember I was able to chenge it here for German language, but I do not know all suffixes.
User avatar
Moderator

GK User
Tue Aug 21, 2012 5:44 pm
Portuguese suffix is pt-PT but doesnt work, remains in english when i change it!
User avatar
Senior Boarder

teitbite
Wed Aug 22, 2012 10:08 am
Hi

Please show me en exact place on an example page. Maby we aren't talking about this fb button after all.
User avatar
Moderator

GK User
Sun Aug 26, 2012 8:43 pm
teitbite wrote:Hi

Please show me en exact place on an example page. Maby we aren't talking about this fb button after all.


Sure. Here it is the arrows show what im unable to translate...
User avatar
Senior Boarder

teitbite
Wed Aug 29, 2012 11:12 am
Hi

Like button is exacly as I thought a part of K2, unfortunately all I was done to change it on different websites is not working here. Please ask K2 developers about this, maby with some newer version this was solved differently.

Texts in comments should be managed in /language folder in [prefix].com_k2.ini
User avatar
Moderator


cron