cloud
cloud copied to clipboard
Internationalization
Is it possible to translate Sage?
There are some efforts to at least translate the tutorial into other languages. You should ask about this at the Sage mailing lists, not here.
Thank you very much for your answer! I'll write on ML ASAP :)
Nonetheless this is a valid ticket, if someone can change the title a bit. For instance, the Sage notebook https://github.com/sagemath/sagenb/blob/master/sagenb/babel.cfg has support for internationalization, and several localizations. The Sage Math Cloud should have the same. @williamstein :smiley: What mechanism would be best?
On Mon, Dec 15, 2014 at 8:52 AM, kcrisman [email protected] wrote:
Nonetheless this is a valid ticket, if someone can change the title a bit. For instance, the Sage notebook https://github.com/sagemath/sagenb/blob/master/sagenb/babel.cfg has support for internationalization, and several localizations. The Sage Math Cloud should have the same. @williamstein https://github.com/williamstein [image: :smiley:] What mechanism would be best?
I don't know yet.
Reply to this email directly or view it on GitHub https://github.com/sagemath/cloud/issues/180#issuecomment-67025179.
William Stein Professor of Mathematics University of Washington http://wstein.org
In particular, is SMC Python-based enough that one could just use Babel, or not? Really it's just a matter of putting all the strings in views (and controllers?) in the gettext
or the usual lazy _()
wrapper, in that case. I am guessing there are quite similar mechanisms for other situations.
E.g. https://github.com/sagemath/sagenb/commit/a11b6f6b9b2049dd22a25b7c4f8e246606075331
BTW, maybe you can change this ticket name to "internationalization".
- William Stein (cell phone)
On Dec 15, 2014 9:07 AM, "kcrisman" [email protected] wrote:
In particular, is SMC Python-based enough that one could just use Babel, or not?
SMC is very much not python based.
Really it's just a matter of putting all the strings in views (and controllers?) in the gettext or the usual lazy _() wrapper, in that case. I am guessing there are quite similar mechanisms for other situations.
Reply to this email directly or view it on GitHub.
Hmm, okay, so then not that per se. Looking at https://github.com/sagemath/cloud/blob/master/page/course.html and friends it looks like it's the Coffeescript that is doing the control, then? Maybe https://github.com/andyearnshaw/Intl.js would be useful... Anyway, definitely important to bake in if possible.
@kcrisman actually this does need all of this. all static front-end html pages need to be produced based on translation files and the back-end needs a key-value lookup table, which knows the user's language from the settings. What's actually necessary are good translation files, which are used by the existing tool-chains for this, and can be parsed from python and node.js (server side).
Hello, what format these translation files should have? I'm ready to create text translation files.
@AndreWin we haven't surveyed and decided which system we'll use. So, this will take some time. (besides that, the first huge step is to extract all the tokens)
@haraldschilly - just for reference on this ticket, what are some of the possible players?
Also, maybe a separate ticket could be to find all translatable strings, and then have a way to (easily) update them, given the (very!) rapid pace of SMC adding features. But it would be unfortunate to wait until SMC 'settles down' to do this, when it might be harder to do this.
@kcrisman honestly, I personally have no idea. I assume the next best one which satisfies these three requirements is fine:
- supported by those online-translation tools, that helps to gather translations from users. e.g. how does ubuntu do it for it's applications? i think they do it online.
- text based, such that we can edit it inside SMC
- libraries for node.js and python (but doesn't need to be, parsing textfiles shouldn't be a problem)
Hi! Is this way (internationalization using CSS) good?
There is society of people who translate open source projects: https://translatewiki.net/