%\iffalse
%<*package>
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
%</package>
%<*driver>
\documentclass{nlctdoc}

\usepackage[ukrainian,english]{babel}
\usepackage[default]{arsenal}
\babelfont[ukrainian,english]{rm}{Arsenal}
\babelfont[ukrainian,english]{tt}{Arsenal}
\title{Glossaries Language Module: glossaries-ukrainian}
\author{Boris Veytsman}
\date{version 1.0 (2025-12-21)}

\begin{document}
\DocInput{glossaries-ukrainian.dtx}
\end{document}
%</driver>
%\fi
%\maketitle
%
%This language module simply needs to be installed. The \sty{glossaries}
%package will automatically load it if required.
%
% It is based on \textsl{glossaries-english} package by Nicola Talbot.
%
%
%
%\StopEventually{}
%\section{The Code}
%\iffalse
%    \begin{macrocode}
%<*glossaries-ukrainian.ldf>
%    \end{macrocode}
%\fi
%\subsection{glossaries-ukrainian.ldf}
%    \begin{macrocode}
\ProvidesGlossariesLang{ukrainian}[2025/12/21 v1.0]

\glsifusedtranslatordict{Ukrainian}
{%
  \addglossarytocaptions{\CurrentTrackedLanguage}%
  \addglossarytocaptions{\CurrentTrackedDialect}%
}
{%
  \@ifpackageloaded{polyglossia}%
  {%
    \newcommand*{\glossariescaptionsukrainian}{%
      \renewcommand*{\glossaryname}{\textukrainian{Глосарій}}%
      \renewcommand*{\acronymname}{\textukrainian{Акроніми}}%
      \renewcommand*{\entryname}{\textukrainian{Позначення}}%
      \renewcommand*{\descriptionname}{\textukrainian{Опис}}%
      \renewcommand*{\symbolname}{\textukrainian{Символ}}%
      \renewcommand*{\pagelistname}{\textukrainian{Список сторінок}}%
      \renewcommand*{\glssymbolsgroupname}{\textukrainian{Символи}}%
      \renewcommand*{\glsnumbersgroupname}{\textukrainian{Числа}}%
    }%
  }%
  {%
    \newcommand*{\glossariescaptionsukrainian}{%
      \renewcommand*{\glossaryname}{Глосарій}%
      \renewcommand*{\acronymname}{Акроніми}%
      \renewcommand*{\entryname}{Позначення}%
      \renewcommand*{\descriptionname}{Опис}%
      \renewcommand*{\symbolname}{Символ}%
      \renewcommand*{\pagelistname}{Список сторінок}%
      \renewcommand*{\glssymbolsgroupname}{Символи}%
      \renewcommand*{\glsnumbersgroupname}{Числа}%
    }%
  }%
  \ifcsdef{captions\CurrentTrackedDialect}
  {%
    \csappto{captions\CurrentTrackedDialect}%
    {%
      \glossariescaptionsukrainian
    }%
  }%
  {%
    \ifcsdef{captions\CurrentTrackedLanguage}
    {
      \csappto{captions\CurrentTrackedLanguage}%
      {%
        \glossariescaptionsukrainian
      }%
    }%
    {%
    }%
  }%
  \glossariescaptionsukrainian
}
%    \end{macrocode}
% General default plural suffix:
%    \begin{macrocode}
\renewcommand*{\glspluralsuffix}{и}
%    \end{macrocode}
% Acronym default plural suffix:
%    \begin{macrocode}
\renewcommand*{\glsacrpluralsuffix}{\glspluralsuffix}
%    \end{macrocode}
% Acronym in \cs{textsc} default plural suffix
% (\cs{glstextup} is used to cancel the effect of \cs{textsc}):
%    \begin{macrocode}
\renewcommand*{\glsupacrpluralsuffix}{\glstextup{\glsacrpluralsuffix}}
%    \end{macrocode}
%\iffalse
%    \begin{macrocode}
%</glossaries-ukrainian.ldf>
%    \end{macrocode}
%\fi
%\iffalse
%    \begin{macrocode}
%<*glossaries-dictionary-Ukrainian.dict>
%    \end{macrocode}
%\fi
%\subsection{glossaries-dictionary-Ukrainian.dict}
%    \begin{macrocode}
\ProvidesDictionary{glossaries-dictionary}{Ukrainian}

\providetranslation{Glossary}{Глосарій}
\providetranslation{Acronyms}{Акроніми}
\providetranslation{Notation (glossaries)}{Позначення}
\providetranslation{Description (glossaries)}{Опис}
\providetranslation{Symbol (glossaries)}{Символ}
\providetranslation{Page List (glossaries)}{Список сторінок}
\providetranslation{Symbols (glossaries)}{Символи}
\providetranslation{Numbers (glossaries)}{Числа}
%    \end{macrocode}
%\iffalse
%    \begin{macrocode}
%</glossaries-dictionary-Ukrainian.dict>
%    \end{macrocode}
%\fi
%\Finale
\endinput
