Browse Source

provide translation depending on the main songbook language

remotes/origin/translate_notes
Romain Goffe 14 years ago
parent
commit
d2be71a718
  1. 51
      crepbook.cls

51
crepbook.cls

@ -77,6 +77,7 @@
\gdef\@email{} \gdef\@email{}
\gdef\@picture{} \gdef\@picture{}
\gdef\@picturecopyright{} \gdef\@picturecopyright{}
\gdef\@lang{english}
} }
\def\subtitle#1{\gdef\@subtitle{#1}} \def\subtitle#1{\gdef\@subtitle{#1}}
@ -126,11 +127,26 @@
\vspace{1.5cm} \vspace{1.5cm}
\newcommand{\l@belVersion}{\bf version :} \newcommand{\l@belVersion}{
\newcommand{\l@belDate}{\bf date :} \IfStrEq{\@lang}{english}{\bf version:}{}
\newcommand{\l@belAuthor}{\bf auteurs :} \IfStrEq{\@lang}{french}{\bf version :}{}
\newcommand{\l@belWeb}{\bf web :} }
\newcommand{\l@belMail}{\bf mail :} \newcommand{\l@belDate}{
\IfStrEq{\@lang}{english}{\bf date:}{}
\IfStrEq{\@lang}{french}{\bf date :}{}
}
\newcommand{\l@belAuthor}{
\IfStrEq{\@lang}{english}{\bf authors:}{}
\IfStrEq{\@lang}{french}{\bf auteurs :}{}
}
\newcommand{\l@belWeb}{
\IfStrEq{\@lang}{english}{\bf web:}{}
\IfStrEq{\@lang}{french}{\bf web :}{}
}
\newcommand{\l@belMail}{
\IfStrEq{\@lang}{english}{\bf mail:}{}
\IfStrEq{\@lang}{french}{\bf mail :}{}
}
\begin{flushleft} \begin{flushleft}
\begin{tabular}{l l} \begin{tabular}{l l}
@ -344,11 +360,26 @@
\fi% \fi%
\RequirePackage{xspace} \RequirePackage{xspace}
\newcommand{\intro}{intro\xspace} \newcommand{\Intro}{
\newcommand{\outro}{outro\xspace} \IfStrEq{\@lang}{english}{Intro\xspace}{}
\newcommand{\bridge}{bridge\xspace} \IfStrEq{\@lang}{french}{Intro\xspace}{}
\newcommand{\txtChorus}{refrain\xspace} }
\newcommand{\txtVerse}{couplet\xsapce} \newcommand{\Outro}{
\IfStrEq{\@lang}{english}{Outro\xspace}{}
\IfStrEq{\@lang}{french}{Outro\xspace}{}
}
\newcommand{\Bridge}{
\IfStrEq{\@lang}{english}{Bridge\xspace}{}
\IfStrEq{\@lang}{french}{Pont\xspace}{}
}
\newcommand{\Chorus}{
\IfStrEq{\@lang}{english}{Chorus\xspace}{}
\IfStrEq{\@lang}{french}{Refrain\xspace}{}
}
\newcommand{\Verse}{
\IfStrEq{\@lang}{english}{Verse\xspace}{}
\IfStrEq{\@lang}{french}{Couplet\xspace}{}
}
\let\musicnoteORIG\musicnote \let\musicnoteORIG\musicnote
\renewcommand{\musicnote}[2][english]{% \renewcommand{\musicnote}[2][english]{%

Loading…
Cancel
Save