summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/tracklang/samples/sample-tracklang6.tex
blob: 6f174f4a02ade52ed802cf26a872ae6f9b25acde (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
% arara: pdftex

\input tracklang

\TrackLangFromEnv % lookup LC_ALL or LANG
Environment query results:
language: \TrackLangEnvLang, 
territory: \TrackLangEnvTerritory,
codeset: \TrackLangEnvCodeSet,
modifier: \TrackLangEnvModifier.

\TrackPredefinedDialect{british}
\TrackPredefinedDialect{american}
\TrackPredefinedDialect{canadian}
\TrackPredefinedDialect{canadien}
\TrackPredefinedDialect{belgique}

\TrackLocale{de-NA@new}

\TrackLocale{manx}

Dialect Regions:

\ForEachTrackedDialect{\ThisDialect}{\ThisDialect:
 \TrackedIsoCodeFromLanguage{\TwoLetterIsoCountryCode}{\ThisDialect}%
 \IfHasTrackedDialectModifier\ThisDialect
 { (\GetTrackedDialectModifier\ThisDialect)}%
 {}.
}

Language Codes:

\ForEachTrackedLanguage{\ThisLanguage}{\ThisLanguage:
 \TrackedIsoCodeFromLanguage{\TwoLetterIsoLanguageCode}{\ThisLanguage}. }

\ForEachTrackedDialect{\ThisDialect}
{%
  \IfTrackedLanguageFileExists{\ThisDialect}{animals-}{.ldf}%
  {Found ``animals-\CurrentTrackedTag.ldf''\par}%
  {No file found for dialect ``\ThisDialect''\par}
}

\bye