Localized maxima?



Currently locale stuff does not work for maxima-local. But "make
install" should copy es.mo to the correct place so that maxima finds
it.

The locale is read from environment variables so

  LANG=es maxima

should be using the translated messages.


Andrej



On Sun, Feb 14, 2010 at 2:05 PM, Raymond Toy <toy.raymond at gmail.com> wrote:
> I noticed that there is locale/es.po that contains translations of many
> of maxima's messages. ?Does this actually work? ?It doesn't for me.
>
> AFAICT, intl.lisp looks for messages in directories like
> locale/es/LC_MESSAGES/maxima.mo when the locale is "es" and the domain
> is "maxima". ? I played around a bit and moved locale/es.mo to
> locale/es/LC_MESSAGES/maxima.mo. ? Then I manually set the locale and
> domain to "es" and "maxima". ? That's not enough. ?I added
> (intl:textdomain "maxima") at the top of src/comm.lisp and recompiled.
> After doing all of this, messages are translated. ?Pretty nice!
>
> Although I'm basically illiterate, perhaps we should fix these things so
> our literate friends can read maxima messages in their own language?
>
> Here is what I think needs to be done:
>
> o Put (intl:textdomain "maxima") in each src file. ?Or at least set it
> when compiling maxima.
> o Adjust intl::*locale-directories* appropriately so maxima-local can
> find the translations.
> o Move es.po to locale/es/LC_MESSAGES/maxima.po.
> o Maxima should call (intl:setlocale) to set the locale from the
> environment variables on startup.
>
>
> Ray
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>