Keyword

[Solved]K2 language not working

More
1 year 4 months ago - 1 year 4 months ago #162930 by max
max replied the 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: 1 year 4 months ago by max.

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

More
1 year 4 months ago #162949 by Krikor Boghossian
Krikor Boghossian replied the topic: [Solved]K2 language not working
Max, I really appreciate your feedback :)

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

More
2 months 1 week ago - 2 months 1 week ago #169544 by Gianluca
Gianluca replied the 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: 2 months 1 week ago by Gianluca.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 months 1 week ago #169546 by Fotis
Fotis replied the 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.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
1 month 12 hours ago #170282 by Uzi
Uzi replied the 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.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 9 hours ago #170294 by Fotis
Fotis replied the 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 \".


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
1 month 9 hours ago #170296 by Uzi
Uzi replied the 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.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
4 weeks 6 hours ago #170314 by Fotis
Fotis replied the 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?


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
3 weeks 5 days ago #170346 by Uzi
Uzi replied the 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.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
3 weeks 5 days ago #170352 by Fotis
Fotis replied the 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.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white