I use tikzpicture in my document to draw my results and I use an enough generic way that I can reuse my tikz files in various document (article, thesis, beamer...).
I would like to set equivalent caption/label/keyword of my picture for different languages I use (typically english and french) and latex use the good one depending on the used language in the document. I would try the translator package but I can't find it anywhere, moreover I am not sure that is the good way to do that.
Is there a way to do that ?
It could look like :
\documentclass[french]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\begin{document}
\begin{figure}
\def\mycaption{Coucou}
% where \mycaption is different in french and english but I give both captions.
% For example (but no there is no requirement of the way to do it) :
% \mycaption[english]{Hello}
% \mycaption[french]{Coucou}
\caption{\mycaption}
\end{figure}
\end{document}

\i10nCaptionthat takes one argument (language) and returns the term “caption” in your language, so\i10nCaption{english}shoul return “caption”, whilei10nCaption{german}(ordeutschif you prefer) should return “Abbildung” (i was too lazy to look up the french term. – Ronny Feb 14 '12 at 12:03babelor something else can you the right one depending on the language I use in my document. Is it clearer ? – Sigmun Feb 14 '12 at 12:14translator, I understood roughly, what you wanted to do. – Ronny Feb 14 '12 at 13:14bicaptionpackage a try. – Axel Sommerfeldt Feb 15 '12 at 19:20