Open bmcage opened 9 years ago
Hi @bmcage I'm in the process of re-factoring and documenting the code today and tomorrow. Your request would best be attempted after this. Can you wait a couple of days?
Yes, off course I can wait. The text is so little it probably is easier to work with some sort of config. Like that logo and title can also be changed (I don't mind your logo on it, but something referring to domain would be needed).
In order not to spawn issues at this time, some other observations:
I've made a lot of changes (mainly on the UI front) for mobile and I've moved all the text and configuration to a separate JSON file to make that easier.
Before I can use the code, I need internationalization, as kids are not that good with English.
Once I translate, it will be harder to contribute due to code differences. So, as a first contribution, I would like to add i18n. I never did real javascript coding, but that should not be a problem, except for the fact that I am not current to best practices in javascript.
So, to add i18n, I would follow guide at http://www.obviel.org/en/1.0b/i18n.html Should not be too hard as there is little English text
1/So, in index.html: change eg Max Size (MM): to _(Max Size (MM):) 2/extract the po as lithopane.po 3/create my localization, eg nl.po 4/use pojson to create the json language data
It still seems that after download and putting the site up, I need to manually copy the dutch json language data to the gettext object. Perhaps there is a more elegant method. One would want to avoid downloading all po data of all languages though, not sure if possible with javascript.