This topic has 4 replies, 3 voices, and was last updated 3 weeks, 5 days ago ago by Rose Tyler
Hi all. I’ve setup XStore with a demo site and for now all works pretty well! However, i need to build a site in multiple languages, at the beginning it will be in german and english. I’ve installed Loco Translate and the PO-Files for XStore Theme and Plugin. My site is configured with “de_DE” (german) and the demo content is “mixed” language now. I’ve expected this, since “function’s output” is translated of course but not the static blocks of the demo content which was written in english.
Whatever, what i want to do is:
1) Having on the Header a Flag/Text where you can switch the language (EN/DE)
Will i need to create for every content/static block an version per langauge? Like: Policy_de and Policy_en, or what is best pratice to do this? Multisite like de.my.tld and en.my.tld (I would like more no multisite and have my.tld/en and my.tld/de instead)?
2) Is it possible to read the language from the Browser’s UserAgent and use that language when someone opens the page? (Or whatever ist best pratice to set the initial language)
If anyone could give me just the direction on how to set this up, on a very “short way-description”, like: 1) Install Loco Transale 2) Make all pages like policy_{lang} 3) Install “UserAgent2Language” WP-Plugin 😉 4) Make Menu entry and add in header
I just need the basic way, i can dig the rest myself 😉 Thanks for your help!
Hello, @Ralf E,
Thank you for reaching out to us with your request. We understand the importance of having your website available in german and are here to assist you with the language changes.
1/ In case you need to translate the site from English to german, the Loco translate plugin can be used to translate the theme and Core plugin. Please read our theme documentation here: https://www.8theme.com/documentation/xstore/theme-translation/base-theme-translation/
2/ But in case you want to have a multilanguage site, you need to use WPML – https://www.8theme.com/documentation/xstore/theme-translation/translation-with-wpml/ and WPML support will help you.
Please note, if WPML is installed but not configured correctly, the translation functionality may not perform optimally. It is essential to either properly configure WPML, if you choose to use it, or to disable the plugin entirely if it is not needed.
3/ Our language switcher & currency switcher are just a demo choices not a real switcher.
Unfortunately, multi-currency functionality is not available in WooCommerce or the theme by default.
In order to display multiple currencies on your website, we recommend using the WooCommerce Currency Switcher plugin. Our theme is fully compatible with this plugin and you can configure it on your site according to your needs. The plugin documentation will provide you with the necessary instructions to display and use multiple currencies for your products.
Plugin Link: https://wordpress.org/plugins/woocommerce-currency-switcher/
Please read and follow the steps written in our theme documentation here: https://www.8theme.com/documentation/docs/xstore-currency-switcher/
We hope this helps
If you have any additional questions or concerns, please do not hesitate to reach out to us. Our support team is always available to assist you.
Best Regards,
8Theme’s Team
Hi there and thank you Tony Rodriguez. Yes, your answer clearifies a lot. I still have some questions to get started. I definately need your option 2/ but, at least currently, i dont want to buy WPML for a couple of reasons. Can you answer me if i can use Polylang Plugin to realise my site with english and german? (At least there is a free Version to try)
I’ve installed Polylang on my dev site, and tested the following: Added “/contact” and set language to English, added a copy of it and named it “/kontakt” and set language German. This works pretty well as intended: mysite.tld/contact shows the english version, where as mysite.tld/de/kontakt shows the german version.
The question is, when i duplicate all pages like that and set the language correctly, will XStore work with that? So that i got the english site at: mysite.tld/ and the german version at mysite.tld/de/. (Polylang automaticially adds the “/de/” for pages set to “German” to the Page-URL as far as i understood)
Is this, for now where i only have to do these 2 languages, an option with using Polylang? Or will XStore not work with Polylang?
(I also can copy products and set their respective language, so that should work just like with the pages…)
Or is there any other Plugin that i could use in a free version for now that works with XStore – or do i really need to use WPML to get this done?
Thanks for your currency hint in 3/, very useful.
Thank you for your help!
Hello, Ralf E,
Yes, you can certainly use the Polylang plugin with our theme. We have several clients who have successfully integrated this plugin with our theme. To ensure a smooth integration, we recommend reviewing the documentation provided by the plugin’s author and possibly watching some tutorial videos on YouTube.
In general, the Polylang plugin should work with our theme just as it would with any other theme.
Additionally, please read this article – https://colorlib.com/wp/wordpress-multilingual-plugins/ – not all plugins are paid, you can use one of the free plugins (qTranslate(free), or Polylang(free with paid extra options).
Best Regards,
8Theme’s Team
You must be logged in to reply to this topic.Log in/Sign up