# Package Algorithmic in French

I use

\usepackage[section]{algorithm}
\usepackage{algorithmic}


to create an algorithm, I'd like to change "algorithm, begin, end while ..." to French. Is that possible?

This is my example with the package \usepackage{algorithmic}:

\newcommand{\algorithmicfor}{\textbf{Pour}}
\begin{algorithm}[H]
\Begin{ \For{$x\in X$}{ $NbSuccInS(x) \longleftarrow 0$\; $NbPredInMin(x) \longleftarrow 0$\; $NbPredNotInMin(x) \longleftarrow |ImPred(x)|$\;
} }
\caption{My Algorithm} \label{alg:test}
\end{algorithm}


I have these errors: undefined control sequence \Begin \for, \newcommand ....

-
please make this a complete document showing all packages used –  David Carlisle Sep 30 '12 at 18:01
thank you for answer but i can't find in the list Algorithm --> Algorithme have you an idea please ? –  researcher Sep 30 '12 at 22:01

The package defines all the fixed text words using simple macros that you can redefine with \renewcommand so for example

\newcommand{\algorithmicrequire}{\textbf{Require:}}
\newcommand{\algorithmicensure}{\textbf{Ensure:}}
\newcommand{\algorithmiccomment}[1]{\{#1\}}
\newcommand{\algorithmicend}{\textbf{end}}
\newcommand{\algorithmicif}{\textbf{if}}
\newcommand{\algorithmicthen}{\textbf{then}}
\newcommand{\algorithmicelse}{\textbf{else}}
\newcommand{\algorithmicelsif}{\algorithmicelse\ \algorithmicif}
\newcommand{\algorithmicendif}{\algorithmicend\ \algorithmicif}
\newcommand{\algorithmicfor}{\textbf{for}}
\newcommand{\algorithmicforall}{\textbf{for all}}
\newcommand{\algorithmicdo}{\textbf{do}}
\newcommand{\algorithmicendfor}{\algorithmicend\ \algorithmicfor}
\newcommand{\algorithmicwhile}{\textbf{while}}



-
have you an idea please ? –  researcher Sep 30 '12 at 17:50
Please edit the question to have a complete document that shows the problem. –  David Carlisle Sep 30 '12 at 17:52