This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Diego Pereira 5 months, 2 weeks ago.

Assigned support staff: Diego Pereira.

Author Posts
April 28, 2019 at 8:42 pm #3699021

mihaiT-2

Dear WPML Team,

Thank you for this plugin. I am very happy with it.
As I just changed my WordPress theme and I am redesigning my website I encountered two problems:

1) My default language is Romanian, my second in en. I don't want language parameter, I just want to have a page toaderpasti.com/en with the English version. The problem I encounter is that all the categoties an posts are toaderpasti.com/en/sustainability and I want to remove the en from posts and categoties and pages because there is no similar name in Romanian and English. How can i do that?

2) I had to install another plugin to detect country and redirect to /en and I am using IP2Location Redirection. The problem si that if it redirects you to /en and press the language bar, it redirects you again. That plugin has an option: ''Skip redirection if noredirect=true found in URL. For example, hidden link'' but i don't know where or how to add it to work. For example if it's a Romanian living abroad to be redirected to EN but also be able to see the RO version if clicks on the language icon in the menu bar.

Thank you so much!

April 29, 2019 at 7:54 pm #3706407

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello @mihait-2, welcome to the WPML support Forum!

1) I don't think this is possible at the moment with WPML. You may need to build a custom plugin to achieve this. As an alternative, you can try the "Different domains per language" option. Please take a look at this link: https://wpml.org/2016/04/use-wpml-different-domains-per-language/ - This way the lanugage directory will not be added to the URL.

2) It seems that the plugin is not listed at our compatible plugins page: https://wpml.org/documentation/plugins-compatibility - it may be a compatibility issue.

WPML have a option to redirect the user based on browser language. Please take a look at this link: https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language/

Please let me know if it worked for you or if you need more help.

All the best,
Diego

April 30, 2019 at 7:00 am #3708393

mihaiT-2

Hello Diego and thank you,

1. different domain doesn't work. It says it is not valid. It should be somehow a solution, a workaround. If now I would like my money back because it is not useful and I don't want to change it later because it will harm the SEO to change the hyperlinks. And it doesn't look it is rocket science based on all the smart stuff this plugin does.

2. It is not a compatibility issue, I will try to explain it better. The other plugin does what it has to do well. My question for WPML is when I am changing the language on the home page, on the flag, can I add' ?page=1&noredirect=true' to toaderpasti.com link? If not, is there a compatible plugin that could do this simple thing: identify the country based on IP and do a redirect... Browser language, if i understand correctly what it does, doesn't help me. I and lots of people I know are using browsers in English, not their mother language i would like to read my blog in.

Thank you!

April 30, 2019 at 9:03 pm #3714951

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

1) What exactly occurs? If you want, we can investigate it. However, this is the only solution we have at the moment. Unfortunately for now it's not possible to just remove the language directories from the URL because this may lead to conflicts. You can suggest this as a new feature on this form: https://wpml.org/suggest-a-new-feature-for-wpml/

For refunds, you can use this form: https://wpml.org/purchase/refunds-policy/

Another option is to hire a contractor to do this customization. We have a list of experienced contractors available here: https://wpml.org/contractors/

2) In this case you may need to build a custom language switcher, or use some javascript to modify the link and add the parameters to the URL. Please take a look at this link to see how to build a custom language switcher: https://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/

As an alternative, you check the list of compatible plugins here: https://wpml.org/documentation/plugins-compatibility/

I found this plugin at our compatible plugins list: https://wpml.org/plugin/123-wpml-redirect-based-ip-country/

If you want, you can also invite the plugin author to ou our Go Global program so that we can help them make their product compatible with WPML: https://wpml.org/documentation/theme-compatibility/go-global-program/

Please let me know if it worked for you or if you need more help.

Kind regards,
Diego