I have a website I'm working on that I wish to add another few (properly translated) language options for, and I can't find as much readily accessible information as I thought I could on producing a multilingual website.
There's a nice amount of information on how to structure your URL schema (with .com/LANGUAGE being the nicest), but if you have http://www.example.com/en/, http://www.example.com/fr, and http://www.example.com/de — then for a static site, how do you avoid manually duplicating code just to drop-in each language's strings?
My site has about 8 webpages with on average 400 words of content on each page. It's not enough content to require a database for. However, the website is still in development and I don't want to wait until the 'end' (it's an informational tool) of its development cycle to create static versions for each language. I also don't want to swap out variables server-side because I am under the impression this will greatly diminish SEO scoring?
So, without much information of the topic available to me, I have devised a system/program that I would like some feedback of feasibility on - or if an alternative exists (?), before I begin.
...As I am using .git, I would also copy over only changes that need to be made, by comparing strings against existing variables. — The way I could compare files I have not yet thought through — was thinking of storing the variable for each string as a .html tag so that it is always existent in the file.
Does anybody know if a tool like this exists, or if there is a much more compelling and SEO-compliant method of performing this?
Thanks in advance.
edit, 2020: now I'd go with Hugo (or equivalent). Hugo is easier to install, has many more features, is much faster, has more themes, has a bigger community.
A great solution, which appeared in december, 2015, is Lektor, a "static Content Management System".
It's a static site builder with a built-in admin UI (to write posts and configure). Its system of "alternatives" is designed to localize and translate websites: https://www.getlektor.com/docs/content/alts/
pip install Lektor
lektor quickstart
It's a well established solution. Btw, it's by the creator of Flask.