On Sun, Dec 31, 2023 at 03:08:22PM +0200, Eli Zaretskii wrote:
> We have current-iso639-language, but its value is a 2-letter string,
> the first 2 characters of the locale's name.  So I think this should
> be a new variable, and Info-documentlanguage sounds like a good
> candidate.

Done in commit 85091d47f (2023-12-31).

> > There is the minor question of what to do if a document has more than
> > one @documentlanguage directive, but if that is the case, we can take
> > the first one that occurs, or the last, or none at all, whichever is
> > easiest.
> 
> If this becomes an issue in Info manuals, we could extend the
> Info-documentlanguage variable to have values that are not just a
> single string, but, say, a list of elements of the form
> 
>   (LANG START END)
> 
> where START and END are character positions for the region whose
> language is LANG.  But I'd wait with such complications until they
> become a real problem.

Yes, agreed.  The document language is barely needed for Info output
as it is and multi-language manuals are rare to non-existent.  If
it is a genuine problem then a user could split their document into
separate Info files.

Reply via email to