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

how to aktivate a new languages manualy #236

Closed
patrickreto opened this issue Aug 29, 2015 · 9 comments
Closed

how to aktivate a new languages manualy #236

patrickreto opened this issue Aug 29, 2015 · 9 comments

Comments

@patrickreto
Copy link

Hi
I am working with a free hoster and the server can not make connections to other servers. Now I try to aktivate a new language in qtranslate X. If I do so in Language Management / Languages, I have this two messages:

Error: Gettext databases not updated: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.

Warning: A manual update to option "Head inline CSS" or to the theme custom CSS may be needed, after some languages are changed.

Anyway the new language is show in General. But when I try to safe the settings, the new languages is gone again.

How can I go around this problem? I dont understand realy the second message "Warning". I have upload the language file with ftp to the folder languages. There where already the german ones. Where the english ones are, I dont know, but maybe they are a kind of built in. The rights on the folder, subfolder and files are all on 755.

After some truy I also put in my wp-config.php the code "define ('WP_AUTO_UPDATE_CORE', false);", but nothing changed.

What can I do more?

@johnclause
Copy link
Member

Switch to each language you wish via main WP /wp-admin/options-general.php configuration page. This will also cause auto-update to gettext databases and whatever error occurs need to be fixed at WP level, not at qTranslate-X level. Once it all ok at WP level, come back to qTranslate and try to enable languages again.

@patrickreto
Copy link
Author

Ok. I was lookig to this. But I can not realy understand, what I should do there. You mean inside of the backend, no? Or do you mean, to edit a special file?

In the backend I can just find the "languages" submenu inside of "settings", that has funktions to change or add languages. But this is the configuration of qtranslate X, no? And there I have the problem as explained above.

But in the tab "advanced" there is a field "Head inline CSS" with the content:

.qtranxs_flag_de {background-image: url(http://alberguemunicipa.bplaced.net/wp-content/plugins/qtranslate-x-master/flags/de.png); background-repeat: no-repeat;}
.qtranxs_flag_en {background-image: url(http://alberguemunicipa.bplaced.net/wp-content/plugins/qtranslate-x-master/flags/gb.png); background-repeat: no-repeat;}
.qtranxs_flag_fr {background-image: url(http://alberguemunicipa.bplaced.net/wp-content/plugins/qtranslate-x-master/flags/fr.png); background-repeat: no-repeat;}

Ok, I dont understand his code, but one of the error messages says:

Warning: A manual update to option "Head inline CSS" or to the theme custom CSS may be needed, after some languages are changed.

So maybe I have to put some code here inside, in order to aktivate french and spanish languages?

Can you help me with this?

@patrickreto
Copy link
Author

To make it more clear:

In setting/languages tab languages I can enable one more language (but just one).

Then I can see the new laguage in the tab general. I can also see the language in the language switcher on the right top of the page. But if I try to choose it, nothing happends. I can not see the new languages, if I go to one of my pages and try to edit it.

If I am back in tab general and click there on "save changes", the new added laguages is gone from the list.

Back in tab languages it is disabled again.

@Grafcom
Copy link

Grafcom commented Sep 2, 2015

@patrickreto
temporarily deactivate qTranslate X. Then go to Settings - General and with - Site Language - switch to each language you wish (Save changes). This will auto-update the gettext databases and see whatever error occurs that need to be fixed at WP level.

@patrickreto
Copy link
Author

Ok, I have done this and switched to ever languages to make it the page language. I was surprised to find all the 4 languages there! There was no error message. Then I activate qtanslateX again and try to enable one language, like french. The same problem again. The language is showe in tab generla but when I save, it is gone again and disabled. So what is wit this field in tab advanced "Head inline CSS"? I think, that because the server can not make contact to other servers, somthing is not working fine, as the error message says. The the warning is telling, that I have to make a manual change in a file. Maybe to tell wp, that there is e new language aktiv? Do you unerstand the problem? The server can not conect another server, so I have to do the updates manualy. So also the languages. NO AUTOUPDATE is possible, that come from outside of the host server. greetingsPatrick Reto Bieri 02.09.2015, 02:57, "Gunu" notifications@github.com:@patrickreto temporarily deactivate qTranslate X. Then go to Settings - General and with - Site Language - switch to each language you wish (Save changes). This will auto-update the gettext databases and see whatever error occurs that need to be fixed at WP level.—Reply to this email directly or view it on GitHub. 

@Grafcom
Copy link

Grafcom commented Sep 2, 2015

@patrickreto
can you create a temporary admin and give us access? Is so , email me than private:
gu nu at mar ius - si roen d com

@patrickreto
Copy link
Author

Ok, I will. Please send me this email adress without mirakles :-) to retobieri@yandex.com Patrick 02.09.2015, 08:05, "Gunu" notifications@github.com:@patrickreto can you create a temporary admin and give us access? Is so , email me than private: gu nu at mar ius - si roen d com—Reply to this email directly or view it on GitHub. 

@johnclause johnclause added the bug label Sep 2, 2015
@johnclause
Copy link
Member

Hi @patrickreto, it is indeed a bug. It cannot auto-update gettext database, because apparently some special configuration on the server preventing it. However, gettexts databases apparently already installed and no update is needed. However, qTranslate-X tries to update them anyway and when error is generated, it does not save the new language enabled to the database.

I installed plugin "WP Editor" on your server and modified the gettext updating function in qTranslate-X to generate warnings instead of errors. Now it seems to work correctly. Do not activate "WP Editor" for a purpose other than changing plugin files, because it is not 100% compatible with qtx.

This fix will be included in the next qtx version.

I am closing this issue for now, we can still write into closed issue, or we can reopen it if needed.

johnclause added a commit that referenced this issue Sep 2, 2015
@patrickreto
Copy link
Author

Oh, thank you sooo much :-) ! Now I can activate the languages that I need, also on the free version of bplaced. I think the problem just exist, because the server can not make connection to your server. Without this restriction it is working fine. I know, because I was bulding up a small wp site for a friend lokal, on his notebook. And there everything was working fine :-).

thank you again, john and marius!

greetings
Patrick Reto Bieri

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

No branches or pull requests

3 participants