- Posts: 140
COMMUNITY FORUM
[Solved]K2 language not working
- Uzi
-
Topic Author
- Offline
- Premium Member
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Please Log in or Create an account to join the conversation.
- Uzi
-
Topic Author
- Offline
- Premium Member
- Posts: 140
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.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Please Log in or Create an account to join the conversation.
- Uzi
-
Topic Author
- Offline
- Premium Member
- Posts: 140
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Please Log in or Create an account to join the conversation.
- Uzi
-
Topic Author
- Offline
- Premium Member
- Posts: 140
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.
- Gabri
-
- Offline
- New Member
- Posts: 2
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.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Please Log in or Create an account to join the conversation.
- Gabri
-
- Offline
- New Member
- Posts: 2
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.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Please Log in or Create an account to join the conversation.
- Florian Malecki
-
- Offline
- New Member
- Posts: 12
so I come back with this lanugage issue as well: in my case, it's the german language.
The language files for the k2 component in the backend and in the editing layout in the frontend are not used.
I set up a fresh joomla 3.9.13 with K2-v2-10.2 and have
- de-DE.com_k2.ini in language/de-DE
- de-DE.com_k2.dates.ini, de-DE.com_k2.ini, de-DE.com_k2.menu.ini and de-DE.com_k2.sys.ini in administrator/language/de-DE
The frontend-files are used and could be overwritten, but the component-files are not used ;-(
Could you help, please?
(btw: I am absolutely happy using K2 since a few years and quite a few projects. This issue is not new to me, but now I need it to work, because my client needs the german translation...)
Flo
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Please Log in or Create an account to join the conversation.
- Florian Malecki
-
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- Florian Malecki
-
- Offline
- New Member
- Posts: 12
just figured out that in joomlas control panel the translations of k2-items (the quick-icons and the menu-items) are translated to german – but only there. In all other joomla backend-items the translations in components/k2 are gone...
Still the same on the blank test website.
Flo
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Please Log in or Create an account to join the conversation.
- Florian Malecki
-
- Offline
- New Member
- Posts: 12
unfortunately, that's not the point. If we figure out, what is wrong with the translation files, I will be pleased to bring the translation to 100%...
But: Something is wrong inside the K2 component, because it does not use additional language files (0% !). Look at the screenshots:
1: control panel – everything is in german
2: K2 Items view - the translations are gone, even in the menu (screenshot made in the same installation after clicking "k2/items")
3: K2 Item editing – no translations for k2, notice that Tiny-Editor is in german
So, how to solve this?
I could make this test installation on my server and send you access, but I am sure you will have this error in a new (!) installation with additional language files, too.
Flo
Please Log in or Create an account to join the conversation.
- Arkadiusz Nowak
-
- Offline
- New Member
- Posts: 1
1. In control panel everything is in polish
2. K2 items in component are in english
3. Quick Icons for K2 are in Polish
I've tried two diffrent translation and in booth there is the same effect.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
But since we're not custom loading language files and the German language pack for K2 seems complete enough for the backend, it *may* be a new Joomla bug introduced.
Can you check some other component please for which you're loading a separate language pack?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
It's \\"_QQ_" that is causing issues. That (very old) hack for using double quotes breaks the language file parsing.
If any of you guys has access to the German team on K2/Transifex, please replace all such instances of \\"_QQ_" with an escaped double quote: \"
I'll send a message to all language maintainers on Transifex as well.
Please Log in or Create an account to join the conversation.