skiadas / PanthR

Statistics front-end and webserver with R connection
1 stars 2 forks source link

Multi-language support #6

Open altermattw opened 11 years ago

altermattw commented 11 years ago

Ideally, we'll put the text labels for buttons and other GUI components into some kind of table structure, where each row corresponds to a class of component (e.g., "run" button) and each column states the text to use for that language. What to use for the table structure?

skiadas commented 11 years ago

This is strictly speaking only GUI related, so I removed the jsstats label. The jsstats library would be focusing purely on statistics computations. For instance it would have objects to hold a dataset, a variable, commands to compute descriptive statistics, to do tests, to return random numbers according to a distribution, etc.

skiadas commented 11 years ago

There is already a library for this for node.js, should be easyish to incorporate:

https://github.com/mashpie/i18n-node

btw i18n is the term you want to be searching for in most cases, it's supposed to be a shortcut for "internationalization".

altermattw commented 11 years ago

Oh, good. We could consider putting into the grant money for modern language faculty to work over the summer to develop one or two examples of internationalized labels.

altermattw commented 11 years ago

Link to stackoverflow discussion of internationalization with handlebars: http://stackoverflow.com/questions/7760332/how-to-make-i18n-with-handlebars-js-mustache-templates