Keyword

Language files not loading correctly

  • Keeper91
  • Keeper91's Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago #57892 by Keeper91
Language files not loading correctly was created by Keeper91
Hi,

I just updated from K2 v2.4.1 to new v2.5.0 . Then I installed the spanish language files, cause my site is spanish. On the backend it works and all the words are translated, but in the fronted the words are still in english. I took a look at the file on "/language/es-ES/es-ES.com_k2.ini" and everything seems ok, the words are translated. I also modified the english file en-EN.com_k2.ini, but the changes there are also not applied. Whats wrong here?? Please help me

Thank you! ;-)

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

More
12 years 11 months ago #57893 by Jiliko.net
Replied by Jiliko.net on topic Re: Language files not loading correctly
Hi,

May be it's due to a bad character in the translation file or an unclosed "

I had this problem with the french one...

Olivier

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

  • Keeper91
  • Keeper91's Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago #57894 by Keeper91
Replied by Keeper91 on topic Re: Language files not loading correctly
But why is it showing the text in English and not something like "K2_TITLE" OR "K2_COMMENTS"?? Where do the texts come from?? Not from "/language/en-EN/en-EN.com_k2.ini", because when I change some text, there's no change on the frontpage, and when I delete the language file, also any change. And the text obviously doesnt come from es_ES (spanish) language file.

What do you mean with unclosed "?? In wich code file??

Thank you

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

  • Keeper91
  • Keeper91's Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago - 12 years 11 months ago #57895 by Keeper91
Replied by Keeper91 on topic Re: Language files not loading correctly
I found the problem!!!!

It was in the templates files. They were for the version 2.4.1 and the code for the language parameters was different. When I add the new files, for example "item.php" from v2.5.0, the language files work and the texts are loaded in Spanish.

But now I have to reedit all the templates files and make my own templates from the start point, cuase I changed the way the object were displayed...

I see that like a BUG, because now you have to change the code of every "old version" template you had made and addapt it to the new version.

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

More
12 years 11 months ago #57896 by Jiliko.net
Replied by Jiliko.net on topic Re: Language files not loading correctly
Hi,

For me, it's not a BUG as what you have to adapt to the new structure is YOUR customizations, i mean your template overrides.

This can not be automatic because each customization is different.

It's not due to K2 itself, but to the new way translations are handled in J!1.7.

Olivier

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

More
12 years 11 months ago #57897 by Ígor
Replied by Ígor on topic Re: Language files not loading correctly
Well, first sorry about my english!

I solve this problem doing this:

I replaced the folder "templates" in "templates/MY_TEMPLATE/html/com_k2/" with the folder "templates" from "components/com_k2/".

:)

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

More
12 years 11 months ago #57898 by Jiliko.net
Replied by Jiliko.net on topic Re: Language files not loading correctly
Yes,

It's the solution if you have no customizations...or not many

Olivier

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

  • Pierre de Mûelenaere
  • Pierre de Mûelenaere's Avatar
  • Offline
  • New Member
More
12 years 9 months ago #57899 by Pierre de Mûelenaere
Replied by Pierre de Mûelenaere on topic Re: Language files not loading correctly
I have that problem : ive installed 2.5.4 and everywhere on the website (front and back) K2 fields are like this : "K2_TITLE" OR "K2_COMMENTS" K2_FEATURED etc. its not calling language files. what should i do ?

thanks.

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

More
11 years 1 day ago #57900 by Dino Fratelli
Replied by Dino Fratelli on topic Re: Language files not loading correctly
Me too! Same error... I haven't made any customization, nor had the folder com_k2 inside the MY_TEMPLATE/html folder. Any idea?

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


Powered by Kunena Forum