[LUG.ro] Gettext

Horacio Castellini lugro@lugro.org.ar
Tue, 29 Oct 2002 10:11:12 -0300 (ART)


 --- Sebastián D. Criado <scriado@ciudad.com.ar>
escribió: > -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> Perdon por mi ignorancia Julio, pero ¿ podes aclarar
> un poco más el tema ?
> 
> Saludo.-

A ver esto te aclara o te oscurece el panorama?
SYNOPSIS
       #include <libintl.h>

       char * gettext (const char * msgid);
       char * dgettext (const char * domainname, const
char * msgid);
       char * dcgettext (const char * domainname,
const char * msgid,
                         int category);

DESCRIPTION
       The  gettext,  dgettext and dcgettext functions
attempt to
       translate a text string into the user's  native
 language,
       by looking up the translation in a message
catalog.




> 
> On Monday 28 October 2002 22:10, you wrote:
> > Hola, gente.
> >
> > Tengo un problema con la i18n/l10n en Slackware
> 8.1
> > No funcan las traducciones, aparentemente es un
> problema en gettext,

Con las bibliotecas viejas te pasaba lo mismo? Ojo que
el gettext usa las variables de entorno

LAN=es
LANG=es_ES
LC_CTYPE=es_ES
LC_MESSAGES=es_ES
LINGUAS=es

pues según el manual

  Translation lookup operates in the context of the 
current
       locale.  For  the  gettext  and  dgettext 
functions,  the
       LC_MESSAGES locale facet is used. It is 
determined  by  a



Sino Ca marche pas! Igualmente en debian potato
tampoco estan completas para el idioma español.

> pero
> > no le encuentro la vuelta. Bajé y recompilé el
> paquete fuente, pero no hace
> > diferencia.
> > En un Slack 7.1 funciona correctamente.
> >
> > Que puedo intentar?

Que recuerde las del 7.0 tampoco andaban bien....



Ahora podés usar Yahoo! Messenger desde tu celular. Aprendé cómo hacerlo en Yahoo! Móvil: http://ar.mobile.yahoo.com/sms.html