how to translate the homepage with polylang? - wordpress

I use Polylang plugin to translate my English WordPress website to German, I was able to translate the pages and the posts I couldn't translate the homepage.
I use a static page for my homepage, I tried translating it but whenever I do changes the happen in both languages!
how can I create another static page for the second language?

Try with pll_e in template and pll_register_string for function.

Related

Wordpress multilanguage URL

I'm building my own theme in WordPress, and the website will be in multiple languages.
All I need is to find a way to assign a language to each page, and this language should be added to the URL as well. (I'm guessing adding a taxonomy, but I'm not sure how to add this to the URL)
I will create a different template page per individual page. Most plugins try to translate each page, this I don't need.
Lastly, of course, I will create a separate menu per language, but these links should link to the correct page URL (with the ../language/..)?
Is there a way/ plugin that can help me do this?
Thanks a lot to all who can help me with this!

Wordpress Multisite Language Switcher Plugin to display post url for different languages

I am currently using the Multisite Language Switcher Plugin on one of our webpages. I am trying to create a language switch button that will allow the user to go to the same post of the other language when they click on it.
So for example, if we have the english post and its equivalent in the welsh language, I would need to get the URL of its counterpart for the user to go to that page.
Any help would be appreciated.
Configure Multisite Language Switcher Options first then add switcher button from elements to anywhere you'd like to display.

WordPress - translations not appended even strings are edited

Well after 5 days of trying to find solution, I think I need WordPress magician to help me solve this.
I am translating my WordPress site. So far I have translated over 80% of the content mainly accessing .po files via server or by using LocoTranslate
I have troubles with translating some specific content on the page:
When accessing Products section in WordPress Dashboard I can see that even the settings are translated (to Danish) but some content of the same product page are not.
Image Of PRODUCT page:
What I have tried so far:
Checked all In Stock strings via LocoTranslate plugin (for main theme po file and plugins file) and all are translated to Danish.
I changed Main language in General WP Settings
Tried TranslatePress plugin, and when accessing the page via it, it does not offer an option to translate In Stock part. Evan tough it offers an option to translate action button and I did that.
As I can see on the editing page In Stock is clearly part:
Product settings on Dashboard
This means "In Stock" and even here is translated, too.
Note: When refreshing the page the translation is seen for a part of a second for the BUTTON, then it changes back to English.
Well, I am desperate. Can someone offer some other solution how I can fix this?

Language switcher in wordpress

I'm looking for a simple plugin for WordPress to be able to switch the language on the front-end.
I tried many plugins no one worked. I just need to prefix my page path with something like /en/my_page and transform it to /fr/my_page when I select French as the current language for instance.
I also have spent in the past quite a lot of time looking for a plugin to create sites in various languages.
The only plugin I would recommend is Qtranslate https://wordpress.org/plugins/qtranslate/
Its very simple, and easy to customize the front-end template using shortcodes.
I have developed a free plugin for that purpose here:
https://code.recuweb.com/get/language-switcher/
It has been reviewed and hosted by Wordpress here:
https://wordpress.org/plugins/language-switcher/
Language Switcher allows you to map urls of alternative languages for Post Types and Taxonomies. Additionally it allows you to filter archive pages by language.
To prefix your pages with the language code I recommend you to follow these steps:
create a main page with slug en and another one with slug fr.
set my_page with parent page en and ma_page with parent page fr.
map the urls of the translations in my_page and ma_page
add the shortcode [language-switcher] to allow readers to jump from one page to another

How can i have different home page in different languages in wordpress?

is it possible to have in one language (greek) a front page that displays my latest posts and a static page (english) in wordpress?
And how with the plugin wpml?
Yes! It`s possible.
I recomend use WPML plugin ( comercial)
U also can use noncomercional plugins like:
qTranslate
Polylang

Resources