Magento URL translation for CMS pages names - php

I build the store with 2 views for two languages French and English and I have many CMS pages, like "about us" in English and the same page in French - "a propos".
In administration side the option "Add Store Code to Urls" is ON.
I have created 2 CMS pages "about-us" linked to English store view and another one "a-propos" linked to French store view.
When I’m in English store on "About us" page the URL is www.myurl.com/en/about-us/ but if I switch the language to French the language switcher brings me to www.myurl.com/fr/about-us/ instead of www.myurl.com/fr/a-propos/
So, the language switcher changes only the store code but not the page name.
Thank you,

Yes, this is how magento works. If you want to change to another static block on your about page in some language you have to change the reference to the block id "about-us" to "a-propos" on the french site.
This page explains this quite good I think.
http://anothermarketer.com/how-to-translate-a-magento-theme/
Just add a comment to my answer if you need more help.

Related

How to resolve the WPML translation issue on website?

I have one site in WordPress + DIVI + WooCommerce + WPML and other plugins.
I am facing one issue on site while WPML Translation.
Website is in 3 languages:
Dutch (Main)
Franch
English
I need to keep different string for different language for the button text in one module of the DIVI.
I selected English language from adminbar
When I go to Theme Builder -> Global Header and I change the button text to "XYZ", it is reflecting only on English page, that is fine.
Now when I change the language to Dutch
and When I go to Theme Builder -> Global Header and I change the button text to "ABC", then it is reflecting on Dutch and French pages (English page is fine with "XYZ"), this must reflect on Dutch page only If I change the button by selecting the Dutch language
Now when I change the language to French
and When I go to Theme Builder -> Global Header and I change the button text to "DEF", then it is reflecting on Dutch and French pages (English page is fine with "XYZ"), this must reflect on French page only If I change the button by selecting the French language
I checked for String Translation, and updated translation for Dutch and French but it is not reflecting on front side.
When you're switching languages and modifying it manually like this, you are messing up the WPML logic that's handling translations. Page builders are tricky to translate. That's why you need to follow the recommended process.
From documentation:
To translate the Divi site header or footer you created using the Divi
Theme Builder, follow these steps:
Go to WPML > Translation Management. Choose Header Layout, Footer Layout, or Body Layout from the Type dropdown, then click the Filter
button.
Choose which headers or footers you want to translate, the languages you want to translate them into, and click Translate
selected content.
Go to WPML > Translations to take and translate the global header using the Advanced Translation Editor.
Try this with a fresh site with a new global Divi header/footer from scratch.

Disable link generation to translation of pages which have no translation - TYPO3 9

I have a website where only a part should be translated (into english - german is default). But on this page also links to pages with only a default language version are displayed in menus.
These links to non translated pages should not get the base slug of the active translation. Is this somehow possible?
Example:
I have to Pages (A and B). Page "A" has only a version in the default language (german). "B" has versions in german and english.
If page "B" is rendered in english, links to page "A" will have the base slug for this language (f.i. "en"). But this will result in a 404 or a "english page" with german text.
I already tried to use the language fallback config for languages, but that seems to have no effect on link builders.

Redirect to seo url with different language in opencart 2

I have a problem when I change the language on my site, so if I am in product/category page and I change the language, I will redirect to error page because the seo url is different between the different language,
For example: I have the product/category page with seo url "camere" in italian and "rooms" in english, if I change the language, the url will be this : camere?_route_=camere I know that the problem is in catalog/controller/common/language.php file, but i don't know how I can resolve it. Someone can help me?
My site: http://luca.orkestra.eu

Qtranslate X: Show selector only if you have translated content

I don't want to use the normal Lang switcher, I just want to let the user know if that content is available in other languages.
Example: You are reading a page in English, and at the end of the article, something like: This article is also available in German and French.
I tried this one but didn't work - Wordpress - Qtranslate to show only available languages
Any ideas?
Thanks!

wordpress sidebar content in different languages

I am developing a site in wordpress.I want the particular page from the site in four different languages(English,spanish,french and Dutch).I have used a plugin called WP Native Dashboard.Using this I am able to get the page content in four different languages.I used the combobox to select the language and display the content.This works fine...
I am creating a new page,select the language ,and writing the content in it.For same content in different language i am just writing the page id besides the language name as follows :
Main problem is about the sidebars,footer and the header content.I have one set of sidebar,footer and header in English language.When I select the different language (for example french) the sidebar,footer and header content is displayed in English.
If i try to create another set of sidebar,footer and header in other language and try to create a diffrent page called French left sidebar .In french content if i select the page as shown below:
.and on the site when i select the language as english sidebar content displayed in french language .
so my question is how to get the sidebar content in different language when different language from the combobox are selected.
Create a new page template that loads a custom sidebar. Also checkout http://wpml.org/2011/06/how-to-build-different-sidebars-per-language/

Categories