Getting started with Dual-Language site/ Best Practice

This topic has 1 reply, 1 voice, and was last updated 6 minutes ago ago by Ralf E

  • Avatar: Ralf E
    Ralf E
    Participant
    October 26, 2024 at 21:27

    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!

  • Viewing 1 results - 1 through 1 (of 1 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.