Latest news 2025-07-01: Ebook Sale July 2025. Cybercrime fiction short stories Unsocial Media and Smile for the Camera free; crime fiction short story The Briefcase free; short story noir crime fiction I’ve Heard the Mermaid Sing free; crime fiction novel The Private Enemy US$1.99; illustrated children’s story The Foolish Hedgehog US$0.99.

Bug Tracker RSS feed

ID 284🔗
Date: 2025-01-24 16:22:34
Last update: 2025-01-26 16:33:01
Status Closed (Fixed)
Category tracklang
Version 1.6.3
Summary Detecting loaded languages with babel

Return to Search Results

Sign in to subscribe to notifications about this report.

Description

Hi Nicola,

Not really a bug, but according to the manual:

> Unfortunately I can’t find any way of detecting a list
> of languages loaded through babel’s new \babelprovide
> command. As far as I can tell, the only stored list is
> in \bbl@loaded which only contains the languages loaded
> through package options.

I presume what you want is \LocaleForEach. Try:

----------------------------------
\documentclass{article}

\usepackage[danish]{babel}
\babelprovide{hindi}

\begin{document}

\selectlanguage{greek}{Blah}

\LocaleForEach{\message{*** #1 ***}}

\end{document}
-----------------------------------

All ways to load locales are recognized: as package option, with \babelprovide and with lazy loading.

Javier

MWE

No mwe.tex

Evaluation

That's great, thank you. I'll look into it.

Update 2025-01-26: I've added a check for \LocaleForEach and uploaded v1.6.4 to CTAN.

Comments

0 comments.


Add Comment

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account. All guest comments have to be manually checked before they appear on the page. There are too many bots trying to spam the site to allow unauthenticated users to post without verification.

Comment:


You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=284

Return to Search Results