Multi Language Custom Theme Development
-
Hi,
I’m developing bilingual custom WP theme for the first time.
This is simple theme without any backend customisation.
However I don’t want to use any plugins to handle two language pages and I’m not sure if my approach is the simplest one.So, I’m planning to:
1. Create two clone pages, one for each language as all the plugins do and translate them manually.
2. At every page add hard coded Language buttons so user can switch easily, and html hard coded tags as below:
<html lang="en-GB">
<html lang="pl-PL">
3. All templates, headers or footers will be created also in two versions and pulled to the required template.Because by default WordPress will tell the browser to expect the language which is set at the backend of our WordPress site, and because all the pages are in English by default that approach will certainly work and user will be ableto navigate through the pages with any problems.
THE QUESTION IS:
What if I would like user browser to determinate the displayed language?
So, If user have Polish language set at their browser the Polish Home page will be loaded?Is there any other way or function that can handle this without plugins?
Also, plugins won’t work without Internationalization across all the pages, so this is pain for me.
If there is any other better approach I would be glad to hear from you guys, what is your approach to this kind of sites?Thanks so much and have a good day!
- The topic ‘Multi Language Custom Theme Development’ is closed to new replies.