blob: 2a886b3804622b3536acc3b051f1506cd18a1bc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{regions2}[2014/09/29 v1.0 (NLCT) Sample package to test tracklang.sty]
\RequirePackage{tracklang}
\newcommand*{\weightunit}{kg}
\newcommand*{\lengthunit}{mm}
\newcommand*{\currencyunit}{EUR}
\newcommand*{\unitname}{units}
\newcommand*{\defaultunits}{%
\renewcommand*{\weightunit}{kg}%
\renewcommand*{\lengthunit}{mm}%
\renewcommand*{\currencyunit}{EUR}%
}
\AnyTrackedLanguages
{%
\ForEachTrackedDialect{\this@dialect}{%
\IfTrackedLanguageFileExists{\this@dialect}%
{regions-}% prefix
{.ldf}%
{%
\PackageInfo{tracklang}{Loading `regions-\CurrentTrackedTag.ldf'
for language `\this@dialect'}%
\input{regions-\CurrentTrackedTag.ldf}%
\ifx\CurrentTrackedTag\CurrentTrackedLanguage
\defaultunits
\else
\InputIfFileExists{regions-\CurrentTrackedLanguage.ldf}%
{}%
{%
\PackageWarning{regions}{No support for language
`\CurrentTrackedLanguage'}%
}%
\fi
}%
{%
\PackageWarning{regions}%
{No support for language `\this@dialect'}%
}%
}%
}
{% no tracked languages, default already set up
}
\endinput
|