bi
This commit is contained in:
parent
a864b4e8ae
commit
98676f03af
2 changed files with 9 additions and 5 deletions
|
@ -4,7 +4,13 @@
|
||||||
% begin document
|
% begin document
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
|
\bi{}{}
|
||||||
|
|
||||||
\bi{Hello world!}{}
|
\bi{Hello world!}{}
|
||||||
|
|
||||||
|
\bi{}{Bonjour monde !}
|
||||||
|
|
||||||
|
\bi{Hello world!}{Bonjour monde !}
|
||||||
|
|
||||||
% end document
|
% end document
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|
|
@ -9,12 +9,10 @@
|
||||||
|
|
||||||
% language commands
|
% language commands
|
||||||
|
|
||||||
\newcommand{\ifstr}[4]{\expandafter\ifstrequal\expandafter{#1}{#2}{#3}{#4}}
|
|
||||||
|
|
||||||
\newcommand{\bi}[2]{%
|
\newcommand{\bi}[2]{%
|
||||||
\ifstr{\mainlanguage}{en}{#1}{%
|
\expandafter\ifstrequal\expandafter{\mainlanguage}{en}%
|
||||||
\ifstrempty{#2}{TRANSLATE ME!}{#2}%
|
{\ifstrempty{#1}{\ifstrempty{#2}{}{TRANSLATE\_ME!}}{#1}}%
|
||||||
}%
|
{\ifstrempty{#2}{\ifstrempty{#1}{}{TRADUISEZ\_MOI\_!}}{#2}}%
|
||||||
}
|
}
|
||||||
|
|
||||||
\newcommand{\en}[1]{\textenglish{#1}}
|
\newcommand{\en}[1]{\textenglish{#1}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue