Try not to make duplicate posts in multiple area’s you will more then likely receive scattered responses.
Duplicate post https://wordpress.org/support/topic/only-few-languages-not-working
Plugin Author
Gunu
(@grafcom)
@gdolenc,
have you tried the pre-path mode?
Settings – Languages – Advanced Settings
I have custom application coded in a way that it requests query mode.
Anyway, all other 7 languages do work, so it is not a question about mode I guess.
Plugin Author
Gunu
(@grafcom)
Tested without the custom application code?
Whole my application is custom made.
I also have to mention, that on my localhost everything is working properly. I only have problems with 3 languages on live version.
Could server restart or clearing cache help?
Plugin Author
Gunu
(@grafcom)
You could try.
On the localhost is that the same site configuration?
Also you could try the latest beta version.
Download here
Plugin Author
Gunu
(@grafcom)
It must surely have something to do with the URL’s
(Hide URL language information for default language.
This is only applicable to Pre-Path and Pre-Domain mode.)
Clear visiting your site (no cache no cookies) gives .eu/ without language information (?)
Clicking on Register and login gives .eu/registration/?lang=en and .eu/login/?lang=en.
Clickin on start gives again .eu/ without language information
Clicking on help gives .eu/help/?lang=en in a new window without the menu.
German version:
.eu/registration/?lang=de
.eu/login/?lang=de
Start gives .eu/?lang=de
Have you read this here?
I have exactly the same configuration on my localhost and on server. I have copied all the local files to web server and database as well.
Maybe this information will help. Initiali I was using qtranslate and I had the same problem with these 3 languages on live server, while everything was ok localhost. Then I upgraded the plugin to qtranslate-x, hoping the issue Will be solved, but it didn’t.
You do not see ?lang=en on the home page because of this setting: Hide URL language information for default language.
Btw, help files are not translated, so do not bother checking those. The home page should be translated and this Works well for 7 languages, but for 3 not.
Plugin Author
Gunu
(@grafcom)
You do not see ?lang=en on the home page because of this setting: Hide URL language information for default language.
This is only applicable to Pre-Path and Pre-Domain mode.
.eu/registration/?lang=en and .eu/login/?lang=en.
would then have to be also not visible if English is the default language
This is not important. Even if I uncheck this option (I have done it) it is still not working.
Plugin Author
Gunu
(@grafcom)
have you tried the pre-path mode to be sure?
Like said, prepath mode is of no use for me, since I have a custom child theme and custom build PHP application, which reads language from querystring. I have no regular pages translated.
Plugin Author
Gunu
(@grafcom)
@gdolenc,
try it with a standard WP theme, maybe there is something wrong on your side/application. 🙂
Testing is the most obvious answer.
I have managed to solve two of non-working languages.
The issue was with the language code set.
I had the following settings:
Danish, da, da_DA (wrong!!!, correct: da, da_DK)
Croatian, cr, cr_CR (wrong!!!, correct: hr, hr_HR)
Serbian, rs, rs_SP (wrong!!!, correct: ??? still looking for solution)
So, does anybody know about the correct language coding for Serbian latin?
Also Serbian solved. The correct coding is:
sr, sr_ME