[Top][All Lists]

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

Re: [bug-gawk] Possible errata in pdf version 4.2

From: arnold
Subject: Re: [bug-gawk] Possible errata in pdf version 4.2
Date: Tue, 08 Jan 2019 12:28:33 -0700
User-agent: Heirloom mailx 12.5 7/5/10


bamber ward <address@hidden> wrote:

> I have ubuntu 16.4. In the Chapter 13 , everthing works fine for guide.awk
> but the final translations are not made. I have unset LANGUAGE  but this
> not alter matters. Perhaps you could suggest workarounds ( if any exist )
> for this in future editions.This topic comes up fairly regularly in the
> ubuntu forums.

It took a while; I did some experimentation and it's not simple. I
have added the following doc, which is correct at least for Ubunt 16.04.


@quotation NOTE
The following instructions apply to GNU/Linux with the GNU C Library. Be
aware that the actual steps may change over time, that the following
description may not be accurate for all GNU/Linux distributions, and
that things may work entirely differently on other operating systems.
@end quotation

The next step is to make the directory to hold the binary message object
file and then to create the @file{guide.mo} file.
The directory has the form @address@hidden/LC_MESSAGES}, where
@var{locale} is a locale name known to the C @command{gettext} routines.

How do we know which locale to use?  It turns out that there are
three different environment variables used by the C @command{gettext} routines.
In order, they are @env{$LANGUAGE}, @env{$LC_ALL}, and @address@hidden,
sort of. It seems that if @env{$LC_ALL} is set to @samp{C}, then no translations
are done. Go figure.}
Thus, we check the value of @env{$LANGUAGE}:

$ @kbd{echo $LANGUAGE}
@print{} en_US.UTF-8
@end example

We next make the directories:

$ @kbd{mkdir en_US.UTF-8 en_US.UTF-8/LC_MESSAGES}

reply via email to

[Prev in Thread] Current Thread [Next in Thread]