[Top][All Lists]

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

Re: texinfo-6.8.90 pretest

From: Gavin Smith
Subject: Re: texinfo-6.8.90 pretest
Date: Sun, 23 Oct 2022 14:05:55 +0100

On Sun, Oct 23, 2022 at 03:23:57PM +0300, Eli Zaretskii wrote:
> > From: Gavin Smith <gavinsmith0123@gmail.com>
> > Date: Sun, 23 Oct 2022 13:13:57 +0100
> > Cc: pertusus@free.fr, bug-texinfo@gnu.org
> > 
> > The translation is done by setting the LANGUAGE environment variable
> > but this does not work if the locale is C.  All it needs is LC_MESSAGES
> > to not be "C" (or "POSIX") for LANGUAGE to work properly.
> But LC_MESSAGES doesn't work on Windows, so I guess the translation
> won't, either?
> Don't translations use some general Perl capabilities?  And if so, do
> those capabilities not work on Windows?

We bundle the libintl-perl library, which isn't part of a core Perl
installation as far as I know.

It would need testing to see if it worked on Windows.  For example,
you can see the "Document sans titre" strings are translated below:

$ cat test.texi
\input texinfo

@documentlanguage fr

@node Test Node
@chapter Test


$ texi2any --html --no-split test.texi
test.texi: warning: must specify a title with a title command or @top
$ cat test.html
<!DOCTYPE html>
<!-- Created by GNU Texinfo 6.8.90, https://www.gnu.org/software/texinfo/ -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Document sans titre</title>

<meta name="description" content="Document sans titre">
<meta name="keywords" content="Document sans titre">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2any">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="#Test-Node" rel="start" title="Test Node">


<body lang="fr">

<div class="chapter-level-extent" id="Test-Node">
<h2 class="chapter" id="Test">1 Test</h2>



reply via email to

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