Hi Pablo, Thanks ! I think you are right about that labeltext doesn't support an extra parameter. Then I will need to do it that way, I guess : \def \gender {male} \doifelse {\gender} {male} { \setuplabeltext [en] [longtitle=Mister] \setuplabeltext [fr] [longtitle=Monsieur] }{ % female \setuplabeltext [en] [longtitle=Madam] \setuplabeltext [fr] [longtitle=Madame] } \starttext \mainlanguage[fr] \labeltext{longtitle} \mainlanguage[en] \labeltext{longtitle} \stoptext Regards, Jonas Le 20.04.17 à 07:56, Pablo Rodriguez a écrit :
On 04/20/2017 07:08 AM, Jonas Baggett wrote:
Hello Henri,
I tried to use labeltexts without success so far. Here is the simple example I tried to do :
\setuplabeltext [East=east, West=west] \setuplabeltext [en] [Name=name] \setuplabeltext [fr] [Name=nom]
\starttext \labeltext{East} % Works \labeltext{West} % Works \labeltext[en]{Name} % Doesn't work \labeltext[fr]{Name} % Doesn't work \stoptext Hi Jonas,
it seems that labeltext works based on \mainlanguage, such as in:
\setuplabeltext [East=east, West=west] \setuplabeltext [en] [Name=name] \setuplabeltext [fr] [Name=nom]
\starttext \labeltext{East} % Works \labeltext{West} % Works \labeltext{Name} % Doesn't work \mainlanguage[fr] \labeltext{Name} % Doesn't work \stoptext
BTW, all \labeltext commands work fine in this previous sample.
Can we also make labeltexts depend on 2 parameters and write something like \setuplabeltext[fr][male][longtitle=Monsieur] (...) \labeltext[fr][male]{longtitle} ? I don’t think this is supported by labeltext.
Just in case it helps,
Pablo