ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Multilingual interface
@ 2010-12-26 15:47 Willi Egger
  2010-12-26 16:18 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Willi Egger @ 2010-12-26 15:47 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

Hi,

If an unexperienced programmer wants to make use of the multilingual interface...

I miss some clues how to implement changes on labeltexts depending on the language. 


\unprotect

\defineinterfaceconstant{weekagenda}{weekagenda}

\startinterface de
  \setinterfaceconstant {weekagenda}{Wochenagenda}
\stopinterface 

\startinterface nl
  \setinterfaceconstant {weekagenda}{Weekagenda}
\stopinterface 

\def\Week{\selectinterface\c!weekagenda}

\protect

\mainlanguage[de]

\starttext

\Week

\stoptext


Willi
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-26 16:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-26 15:47 Multilingual interface Willi Egger
2010-12-26 16:18 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).