[latex3-commits] [git/LaTeX3-latex3-hyperref] extract-autoref: don't assume that languagename is defined (f950f9e)
Ulrike Fischer
fischer at troubleshooting-tex.de
Tue Dec 29 16:41:52 CET 2020
Repository : https://github.com/latex3/hyperref
On branch : extract-autoref
Link : https://github.com/latex3/hyperref/commit/f950f9e6043538018e3e54793da5afc76027d400
>---------------------------------------------------------------
commit f950f9e6043538018e3e54793da5afc76027d400
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue Dec 29 16:41:52 2020 +0100
don't assume that languagename is defined
>---------------------------------------------------------------
f950f9e6043538018e3e54793da5afc76027d400
loadlocale.dtx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/loadlocale.dtx b/loadlocale.dtx
index 4869b07..a090ab6 100644
--- a/loadlocale.dtx
+++ b/loadlocale.dtx
@@ -259,7 +259,10 @@
% \begin{macrocode}
\AddToHook{begindocument/before}
{
- \prop_gput:Nxx \g_@@_languages_prop {\languagename}{\languagename}
+ \tl_if_exist:NT \languagename
+ {
+ \prop_gput:Nxx \g_@@_languages_prop {\languagename}{\languagename}
+ }
\@ifpackageloaded{babel}
{
\@ifundefined{AddBabelHook}%have to get around polyglossias fake
More information about the latex3-commits
mailing list.