From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76210 Path: news.gmane.org!not-for-mail From: Peter Schorsch Newsgroups: gmane.comp.tex.context Subject: Re: multi language (with module) Date: Wed, 16 May 2012 15:42:45 +0200 Message-ID: <20120516154245.5bc28da1@freenet.de> References: <20120516141711.1467a75a@freenet.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1337176593 20196 80.91.229.3 (16 May 2012 13:56:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 May 2012 13:56:33 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed May 16 15:56:32 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SUeiO-0001Kc-9y for gctc-ntg-context-518@m.gmane.org; Wed, 16 May 2012 15:56:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 95D69101E4; Wed, 16 May 2012 15:56:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 730ZTG++8eXz; Wed, 16 May 2012 15:56:28 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C16F4101E1; Wed, 16 May 2012 15:56:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A74B3101E1 for ; Wed, 16 May 2012 15:56:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iYsPfPz8+4LI for ; Wed, 16 May 2012 15:56:21 +0200 (CEST) Original-Received: from submission1-til.mf.surf.net (submission1-til.mf.surf.net [194.171.167.212]) by balder.ntg.nl (Postfix) with ESMTP id C20EC101DF for ; Wed, 16 May 2012 15:56:21 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til-v6.mf.surf.net [IPv6:2001:610:1:40aa:194:171:167:217]) by submission1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4GDiAbQ001994 for ; Wed, 16 May 2012 15:44:10 +0200 Original-Received: from mout2.freenet.de (mout2.freenet.de [IPv6:2001:748:100:40::2:4]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4GDj4II010011 for ; Wed, 16 May 2012 15:45:04 +0200 Original-Received: from [195.4.92.140] (helo=mjail0.freenet.de) by mout2.freenet.de with esmtpa (ID tralalas@freenet.de) (port 25) (Exim 4.76 #1) id 1SUeXI-0002XJ-5G for ntg-context@ntg.nl; Wed, 16 May 2012 15:45:04 +0200 Original-Received: from localhost ([::1]:38406 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID tralalas@freenet.de) (Exim 4.76 #1) id 1SUeXI-00010p-1U for ntg-context@ntg.nl; Wed, 16 May 2012 15:45:04 +0200 Original-Received: from [195.4.92.13] (port=44322 helo=3.mx.freenet.de) by mjail0.freenet.de with esmtpa (ID tralalas@freenet.de) (Exim 4.76 #1) id 1SUeV9-0000Tu-2c for ntg-context@ntg.nl; Wed, 16 May 2012 15:42:51 +0200 Original-Received: from 31-18-187-91-dynip.superkabel.de ([31.18.187.91]:5244 helo=freenet.de) by 3.mx.freenet.de with esmtpsa (ID tralalas@freenet.de) (UNKNOWN:AES128-SHA:128) (port 25) (Exim 4.76 #1) id 1SUeV7-0005bg-M7 for ntg-context@ntg.nl; Wed, 16 May 2012 15:42:50 +0200 In-Reply-To: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) X-Bayes-Prob: 0.1022 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2001:748:100:40::2:4; country=DE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RHaBJ42a - c65479ce8cff - 20120516 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:76210 Archived-At: Thanks Wolfgang, your post helped me a lot! I am wondering if only a subset of languages is able to be defined as I got following result: Should be Welcome: Welcome Should be Guten Tag: Guten Tag Should be Bonvenon: Guten Tag The Esperanto text is not displayed. It does not matter wether I put the eo definition into the module or normal tex file. This source I used: --8<----t-welcome.tex--------------- \startmodule[welcome] \unprotect \definelabelclass[welcome] \setupwelcometext[en][welcome=Welcome] \setupwelcometext[de][welcome=Willkommen] \def\welcome{\welcometext{welcome}} \protect \stopmodule \endinput --8<----welcome.tex----------------- \usemodule[welcome] \setupwelcometext[eo][welcome=Bonvenon] \setupwelcometext[de][welcome=Guten Tag] \starttext \mainlanguage[en]Should be Welcome: \welcome \mainlanguage[de]Should be Guten Tag: \welcome \mainlanguage[eo]Should be Bonvenon: \welcome \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________