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
herrvigg opened this issue Jun 21, 2018 · 17 comments
Closed

qTranslate-X breaks the Site Language #98

herrvigg opened this issue Jun 21, 2018 · 17 comments
Labels
legacy issue Legacy issue imported from original repo

Comments

@herrvigg
Copy link
Collaborator

Issue by nkint
Wednesday Mar 25, 2015 at 09:18 GMT
Originally opened as qTranslate-Team/qtranslate-x#98


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?

@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Wednesday Mar 25, 2015 at 14:08 GMT


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.

@herrvigg herrvigg added the legacy issue Legacy issue imported from original repo label Jun 21, 2018
@herrvigg
Copy link
Collaborator Author

Comment by nkint
Wednesday Mar 25, 2015 at 14:29 GMT


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?

@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Wednesday Mar 25, 2015 at 14:31 GMT


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

@herrvigg
Copy link
Collaborator Author

Comment by nkint
Wednesday Mar 25, 2015 at 15:18 GMT


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?

@herrvigg
Copy link
Collaborator Author

Comment by qtranslateteam
Wednesday Mar 25, 2015 at 15:21 GMT


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
qTranslate-Team/qtranslate-x#98 (comment)
.

@herrvigg
Copy link
Collaborator Author

Comment by nkint
Wednesday Mar 25, 2015 at 15:33 GMT


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.

@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Wednesday Mar 25, 2015 at 15:49 GMT


I mean default in -X configuration.

@herrvigg
Copy link
Collaborator Author

Comment by nkint
Wednesday Mar 25, 2015 at 16:11 GMT


where do I set it?

@herrvigg
Copy link
Collaborator Author

Comment by qtranslateteam
Wednesday Mar 25, 2015 at 16:13 GMT


-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
qTranslate-Team/qtranslate-x#98 (comment)
.

@herrvigg
Copy link
Collaborator Author

Comment by nkint
Wednesday Mar 25, 2015 at 16:16 GMT


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.

@herrvigg
Copy link
Collaborator Author

Comment by nkint
Wednesday Mar 25, 2015 at 16:35 GMT


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?

@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Wednesday Mar 25, 2015 at 19:59 GMT


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.

@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Friday Mar 27, 2015 at 21:35 GMT


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

@herrvigg
Copy link
Collaborator Author

Comment by nkint
Wednesday Apr 01, 2015 at 10:46 GMT


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)

@herrvigg
Copy link
Collaborator Author

Comment by nkint
Wednesday Apr 01, 2015 at 15:24 GMT


(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..)

@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Wednesday Apr 01, 2015 at 15:49 GMT


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.

@herrvigg
Copy link
Collaborator Author

Comment by LC43
Sunday Apr 12, 2015 at 17:57 GMT


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
legacy issue Legacy issue imported from original repo
Projects
None yet
Development

No branches or pull requests

1 participant