[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#556410: Fixed Spanish translation



Package: texlive-latex-extra
Version: 2007.dfsg.17-2

I was writting some new translations for this latex style, when i
found that the translations were not properly used in some contexts.
This is the patch i did to fix this.

I've already reported this bug in ubuntu (launchpad) [1] but nothing happened :(

Regards,
German.

[1] https://bugs.launchpad.net/ubuntu/+source/texlive-extra/+bug/339622
--- exercise.sty.old	2009-03-08 14:17:08.000000000 -0200
+++ exercise.sty	2009-03-08 16:39:42.000000000 -0200
@@ -69,6 +69,7 @@
 \def\ExerciseListName{Ex.}%
 \def\AnswerListName{Answer}%
 \def\ExePartName{Part}%
+\def\ArticleOf{of\ }%
 \@ifpackageloaded{babel}{
 \addto{\captionsfrenchb}{
   \def\ExerciseName{Exercice}%
@@ -76,6 +77,15 @@
   \def\ExerciseListName{Ex.}%
   \def\AnswerListName{Sol.}%
   \def\ExePartName{Partie}%
+  \def\ArticleOf{d'}%
+}
+\addto{\captionsspanish}{
+  \def\ExerciseName{Ejercicio}%
+  \def\AnswerName{Soluci\'on}%
+  \def\ExerciseListName{Ej.}%
+  \def\AnswerListName{Sol.}%
+  \def\ExePartName{Parte}%
+  \def\ArticleOf{del\ }%
 }}{}
 \newlength{\Exesep}
 \setlength{\Exesep}{1\baselineskip}
@@ -508,9 +518,9 @@
 \newbox\@Answerbox
 %% \newcommand{\AnswerHeaderRef}{Answer of \ExerciseName\ \theExercise}
 %% \newcommand{\AnswerListHeaderRef}{Answer (ex.\ \theExercise)\ ---\ }
-\newcommand{\AnswerHeader}{\medskip\centerline{\textbf{Answer of
+\newcommand{\AnswerHeader}{\medskip\centerline{\textbf{\AnswerName\ \ArticleOf
             \ExerciseName  \ExerciseHeaderNB}\smallskip}}
-\newcommand{\AnswerListHeader}{\textbf{Answer (ex.\
+\newcommand{\AnswerListHeader}{\textbf{\AnswerListName\ (\ExerciseListName\
         \ExerciseHeaderNB)\ ---\ }}
 \def\@InitAnswer{\@savemathindent\global\@echapqfalse%
 \gdef\AnswerRef{}%

Reply to: