% arara: pdflatex

% If texosquery.cfg is correctly set up to use texosquery-jre8
% this should work in restricted mode. The texosquery.cfg
% default settings require --shell-escape

\documentclass{article}

\usepackage{tex-locale}

\title{Sample Document Illustrating the tex-locale package}
\author{Nicola Talbot}

\begin{document}
\maketitle

texosquery version: \texttt{\TeXOSInvokerName\ 
\csname ver@texosquery.tex\endcsname}.
OS name: \LocaleOSname.
OS version: \LocaleOSversion.
OS arch: \LocaleOSarch.
PDF now: \LocaleNowStamp.
(Compare \verb|\pdfcreationdate|: \pdfcreationdate.)
Tag: \LocaleOStag.
Codeset: \LocaleOScodeset.

\ifx\LocaleMainFile\empty
\else
  File \texttt{\LocaleMainFile} last modified: 
  \texttt{\LocaleFileMod}.
\fi

Main locale: \texttt{\LocaleMain} (\texttt{\LocaleMainDialect}).

\ForEachTrackedDialect{\thisdialect}{%
  \section{\LocaleLanguageTag{\thisdialect}}

  Dialect label: \texttt{\thisdialect}.
  Language name: \LocaleLanguageNativeName{\thisdialect}
  (\LocaleLanguageName{\thisdialect}).
  \LocaleIfHasRegionName{\thisdialect}%
  {%
    Region name: \LocaleRegionNativeName{\thisdialect}
    (\LocaleRegionName{\thisdialect})%
  }%
  {No region name}.
  \LocaleIfHasVariantName{\thisdialect}%
  {%
    Variant name: \LocaleVariantNativeName{\thisdialect}
    (\LocaleVariantName{\thisdialect})%
  }%
  {No variant name}.

  Full date: \LocaleFullDate{\thisdialect}. 
  Long date: \LocaleLongDate{\thisdialect}. 
  Medium date: \LocaleMediumDate{\thisdialect}. 
  Short date: \LocaleShortDate{\thisdialect}. 
  First day of week: \LocaleFirstDayIndex{\thisdialect}
   (\LocaleDayName{\thisdialect}{\LocaleFirstDayIndex{\thisdialect}}
   / \LocaleShortDayName{\thisdialect}{\LocaleFirstDayIndex{\thisdialect}}).

  Current month: \LocaleMonthName{\thisdialect}{\month} /
   \LocaleShortMonthName{\thisdialect}{\month}.

  Standalone (display form) first day of week:
   \LocaleStandaloneDayName{\thisdialect}{\LocaleFirstDayIndex{\thisdialect}}
   / \LocaleStandaloneShortDayName{\thisdialect}{\LocaleFirstDayIndex{\thisdialect}}.

  Standalone (display form) current month:
   \LocaleStandaloneMonthName{\thisdialect}{\month} /
   \LocaleStandaloneShortMonthName{\thisdialect}{\month}.

  Full time: \LocaleFullTime{\thisdialect}. 
  Long time: \LocaleLongTime{\thisdialect}. 
  Medium time: \LocaleMediumTime{\thisdialect}. 
  Short time: \LocaleShortTime{\thisdialect}. 

  Numeric: \LocaleNumericGroupSep{\thisdialect} (group sep)
  \LocaleNumericDecimalSep{\thisdialect} (decimal sep)
  \LocaleNumericMonetarySep{\thisdialect} (monetary sep)
  \LocaleNumericExponent{\thisdialect} (exponent symbol).
  \LocaleNumericPercent{\thisdialect} (percent symbol).
  \LocaleNumericPermill{\thisdialect} (permill symbol).
  \LocaleIfNumericUsesGroup{\thisdialect}{Uses}{Doesn't use}
  numeric group separator.

  Currency label: 
  \LocaleCurrencyLabel{\thisdialect}
  (\LocaleCurrencyRegionalLabel{\thisdialect}).

  Currency symbol: 
  \LocaleCurrencyTeXSymbol{\thisdialect}.
}
\end{document}
