By Nuno on Thursday, 21 September 2017
Posted in Technical Issues
Replies 7
Likes 0
Views 755
Votes 0
Hello,

After upgrading to Komento Pro, I'm getting a lot of text in English, although I've installed the Language Portuguese (Portugal).

For example, see this page

I've managed to edit the pt-PT.com_komento.ini directly to translate.

I knew something had been hard-coded....

I am not encourage user modify the translation from this language file is because if you accidentally update your pt-PT language from backend, it will override those changes what you translated from this language ini file pt-PT.com_komento.ini .

By the way, how about the "Posting as", what's the tag for this?

This is the language constant for this.

COM_KOMENT_POSTING_AS="Posting as %1$s"
·
Thursday, 21 September 2017 22:00
·
0 Likes
·
0 Votes
·
0 Comments
·
It seems like Komento Portuguese (Portugal) only translated 53%

This is why some of the section is not translated yet, this following is the Komento language constant, you can add these into your template override section.

[gist type="php"]
COM_KOMENT_POSTING_AS_GUEST="Posting comment as a guest. "
COM_KOMENT_LOGIN_LINK="<a href="_QQ_"%1s"_QQ_">Sign up</a> or <a href="_QQ_"%2s"_QQ_">login</a> to your account."
COM_KOMENTO_NO_COMMENTS_POSTED_YET="There are no comments posted here yet"
COM_KOMENTO_QUICK_LOGIN="Quick Login"
COM_KOMENTO_SIGN_UP="Sign Up"
COM_KOMENTO_COMMENTS_ADD_YOURS="Add yours"
[/gist]

You can refer this documentation how to add these translation into your site backend language override section.

https://stackideas.com/docs/komento/administrators/how-tos/how-to-create-language-string-override

Hope this will help.
·
Thursday, 21 September 2017 19:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Nope, it doesn't help.

I've created the overrides, changed the files en-GB.com_komento.ini and pt-PT.com_komento.ini and pt-PT.override.ini

Cleared cache, refreshed page.

But the text is still in English.

This is irritating... It seams the text has been hard coded without language tags...
·
Thursday, 21 September 2017 19:54
·
0 Likes
·
0 Votes
·
0 Comments
·
it seems like it does translated, you can check my attached screenshot below.

But i realised this "Add Yours" we hardcoded into the php file, can you download my attached file and replace into this following file location and see how it goes?
JoomlaFolder/components/com_komento/themes/elegant/structure/default.php

Lastly, it seems like this 'quick login' language constant you haven't add yet.


COM_KOMENTO_QUICK_LOGIN="Quick Login"
·
Thursday, 21 September 2017 20:33
·
0 Likes
·
0 Votes
·
0 Comments
·
I've managed to edit the pt-PT.com_komento.ini directly to translate.

I knew something had been hard-coded....
·
Thursday, 21 September 2017 21:43
·
0 Likes
·
0 Votes
·
0 Comments
·
By the way, how about the "Posting as", what's the tag for this?
·
Thursday, 21 September 2017 21:44
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post