Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 37773 invoked from network); 2 May 2002 19:31:03 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 2 May 2002 19:31:03 -0000 Received: (qmail 12336 invoked by uid 97); 2 May 2002 19:31:06 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@nagoya.betaversion.org Received: (qmail 12268 invoked by alias); 2 May 2002 19:31:05 -0000 Delivered-To: jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 12247 invoked by uid 97); 2 May 2002 19:31:05 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 12213 invoked by uid 98); 2 May 2002 19:31:04 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <004401c1f20f$e221ed30$7fc8a8c0@manu.com> From: "Magesh Umasankar" To: "Ant Developers List" References: Subject: Re: translate/translator task - suggestions Date: Thu, 2 May 2002 15:30:55 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: localhost.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "GOMEZ Henri" > - Translator have a concept of domains, so you could > search for a translation into all domains loaded, > or a specific domain. > > There is a root (default) domain, where translator > search when : > > - Initially if no domain is given for lookup. > - Fallback search when an entry is not found in the > specified domain. IMHO, the concept of root and fallback has been defined nicely to follow a hierarchial beanch-2-branch pattern as explained in http://java.sun.com/products/jdk/1.2/docs/api/java/util/ResourceBundle.html If you can have your XML Dictionary files follow this pattern, it would be peachy! Or is there something that I do not follow that makes you shrug this commonly followed 'standard'? > The fallback tag is easy to add in xml based files, > but how to do this in properties bundle implementation ? Using the naming of the files. > > Should we tag each bundle res with a fallback tag in > task properties ? Nope. It is taken care automatically. > > The domain idea is important when you want to translate > a big webapp where dictionaries are splitted between > developpers and when you can have such fallback strategy, > ie some globals dictionaries and local dictionnaries. Yep, it is important... and I assume they will end up being hierarchially defined ;-) Side note: Does your task reparse all files if the relevant Config file has been changed as well? Or does it reparse a generated file only if the source file is newer? > > Henri Gomez ___[_]____ Cheers, Magesh ************************************************************* * Optimist: A person who while falling from the * * Eiffel tower says in midway "See I am not injured yet." * ************************************************************* -- To unsubscribe, e-mail: For additional commands, e-mail: