Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qTranslate-X breaks the Site Language #98

Closed
nkint opened this issue Mar 25, 2015 · 17 comments
Closed

qTranslate-X breaks the Site Language #98

nkint opened this issue Mar 25, 2015 · 17 comments

Comments

@nkint
Copy link

nkint commented Mar 25, 2015

Hi!
I have done a massive upgrade from mqtranslate to qtranslatex (more then 10 wordpress sites).
I've read and followed the migration notes and all configurations and translations are good so far.

But the mail language is broken in the admin panel: in english and not in italian.

On "Settings > Languages > General Settings" the default language checkbox is Italiano.
On "Settings > General" there are icons of languages and Italiano is selected.
On "Settings > General > Site Language" the Site Language dropdown menu is en_US. If I change it in Italiano the page is refreshed, there is a message on the top of the page about good setting saving ("Impostazioni salvate") but the admin panel is still in english, and the dropdown menu Site Language is setted to en_US while I'm expecting to see Italiano.

If I deactivate the qTranslate-X plugin the admin panel is in Italian. If I activate the qTranslate-X plugin the admin panel is in english and there is no way to change it.

What can I try?

@johnclause
Copy link
Member

Has that started happening after an update, or you are the first time user? What did you use before -qTranslate-X? Do you see the menu language switcher on the top-right corner of admin bar? q-X takes control of the site language and normally menu at the top-right works. The default language is changed to English after q-X install. You have to add Italian to the list of languages, and then you can switch to Italian via menu at top-right. This is a know imperfection, we will adjust soon.

@nkint
Copy link
Author

nkint commented Mar 25, 2015

Ok I've seen it.
It seems to resolve the problem, thanks.
I didn't notice it, maybe add an additional NOTE on the migration document? Have I missed it?

@johnclause
Copy link
Member

Yes, we lack a good documentation. Also working on it.

@nkint
Copy link
Author

nkint commented Mar 25, 2015

Again here sorry. I tried one of the blog with a different computer and different browser and.. the problem is the same, it is in english. Is it a cookie related thing? Is there a way to change it permanently to Italian?
Also, the default language with a fresh computer/browser is in english, so that:
www.mycoolblog.it/en
is the default redirect while I would like that the main lang is the italina..
no way to change it?

@qtranslateteam
Copy link

Yes, it keep the current selection in cookie. If cookie is not set, then it
is the default language. Is Italian the default in your case?

On Wed, Mar 25, 2015 at 8:18 AM, alberto notifications@github.com wrote:

Again here sorry. I tried one of the blog with a different computer and
different browser and.. the problem is the same, it is in english. Is it a
cookie related thing? Is there a way to change it permanently to Italian?
Also, the default language with a fresh computer/browser is in english, so
that:
www.mycoolblog.it/en
is the default redirect while I would like that the main lang is the
italina..
no way to change it?


Reply to this email directly or view it on GitHub
#98 (comment)
.

@nkint
Copy link
Author

nkint commented Mar 25, 2015

I think yes.

Mainly because if I deactivate qTranslateX the wp admin is in italian.

But I cannot be sure because with qTranslateX activated if I try to change the language under "Settings > General > Site Language" dropdown menu my choice is ignored and qTranslateX se always en_US as I explained in the first issue post.

I had before mqtranslate, but I have checked the "import configurations from mqtranslate" in Import/export setting panel.

@johnclause
Copy link
Member

I mean default in -X configuration.

@nkint
Copy link
Author

nkint commented Mar 25, 2015

where do I set it?

@qtranslateteam
Copy link

-X configuration page, Settings/Languages:
/wp-admin/options-general.php?page=qtranslate-x

On Wed, Mar 25, 2015 at 9:11 AM, alberto notifications@github.com wrote:

where do I set it?


Reply to this email directly or view it on GitHub
#98 (comment)
.

@nkint
Copy link
Author

nkint commented Mar 25, 2015

Yes it is: Italian is the first and checkboxed.
But if I open the page with an anonymous browser session the admin panel is in english.

@nkint
Copy link
Author

nkint commented Mar 25, 2015

screenshot

If I have understood correctly:
in a fresh anynimous browser window, the qtranslateX default language is in italian but at top right corner there is a british flag..
I'm still missing something?

@johnclause
Copy link
Member

I am not sure, maybe it does not do anything then, just keeps language from WP. If you deactivate -X, what language is shown on page /wp-admin/options-general.php? Set it to Italian too and do not change it manually when q-X is active.

@johnclause
Copy link
Member

Indeed the default was taken from WP instead of q-X default. This is supposed to be improved now in 3.2.9.3. If you wish to try it: https://github.com/qTranslate-Team/qtranslate-x/archive/3.2.9.3.zip

@nkint
Copy link
Author

nkint commented Apr 1, 2015

OK, this new version resolve the global language roblem but it is breaking the qTranslate-SLUG plugin (it does not work and it does not recognize that qTranslateX is installed)

@nkint
Copy link
Author

nkint commented Apr 1, 2015

(I don't know if this issue has visibility due to its closed status, if no feedback I will open a new issue for qtranslate slug support in the next days..)

@johnclause
Copy link
Member

Yes, I still get e-mails and notifications even if issue is closed. Slug issue is known to us and to -slug developers: not-only-code/qtranslate-slug#108, and is on the list. Opening a new issue would not accelerate the things.

@LC43
Copy link

LC43 commented Apr 12, 2015

hi! i've updated our code to fix this issue. the language widget now has the url with the lang.

for example, if fr is your default language, the links in the menu now have

domain.tldl/fr/url-francais

then its redirected to

domain.tld/url-francais/

its a workaround, but hey, its sunday :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants