تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4 الردود
5860 أدوات العرض

Hi,

Is there a way to add or translate Odoo content page URLs on a multi-language website?

We have a multi-language website with 2 different language (English, French) So for English page URL is like this.

/page/corporate-development

Default Odoo it would be like this when we access French.

 /fr/page/corporate-development

What we are looking for actually one like this where we can add/translate page URL.

Ex:

/fr/french-name-for-page/developpement-de-lentreprise

I cannot find out how to do this with Odoo 13CE. Do we have an module for this?

 If anyone can help or give a solution would be great.

الصورة الرمزية
إهمال
أفضل إجابة

Hello,

You can use this module

https://github.com/OCA/website/tree/10.0/website_seo_redirection

or

You have to create custom module which get urls , translate it and redirect it.
الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Thanks Muhammad, website_seo_redirection is only for odoo 10.

Thanks Mohamed Mostafa, I watched the video training. But It doesn't solve my problem, do you have a suggestion for me?

Thanks

Dear Mohamed

"This happens by default if the translation is accurate. Check URL Management section in Odoo website training 

Go to Odoo home page > Learn > Website > URL Management"


The instructional video I think is incorrect, try shortening the URL as the tutorial on the 3:58 time video. She shortens the URL to "/15" but when she entered, it automatically becomes the old URL (/ produits-maison-vs-produits-industriels-2019-15). This does not mean that the URL (/ produits-maison-vs-produits-industriels-2019-15) has been shortened to "/15". But in the tutorial video I understand that the URL has been shortened to "/15". Has someone confirmed this, or I'm wrong.

Thanks


الصورة الرمزية
إهمال

What is a shortened URL? Basically, some of Odoo controllers are addressed by unique identificator of the related object. So, if blog ID is 1, it might be accessed by ...post/1. The last part ‘/1’ might be enriched with any key words, while the target would be still the same:

* post/1 = post/my-post-1 = /post/my-great-post-1 = /post/[any-transliteration]-1

As soon as a user reaches the address, the URL is adapted to a default one: post/[BLOG POST NAME]-1.

BLOG POST NAME is language specific. So, if you translated that, it would be included into the URL on the target language. Let assume the blog post name is ‘Good’ and its translation to French is ‘bon’. Then:

* Default URL = post/good-1

* Default URL in French = fr/…./post/bon-1

Take into account those features relate ONLY TO controller-based pages, where those features are configured: blog posts, e-shop products, forum questions (look at the above URL on this page).

It does NOT work for website pages you created manually (through new > page mainly). The latter do not have IDs inside, so their text address is considered as unique locator. Technically, they do not have an own controller starting from the version 11. So, custom page title does not influence its URL, and it is the same for all languages. For that case have a look at the app I referenced in the answer below.

أفضل إجابة

Have a look at this app - https://apps.odoo.com/apps/modules/13.0/website_url_translations/

الصورة الرمزية
إهمال
أفضل إجابة

Hello David,

This happens by default if the translation is accurate. Check URL Management section in Odoo website training 

Go to Odoo home page > Learn > Website > URL Management

Good Luck

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 24
4271
1
مايو 25
866
0
نوفمبر 24
1476
0
مارس 24
1472
2
سبتمبر 23
3827