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

Can't set another language for menus #374

Closed
herrvigg opened this issue Jun 23, 2018 · 17 comments
Closed

Can't set another language for menus #374

herrvigg opened this issue Jun 23, 2018 · 17 comments
Labels
bug Something isn't working, reproducible legacy issue Legacy issue imported from original repo

Comments

@herrvigg
Copy link
Collaborator

Issue by GHemis
Thursday Apr 14, 2016 at 17:24 GMT
Originally opened as qTranslate-Team/qtranslate-x#374


Hi there,
Until yesterday, I had a set of menu that was in French and English, using the qtranslate-x plugin.
I updated some of the names of my menu in English and when I applied modifications, all the menus, in both languages, turned to be in English. I tried to correct my menus in French, and when I applied modifications, both set of menus were in French.

I updated my Wordpress version from 4.4.2 to 4.5 yesterday and I suspect this must be the reason why.

  • Julie
@herrvigg herrvigg added bug Something isn't working, reproducible legacy issue Legacy issue imported from original repo labels Jun 23, 2018
@herrvigg
Copy link
Collaborator Author

Comment by richpav
Friday Apr 15, 2016 at 02:37 GMT


The problem will appear only if you change the label of any menu item after upgrading to 4.5. Then all the labels, not just the one(s) you changed, turn monolingual.

The workaround is to disable qtranslate-x, change each of the menu labels strings to what they should be, for example [:en]Service[:ja]サービス[:], then re-enable the plugin.

In 4.5, even if you just hit the "Save Menu" button without making any changes, the menu will turn monolingual.

@herrvigg
Copy link
Collaborator Author

Comment by acenkus
Friday Apr 15, 2016 at 08:14 GMT


Yes! In our prog. team whe have the same issue!

@herrvigg
Copy link
Collaborator Author

Comment by wocmultimedia
Friday Apr 15, 2016 at 09:36 GMT


Disabling and reactivating qtranslate-x will reanable the correct menu or do I have to re-set again the double language for each item?

  • I got in my test site which has debug on this warning and maybe is related to your plugin
    add_utility_page is deprecated since version 4.5! Use add_menu_page() instead. in /web/htdocs/www.wocmultimedia.biz/home/test_site/wp-includes/functions.php on line 3662

EDIT: I tried to change the Navigation Label of menu item to not recreate the whole menu list but it's the same. If I set the Italian name after saving it shows Italian name in both language and vice versa.

@herrvigg
Copy link
Collaborator Author

Comment by BigJonMX
Friday Apr 15, 2016 at 10:10 GMT


bug - qtranslatex1

I discovered its not necessary to disable the plugin. Just edit all the labels and press save once.
Note: ALL labels have to be done again at the same time - even if only one needs changing.

@herrvigg
Copy link
Collaborator Author

Comment by wocmultimedia
Friday Apr 15, 2016 at 10:14 GMT


Do you mean you have to write the quick tags too? Because I changed the label and after saving they show same word for both language.
There's something weird because after deactivating and reactivating the plugin twice, partially the old menu was restored and new label shows in one language only. I will make new attempt to identify a good workaround.

@herrvigg
Copy link
Collaborator Author

Comment by wocmultimedia
Friday Apr 15, 2016 at 10:40 GMT


I found a good workaround. The way I found is, go to Settings > Languages > Advanced and choose RAW instead of the LSB. Then go to Appearance > Menus and rewrite the Item labels. You can copy the title with quicktags from Original and paste in the Navigation Label then Save.
After adjusting the Menu Items can revert to LSB for an easier post compilation

@herrvigg
Copy link
Collaborator Author

Comment by GHemis
Friday Apr 15, 2016 at 13:07 GMT


Thank you @wocmultimedia, using the RAW option is definitely the fastest way to deal with it!

@herrvigg
Copy link
Collaborator Author

Comment by acenkus
Wednesday Apr 20, 2016 at 07:46 GMT


I do not understand, why this ticket is closed? Because it works without LSB is not a bug?!!! It still a problem.

@herrvigg
Copy link
Collaborator Author

Comment by jmeile
Wednesday Apr 20, 2016 at 07:58 GMT


Hi,

The issue is actually open. See the status after the issue's title on the top of this page. That "Closed" you are seeing at the bottom refers to the issue #377, which is a duplicate of this one.

I'm also affected by this bug and waiting for a solution. I think the best is that you subscribe to the issue, then you will get any status update.

Best regards
Josef

@herrvigg
Copy link
Collaborator Author

Comment by davidrio7
Wednesday Apr 20, 2016 at 10:08 GMT


I found a good workaround. The way I found is, go to Settings > Languages > Advanced and choose RAW instead of the LSB. Then go to Appearance > Menus and rewrite the Item labels. You can copy the title with quicktags from Original and paste in the Navigation Label then Save.
After adjusting the Menu Items can revert to LSB for an easier post compilation

thank you wocmultimedia for this. Since I am a newbie could you please explain how do I copy the title with quicktags from original?
Thanks

@herrvigg
Copy link
Collaborator Author

Comment by wocmultimedia
Wednesday Apr 20, 2016 at 10:38 GMT


@davidrio7 Hi, it's easy. You go to the menu, click on the little triangle on the topright of the item you want to change and it opens. In this panel you see the field named "Original" go with the mouse to the end of the line where you find the [:] click and move to the left to select and copy like any other text.
Then you go to Navigation Label and paste it. That's all.

@herrvigg
Copy link
Collaborator Author

Comment by BigJonMX
Wednesday Apr 20, 2016 at 11:11 GMT


I find it easier to just type it in...
[:en]Welcome[:de]Willkommen[:es]Bienvenida[:]

you see the pattern
[:country-code] words [:another-country-code] words [:]
and just a colon to finish

@herrvigg
Copy link
Collaborator Author

Comment by davidrio7
Wednesday Apr 20, 2016 at 13:20 GMT


do you think Polylang is easier to work with? I just installed it on another website I run and it seems ok

@herrvigg
Copy link
Collaborator Author

Comment by wocmultimedia
Wednesday Apr 20, 2016 at 18:06 GMT


Are you looking for a solution with qtranslate-x or just playing around.
If you need to use qtranslate-x just make the use of one of the workarounds till the bug is fixed and go on working, Sparing one or two minutes is nothing respect of having the site messed.
My workaround was ok for me cause I have more than 50 items and titles were longer and different from what appeared on navigation label, so copying from original helped me to save time while to other people not. Don't worry and before creating a new site make several tests with plugins none is perfect.

@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Thursday Apr 21, 2016 at 00:44 GMT


There is an updated information in https://wordpress.org/support/topic/issues-with-wordpress-45

@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Thursday Apr 21, 2016 at 00:52 GMT


Please, if you guys have some time, help us to test the fix asap, as described in WP thread.

@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Thursday Apr 21, 2016 at 14:51 GMT


I am closing this issue to keep all updates in one place - please report your tests results in https://wordpress.org/support/topic/issues-with-wordpress-45 Thank you very much for all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working, reproducible legacy issue Legacy issue imported from original repo
Projects
None yet
Development

No branches or pull requests

1 participant