busybox Digest, Vol 2, Issue 11

Lord Sidiuz alastors at gmail.com
Sun Sep 4 05:03:32 UTC 2005


> better to call it something more likely to be unused like BB_SETTERM
> -mike
> 

yeah, I thaugh about it but it seemed more natural ps# but ok you are
right I think I'll change it, I'll send the patch soon because nobody
seemed to say no to my idea,

*******************************

> Is this setterm the same one as I get when I type "man setterm"?  If so,

yes it is

> what's PS3 for?

I need it to save the configuration, I could use a file but I don't like that,
the thing I put in ps# is the escapes codes for the colors and staff, 

> > if internationalitation is what you wan't it can be done at compile
> > time, just make usage.h be a symlink to usage_english.h and anyone can
> > make a usage_spanish.h or usage_deucth.h and then edit the symlink to
> > get the rigth languaje, ok it would also be nessesary to change every
> > source that use
> >  printf ( " hello something error\n " );
> >
> > to this
> >  printf ( HELLO_SOMETHING_ERROR );
> >
> > and make one file containing all the strings e.g.
> 
> I'm familiar with this sort of thing.  We should actually have a message
> lookup table we index into, because gcc sucks at merging duplicate strings.
> (The macro can hide that.)
> 
> That's probably a good idea anyway. :)
> 
actually we could use defines like this, when you do the make
menuconfig add a new option for configuring the lang, default to
english of course, and then in the files that contains the actual
messages
use something like this:

#if LANG=english
#define mesage1 "the message"
...
#else if LANG=spanish
#define mesage1 "el mensaje"
...
#else if LANG=russian
#define mesage1 "el mensajobski" //sorry if that is offensive I just
can't help myself
...

ok that it for now.


-- 
No corrijas al necio no sea cosa que te odie, corrije al sabio y te lo
agradecera.
Al que a buen árbol se arrima buena sombra lo cobija.
Debes tener siempre fría la cabeza, caliente el corazón y larga la mano.
Lo mejor que podemos hacer por otro no es sólo compartir con él
nuestras riquezas, sino mostrarle las suyas.



More information about the busybox mailing list