-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language support? #21
Comments
Yes! All the text is either in the template, or in the list of parts. If those are translated, it would be straightforward to choose between them - assuming the simpler option isn't just to copy and translate the whole thing. What it needs is someone fluent in languages other than English to do the translation work. |
Ok, i think that we wait until we think that the english version is nearly OK. Then i duplicate the index.html to index_de.html for example for a german version and begin to translate it. |
Rather than putting the template in a separate file, we can use a separate 'script' tag, and choose which to use based on the language setting. |
Erm, maybe I do not understand all things, but if we duplicate the index.html then later we have to correct all mistakes in all copied index.hmtl files, right ? |
Indeed, that's why I'm suggesting embedding additional templates as preferable to duplicating the whole thing. Any errors in the templates will still need correcting in all languages, though. |
if we use template files with a javascript load, we loose the possibility to open the generator on a local machine, because of security reasons. is this ok? |
I'd rather keep it inline if we can. The template data isn't that big that we couldn't embed templates for multiple languages in one page; alternately we could fork the entire page, and put the javascript in its own file (which can be loaded on local FS). I'm absolutely opposed to writing anything in PHP. :) |
Let me know if it is worth creating some extra tokens, some languages have different plurals and genetive cases so using {{agent}}s, {{agent}}'s, {{owner}}'s, and {{owners}}' would not necessarily work in other languages, these contructions are fairly rare ({{agent}}s is the most common). |
Is it possible to make this little Gem language independent?
The text was updated successfully, but these errors were encountered: