cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Piroumian <KPiroum...@protek.com>
Subject RE: i18n: empty translation in XMLResourceBundle?
Date Wed, 03 Apr 2002 17:08:41 GMT
> -----Original Message-----
> From: Enke Michael [mailto:Michael.Enke@wincor-nixdorf.com] 
> Sent: Wednesday, April 03, 2002 9:09 PM
> To: cocoon-dev@xml.apache.org
> Subject: Re: i18n: empty translation in XMLResourceBundle?
> 
> 
> Konstantin Piroumian wrote:
> > 
> > > From: Enke Michael [mailto:Michael.Enke@wincor-nixdorf.com]
> > > Konstantin Piroumian wrote:
> > > >
> > > > > -----Original Message-----
> > > > > From: Enke Michael [mailto:Michael.Enke@wincor-nixdorf.com]
> > > > > Sent: Wednesday, April 03, 2002 5:02 PM
> > > > > To: cocoon-dev@xml.apache.org
> > > > > Subject: i18n: empty translation in XMLResourceBundle?
> > > > >
> > > > >
> > > > > Hello,
> > > > > I saw in I18nTransformer.java a comment:
> > > > > <li>Introduce empty translation (XMLResourceBundle)
> > > > > How does it work? Or is it only planned?
> > > >
> > > > Look a little upper: it's in the 'Future work' section.
> > > Have no time right
> > > > now to implement it and I've never understood the real use
> > > of it. Why don't
> > > > you use 'default' translation possibility?
> > > >
> > > > Regards,
> > > > Konstantin Piroumian
> > >
> > > Hi Konstantin,
> > > the reason for empty translation:
> > > I get the relation, if lower, greater or equal from a 
> database. Also 
> > > the DB-column I get from a table in the DB. So I translate:
> > > For relation >=                        "From Department"
> > > For relation <=                        "To Department"
> > > And for relation = I want to translate "Department" 
> (without From, 
> > > To or anything else).
> > >
> > > The solution would be very very simple:
> > > Remove the trim() in XMLResourceBundle. This is my 
> proposal. Than I 
> > > can write: <message key="="> </message> and this will no longer

> > > result in an untranslated-text. Anyhow, <message 
> key="="></message> 
> > > will result in an untranslated-text
> > 
> > Did you try: <i18n:text key="=">Default text</i18n:text>? I don't 
> > remember how exactly does it act, but if it does not find 
> translation 
> > for "=" then it will either show 'Default text' or try to find 
> > translation for it.
> 
> I don't want to have 'Default text' nor any other text.
> 
> > Btw, did you try &nbsp; in dictionary?
> 
> Yes, this works, but the alignment doesn't look good, e.g. 
> this: From Department To Department  Department  

Maybe a new entity with "" value will do the trick? Don't know if DTDs allow
this kind of entities though.

Konstantin

> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message