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

* Re: Multilingual interface
  2010-12-26 15:47 Multilingual interface Willi Egger
@ 2010-12-26 16:18 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2010-12-26 16:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 26.12.2010 um 16:47 schrieb Willi Egger:

> 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. 

I’m not sure what do you want but the \setuplabeltext command has a different
name dependent on the language, e.g.

   \setuplabeltext[en][week=Week]

can be written with the german interface as

   \stellelabeltextein[en][woche=Week]

Wolfgang
___________________________________________________________________________________
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).