% Copyright 2007 by Nathanaël COTTIN <www.ncottin.net>.
%
% This program can be redistributed and/or modified under the terms
% of the GNU Public License, version 3.

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{century}[2007/07/21 version 0.0.1]

\RequirePackage{ifthen}

\provideboolean{@french}

\newcommand{\century}[2][]
	{\def\@centuryname{century}%
	\if@french
		\def\@centuryname{si\`ecle}%
	\fi%
	\def\@centuryexp{th}%
	\ifthenelse
		{\equal{#1}{}}
		{\if@french
			\def\@centuryexp{e}%
		\fi}
		{\def\@centuryexp{#1}}%
	\textsc{\romannumeral #2}\textsuperscript{\@centuryexp} \@centuryname}

