Re: Please don't rely on gettext and gettext.sh during client runtime

Stéphane Graber <stgraber-GeWIH/[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Warren Togami wrote:
> [warren@newcaprica ldm-trunk]$ grep -r "gettext.sh" *
> rc.d/I00-nbd-checkupdate:. gettext.sh
> 
> This requires me to pull in more than 5MB of additional packages into 
> the chroot.  It should be entirely unnecessary to have gettext.sh and 
> gettext during runtime.  Localized shell scripts in both Debian and 
> Fedora's initscripts somehow pull strings from .mo files without 
> gettext.sh being necessary.  Please figure out how that works?
> 
> I am not pulling gettext into my chroot only to translate a single shell 
> script.  This failure however causes other scripts after it to fail 
> silently (nothing in ldm.log) due to set -e.  Not fun.
> 
> Warren Togami
> [email protected]

Hi,

I need these shell scripts to be translated, I00 is only one of the 3 or
4 scripts that'll be using gettext.
I basically just followed the guides provided on gettext's website and
so assumed that it's the right way of doing it.

I never heard that scripts are magically translated without them (I
don't use a translated system so ...) and if so I don't really see how
I'm supposed to extract the strings to translate in order to generate
the .pot without having them use gettext's function and xgettext.

Please provide more information on how that magic works, otherwise I'll
just go ahead with what upstream gettext says (we can still check for
gettext.sh and if not present just use a regular eval instead of
eval_gettext).

Stéphane
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmAV0EACgkQjxyfqkjBhuw6KQCfYB3yGsrLOMXTxIncE3f/PHNk
WegAnAsiipi46uEG5cUT+qfgGL6nSIvc
=uvOz
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.