[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help needed



On Mon, 17 Aug 1998, Michael Sobolev wrote:

> I am trying to figure out how to localize bash scripts.  Can anybody give me a
> hint where I could look for the information?  The info files for bash only
> speak about $"..." construct, which permits to use appropriately localized
> strings.  But where they are taken from?

They are taken from the same .mo files which are used for C programs,
normally in /usr/share/locale.

Try this:

#!/bin/sh
TEXTDOMAIN=fileutils
echo $"group number"

I obtain this:

número de grupo

(because I have LC_ALL=es_ES in my environment).

You will find more information about creating .mo files from .po files in
the gettext manual.

Also, you will find (I hope) more information about the exact search path
for .mo files in the libc manual (maybe).

Hope this helps.

-- 
 "269a33013629063ed1352df69eb4c663" (a truly random sig)


Reply to: