21 Apr
2017
21 Apr
'17
6:40 a.m.
On Thu, 20 Apr 2017, Jonas Baggett wrote:
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
You can also do: \setuplabeltext [en] [male:longtitle=Mister, female:longtitle=Madam] \setuplabeltext [fr] [male:longtitle=Monsieur, female:longtitle=Madame] \mainlanguage[fr] \labeltext{\gender:longtitle} etc. Aditya