You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Martin Marinschek <ma...@gmail.com> on 2007/07/26 14:24:24 UTC

[TRINIDAD] LoggerBundle.java

Hey *,

there is a problem with parameterized messages in LoggerBundle.java:
Whenever you use a ' in your message, parameters won't work anymore.

E.g.:

org.apache.myfaces.trinidadinternal.resource.LoggerBundle.java:

{"CANNOT_FIND_MATCHING_SKIN", "Can\'t find a skin that matches family
{0} and renderkit {1}, so we will use the simple skin"},

Essentially, you need to duplicate the ' --> ''

I wonder - where is the LoggerBundle created from? I tried to change
this immediately, but didn't find a way to do so - the only occurrence
of the string I find in my trinidad project is in the /target
directory.

regards,

Martin

-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Re: [TRINIDAD] LoggerBundle.java

Posted by Martin Marinschek <ma...@gmail.com>.
Hi,

thanks - this directory wasn't included in my project somehow...

regards,

Martin

On 7/26/07, Adam Winer <aw...@gmail.com> wrote:
> From .xrts files in src/main/xrts.  The main advantage of us using
> these is that Oracle will happily foot the bill for translating this
> format to umpteen languages. :)
>
> Looks like LoggerBundle was mostly right, but some of the skinning
> messages were off - fixed 'em, thanks for catching this!
>
> -- Adam
>
>
> On 7/26/07, Martin Marinschek <ma...@gmail.com> wrote:
> > Hi Matthias,
> >
> > from what source? information?
> >
> > regards,
> >
> > Martin
> >
> > On 7/26/07, Matthias Wessendorf <ma...@apache.org> wrote:
> > > Hi Martin,
> > >
> > > the XRTS-Plugin is generating that
> > >
> > > -Matthias
> > >
> > > On 7/26/07, Martin Marinschek <ma...@gmail.com> wrote:
> > > > Hey *,
> > > >
> > > > there is a problem with parameterized messages in LoggerBundle.java:
> > > > Whenever you use a ' in your message, parameters won't work anymore.
> > > >
> > > > E.g.:
> > > >
> > > > org.apache.myfaces.trinidadinternal.resource.LoggerBundle.java:
> > > >
> > > > {"CANNOT_FIND_MATCHING_SKIN", "Can\'t find a skin that matches family
> > > > {0} and renderkit {1}, so we will use the simple skin"},
> > > >
> > > > Essentially, you need to duplicate the ' --> ''
> > > >
> > > > I wonder - where is the LoggerBundle created from? I tried to change
> > > > this immediately, but didn't find a way to do so - the only occurrence
> > > > of the string I find in my trinidad project is in the /target
> > > > directory.
> > > >
> > > > regards,
> > > >
> > > > Martin
> > > >
> > > > --
> > > >
> > > > http://www.irian.at
> > > >
> > > > Your JSF powerhouse -
> > > > JSF Consulting, Development and
> > > > Courses in English and German
> > > >
> > > > Professional Support for Apache MyFaces
> > > >
> > >
> > >
> > > --
> > > Matthias Wessendorf
> > >
> > > further stuff:
> > > blog: http://matthiaswessendorf.wordpress.com/
> > > mail: matzew-at-apache-dot-org
> > >
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Re: [TRINIDAD] LoggerBundle.java

Posted by Adam Winer <aw...@gmail.com>.
>From .xrts files in src/main/xrts.  The main advantage of us using
these is that Oracle will happily foot the bill for translating this
format to umpteen languages. :)

Looks like LoggerBundle was mostly right, but some of the skinning
messages were off - fixed 'em, thanks for catching this!

-- Adam


On 7/26/07, Martin Marinschek <ma...@gmail.com> wrote:
> Hi Matthias,
>
> from what source? information?
>
> regards,
>
> Martin
>
> On 7/26/07, Matthias Wessendorf <ma...@apache.org> wrote:
> > Hi Martin,
> >
> > the XRTS-Plugin is generating that
> >
> > -Matthias
> >
> > On 7/26/07, Martin Marinschek <ma...@gmail.com> wrote:
> > > Hey *,
> > >
> > > there is a problem with parameterized messages in LoggerBundle.java:
> > > Whenever you use a ' in your message, parameters won't work anymore.
> > >
> > > E.g.:
> > >
> > > org.apache.myfaces.trinidadinternal.resource.LoggerBundle.java:
> > >
> > > {"CANNOT_FIND_MATCHING_SKIN", "Can\'t find a skin that matches family
> > > {0} and renderkit {1}, so we will use the simple skin"},
> > >
> > > Essentially, you need to duplicate the ' --> ''
> > >
> > > I wonder - where is the LoggerBundle created from? I tried to change
> > > this immediately, but didn't find a way to do so - the only occurrence
> > > of the string I find in my trinidad project is in the /target
> > > directory.
> > >
> > > regards,
> > >
> > > Martin
> > >
> > > --
> > >
> > > http://www.irian.at
> > >
> > > Your JSF powerhouse -
> > > JSF Consulting, Development and
> > > Courses in English and German
> > >
> > > Professional Support for Apache MyFaces
> > >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://matthiaswessendorf.wordpress.com/
> > mail: matzew-at-apache-dot-org
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>

Re: [TRINIDAD] LoggerBundle.java

Posted by Martin Marinschek <ma...@gmail.com>.
Hi Matthias,

from what source? information?

regards,

Martin

On 7/26/07, Matthias Wessendorf <ma...@apache.org> wrote:
> Hi Martin,
>
> the XRTS-Plugin is generating that
>
> -Matthias
>
> On 7/26/07, Martin Marinschek <ma...@gmail.com> wrote:
> > Hey *,
> >
> > there is a problem with parameterized messages in LoggerBundle.java:
> > Whenever you use a ' in your message, parameters won't work anymore.
> >
> > E.g.:
> >
> > org.apache.myfaces.trinidadinternal.resource.LoggerBundle.java:
> >
> > {"CANNOT_FIND_MATCHING_SKIN", "Can\'t find a skin that matches family
> > {0} and renderkit {1}, so we will use the simple skin"},
> >
> > Essentially, you need to duplicate the ' --> ''
> >
> > I wonder - where is the LoggerBundle created from? I tried to change
> > this immediately, but didn't find a way to do so - the only occurrence
> > of the string I find in my trinidad project is in the /target
> > directory.
> >
> > regards,
> >
> > Martin
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> mail: matzew-at-apache-dot-org
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Re: [TRINIDAD] LoggerBundle.java

Posted by Matthias Wessendorf <ma...@apache.org>.
Hi Martin,

the XRTS-Plugin is generating that

-Matthias

On 7/26/07, Martin Marinschek <ma...@gmail.com> wrote:
> Hey *,
>
> there is a problem with parameterized messages in LoggerBundle.java:
> Whenever you use a ' in your message, parameters won't work anymore.
>
> E.g.:
>
> org.apache.myfaces.trinidadinternal.resource.LoggerBundle.java:
>
> {"CANNOT_FIND_MATCHING_SKIN", "Can\'t find a skin that matches family
> {0} and renderkit {1}, so we will use the simple skin"},
>
> Essentially, you need to duplicate the ' --> ''
>
> I wonder - where is the LoggerBundle created from? I tried to change
> this immediately, but didn't find a way to do so - the only occurrence
> of the string I find in my trinidad project is in the /target
> directory.
>
> regards,
>
> Martin
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org