-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 2 replies
- 17 views
-
- 0 replies
- 10 views
-
- 0 replies
- 5 views
-
Pay only $29.99 for this 2022 Web Development for Beginners Bundle
By News Staff,
- neowin deals
- online courses
- (and 11 more)
- 0 replies
- 7 views
-
Save 97% off this 2022 Complete Power Coder Bootcamp Bundle
By News Staff,
- neowin deals
- swift
- (and 13 more)
- 0 replies
- 2 views
-
Question
Class
Hello!
I'm not a webdesigner, noir a webdeveloper. But I'm making a little website, where I have template website, made of HTML5 + CSS3. My webhost does not support any PHP, and I was wondering if it's possible to make it multilingual with 1 click.
I had a little thoery/idea how it could work, but since I have not clue what HTML5 or CSS3 can do, I'm not sure if it's possible to do, anyway, here it goes:
The template has a index.html (which has all the text) and loads some .js and .css files for the animations and style.
(1) So, immediately my idea was, to replace all the text with a variable, that I store in a .xml/.lang file, where I define each "paragraph" that I have in my index.html. Make this xml file for all language that I have, for example I would have: english.lang (.xml) then german.lang (.xml) and so forth. Then I make a button (or little flags) in the index.html and if you click and english flag, the website replaces all text variables with the once stored in the English one, for German the other, and for the 3rd also. Is this possible, and if, how can I define the .xml/.lang file?
(2) My second idea was, to store the text in the ccs file and load the language as "profiles", make also little flags somewhere in the corner and then if 1 is clicked it changes the text shown, just as you make font decrease/increase size with CSS3.
(3) ...
That's all I had in mind and idea, but as sad....I have no f**** clue how to program the code for it, for me, logically it seam so easily to be done, but maybe in code it's a long walk. Help is much-much appreciated, or any other, more simple or easy idea too.
Thanks for reading. :)
Link to comment
https://www.neowin.net/forum/topic/1165136-how-to-make-a-html5css3-website-multilingual-with-1-click/Share on other sites
17 answers to this question
Recommended Posts