Thank you :-)
Le 21.04.17 à 08:40, Aditya Mahajan a écrit :
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry
to the Wiki!
maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________