diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/gloss-welsh.ldf')
-rw-r--r-- | Master/texmf-dist/tex/latex/polyglossia/gloss-welsh.ldf | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-welsh.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-welsh.ldf index 5b68cfa9d9c..81174769141 100644 --- a/Master/texmf-dist/tex/latex/polyglossia/gloss-welsh.ldf +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-welsh.ldf @@ -1,4 +1,4 @@ -% Language definition file (part of polyglossia v2.1 -- 2024/03/07) +% Language definition file (part of polyglossia v2.2 -- 2024/07/15) % \ProvidesFile{gloss-welsh.ldf}[polyglossia: module for Welsh] @@ -15,21 +15,26 @@ % BCP-47 compliant aliases \setlanguagealias*{welsh}{cy} -\providebool{welsh@formaldate} +\@ifundefined{ifwelsh@formaldate}% + {\newif\ifwelsh@formaldate}{} -\define@choicekey*+{welsh}{date}[\xpg@val\xpg@nr]{long,short}[short]{% - \ifcase\xpg@nr\relax - % long: - \welsh@formaldatetrue - \or - % accented: - \welsh@formaldatefalse - \fi - \xpg@info{Option: Welsh, date=\xpg@val}% -}{\xpg@warning{Unknown date value `#1'}} +\DeclareKeys[polyglossia/gloss/welsh] + { + date.choice:, + date / long.code = + {% + \welsh@formaldatetrue + }, + date / short.code = + {% + \welsh@formaldatefalse + }, + date.default:n = short, + date/unknown.code = \xpg@warning{Unknown date value `#1'}, + } % Register default options -\xpg@initialize@gloss@options{welsh}{date=short} +\InitializeGlossOptions{welsh}{date=short} \def\captionswelsh{% \def\refname{Cyfeiriadau}% |