From: adin Date: Tue, 6 Sep 2016 14:12:45 +0000 (-0300) Subject: Add a config file to set the language mapping X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=da504fb9b3e960a2e117ec7612d0a02929fc0dd7;p=mcv-academic Add a config file to set the language mapping --- diff --git a/cv.bbx b/cv.bbx index 14993f4..5c2c40f 100755 --- a/cv.bbx +++ b/cv.bbx @@ -22,7 +22,9 @@ %\def\longlanguagename[1]{\csname @cv@long@#1\endcsname} % declare default languages -\babelshortnames{en=english, es=spanish} +% \babelshortnames{en=english, es=spanish} +% or imported to be in sync with moderncvstyleacademic.sty +\input{setlanguages.sty} % Bibliography strings \NewBibliographyString{ diff --git a/moderncvstyleacademic.sty b/moderncvstyleacademic.sty index 1f364b9..d9a5a98 100755 --- a/moderncvstyleacademic.sty +++ b/moderncvstyleacademic.sty @@ -147,7 +147,9 @@ \newcommand{\longlanguagename}[1]{\csname @cv@long@#1\endcsname} % declare default languages -\babelshortnames{en=english, es=spanish} +% \babelshortnames{en=english, es=spanish} +% or imported to be in sync with cv.bbx +\input{setlanguages.sty} % use a select language with short name instead of default long one \newcommand{\selectshortlanguage}[1]{% diff --git a/setlanguages.sty b/setlanguages.sty new file mode 100644 index 0000000..903f0d9 --- /dev/null +++ b/setlanguages.sty @@ -0,0 +1,3 @@ +% Declare the languages map that you want to use + +\babelshortnames{en=english, es=spanish}