Keyword

[Solved]K2 language not working

More
7 years 9 months ago - 7 years 9 months ago #162930 by max
Replied by max on topic [Solved]K2 language not working
If I did not understand, I had the same problem and solved it by correcting some apathetic errors in the Italian translation

K2_CATEGORY_ADDED_IN_THE_LIST="La categoria \\"_QQ_"CATEGORY_NAME_HERE"_QQ\\" è già nella lista."

K2_CATEGORY_ADDED_IN_THE_LIST="La categoria \\"_QQ_"CATEGORY_NAME_HERE"_QQ_\\" è già nella lista."
Last edit: 7 years 9 months ago by max.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 9 months ago #162949 by Krikor Boghossian
Replied by Krikor Boghossian on topic [Solved]K2 language not working
Max, I really appreciate your feedback :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago - 6 years 6 months ago #169544 by Gianluca
Replied by Gianluca on topic [Solved]K2 language not working
Sorry for replying to this old thread but there are still problems with Italan translations. It's not working because of some text errore like this:

K2_CATEGORY_ADDED_IN_THE_LIST="La categoria \\"_QQ_"CATEGORY_NAME_HERE"_QQ\\" è già nella lista."

I don't know how it should be, just fixed my website removing all the "\\" in the ini file. If you can give me the correct format i will correct it in the transifex.
Thank you

EDIT: also, in the K2 download area, there are both "italian" and "italian (Italy)". Only the second one works because it has the corret tag it-IT, the first one with only "it" just don't work.
Last edit: 6 years 6 months ago by Gianluca.

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #169546 by JoomlaWorks
Replied by JoomlaWorks on topic [Solved]K2 language not working
These teams were probably requested a long time ago. If you can take up on it-IT I can remove the other team. And of course, if you directly edit the language files on Transifex they are published on getk2.org after about an hour.

In any case, the use of _QQ_ is deprecated. Compare the strings with their English equivalents.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 5 months ago #170282 by Uzi
Replied by Uzi on topic [Solved]K2 language not working
Okay, this problem is back for me. After updating to the newest Joomla version 3.9 the core hack doesn't work anymore because the Language.php file works different now. I'm talking about hte core hack from Krikor:

$strings = @parse_ini_file($fileName, true, INI_SCANNER_RAW);

Does anyone know how to fix this issue? I have installed the K2 pack, and the Dutch language pack in Joomla but it doesn't change the language in the K2 component. The previous hack from Krikor worked very well but unfortunately that does not work anymore.

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #170294 by JoomlaWorks
Replied by JoomlaWorks on topic [Solved]K2 language not working
You don't need any hacks. Just make sure that your language strings properly escape quotes. If a string is THIS="That", either use ' inside the string value or if you want to use " simply escape it with \".

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 5 months ago #170296 by Uzi
Replied by Uzi on topic [Solved]K2 language not working
I don't know if you understand but the language files i have installed from the official source. For some strange reason the K2 component does not gets translated. So the core hack which Krikor provided earlier in this topic fixed that issue. It's not the translation files its fault, i don't know why it happens. Can you just provide an hack to make this work again?

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #170314 by JoomlaWorks
Replied by JoomlaWorks on topic [Solved]K2 language not working
There is no bug in the language packs or K2. Setup a demo site with just K2 and the language packs you want. Make sure you also have the related language packs for Joomla as well. Does the issue still occur for you?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 5 months ago #170346 by Uzi
Replied by Uzi on topic [Solved]K2 language not working
Yes this issue still occurs. I don't know why it is but that hack solved my problem. I'm asking if you or someone else has another hack to make it work again?

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #170352 by JoomlaWorks
Replied by JoomlaWorks on topic [Solved]K2 language not working
That was never a hack, it was a weird way to not use escaped double quotes, that's all. Like I said, try to reproduce the errors on a new Joomla site with K2.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 5 months ago #170353 by Uzi
Replied by Uzi on topic [Solved]K2 language not working
I don't understand what you are trying to achieve.. I have installations that currently are not working as is. New installations don't fix that. Hack or no hack, how can I make the Dutch language gets forced to load again, but now as it stands it just displays the English language. Which I don't want. I have a testinstallation where it also doesn't work. I don't care about new installations I care about the current ones.

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #170358 by JoomlaWorks
Replied by JoomlaWorks on topic [Solved]K2 language not working
The point of a clean installation is to verify where the problem is. Did you check if the Dutch language files actually contain anything? Transifex (from which the language files are autogenerated) may fail sometimes and result in empty language packs.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 5 months ago #170360 by Uzi
Replied by Uzi on topic [Solved]K2 language not working
Look. I have tried everything previously, and the previous "hack" did fix the issue. Now unfortunately Joomla changed the libraries code and now the same hack is not useable again. It results in PHP errors.

I am just asking if you or anyone else know a new line of code which make it work again. The language files are fine, it's just something in the installation itself why K2 doesn't want to load in the language. If you don't know I am better off asking it somewhere else. Because I previously had got the solution here I asked it here.

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #170361 by JoomlaWorks
Replied by JoomlaWorks on topic [Solved]K2 language not working
IT IS NOT A K2 THING. This is what I'm saying. The QQ thing was added by Andrew Eddie in Joomla 1.6 for whatever reason (my guess is to THEN make porting J1.5 language files to J1.6 easy).

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 5 months ago #170362 by Uzi
Replied by Uzi on topic [Solved]K2 language not working
Ok thanks. I will go to Joomla forums than.

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #170363 by JoomlaWorks
Replied by JoomlaWorks on topic [Solved]K2 language not working
If you sort it out, please let us know.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 4 months ago #170400 by Uzi
Replied by Uzi on topic [Solved]K2 language not working
Found the solution:

parseIniFile() in libraries/src/Language/LanguageHelper.php.

In this file is the method defined. So you can use the same hack Krikor did to make it work again.

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #170417 by Gabri
Replied by Gabri on topic [Solved]K2 language not working
Regarding italian translation that has the same problem, i confirm that's still related to _QQ_.
I cleaned the traslation file using the english version as model and now it's working fine.
But the one on getk2.org is still corrupted.

File Attachment:

File Name: it-IT.com_k2.zip
File Size:23 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #170420 by JoomlaWorks
Replied by JoomlaWorks on topic [Solved]K2 language not working
Gabri, you may want to consider joining the Italian translation team here www.transifex.com/joomlaworks/k2/ and improving these strings you mentioned as they are no longer present in the source language files of K2.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #170429 by Gabri
Replied by Gabri on topic [Solved]K2 language not working
I just uploaded my updated file to transifex, but i saw that were already other correct translations in the history, for that file. Transifex seems to use an old version with the QQ problem.
Don't know now if it'll use my version for the translation package.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum