You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Konstantin Piroumian <kp...@apache.org> on 2003/06/02 09:34:32 UTC

Re: Using I18nTransformer without catalogue

From: "Alex Romayev" <ro...@yahoo.com>

> Hi,
>
> Is is actually possible to use I18nTransformer without
> having to specify the catalogue-name and
> catalogue-location parameters?

AFAIK, not yet, because of this lines in I18nTransformer code:

893:     public void configure(Configuration conf) throws
ConfigurationException {
894:        if (factory == null) {
895:            throw new ConfigurationException("BundleFactory component is
not found.");
896:        }

you can try to remove this check and add other checks to avoid NPE.

>
> Why? Because I'm only using i18n:when and i18n:date
> tags.  At the moment I'm having to create the "dummy"
> message files.

Yes, I see. If the above method works then please post a patch to Bugzilla.

Regards,
  Konstantin

>
> Cheers,
> -Alex
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


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


Re: Using I18nTransformer without catalogue

Posted by Alex Romayev <ro...@yahoo.com>.
--- Konstantin Piroumian <kp...@apache.org>
wrote:
> From: "Alex Romayev" <ro...@yahoo.com>
> > --- Konstantin Piroumian <kp...@apache.org>
> wrote:
> > > From: "Alex Romayev" <ro...@yahoo.com>
> > >
> > > > Hi,
> > > >
> > > > Is is actually possible to use I18nTransformer
> > > without
> > > > having to specify the catalogue-name and
> > > > catalogue-location parameters?
> > >
> > > AFAIK, not yet, because of this lines in
> > > I18nTransformer code:
> > >
> > > 893:     public void configure(Configuration
> conf)
> > > throws
> > > ConfigurationException {
> > > 894:        if (factory == null) {
> > > 895:            throw new
> > > ConfigurationException("BundleFactory component
> is
> > > not found.");
> > > 896:        }
> > >
> > > you can try to remove this check and add other
> > > checks to avoid NPE.

Finally got around to it.  Unfortunately this did not
work.  It seems that it is still looking for the
messages file as well as expects their declaration in
the sitemap.

Any other ideas?

-Alex

> > >
> > > >
> > > > Why? Because I'm only using i18n:when and
> > > i18n:date
> > > > tags.  At the moment I'm having to create the
> > > "dummy"
> > > > message files.
> > >
> > > Yes, I see. If the above method works then
> please
> > > post a patch to Bugzilla.
> >
> > Will do.  What's the process, do I patch entire
> file?
> > -- I've never done this before.
> 
> It's quite simple. Make your modifications, then run
> this from your CVS
> root:
> >cvs diff -u > diff.txt
> 
> then post this patch thru Bugzilla.
> 
> Details can be found here:
> http://cocoon.apache.org/2.1/howto/howto-patch.html
>
http://cocoon.apache.org/2.1/howto/howto-bugzilla.html
> 
> -- Konstantin
> 
> 
> >
> > -Alex
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> cocoon-users-help@xml.apache.org
> 


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


Re: Using I18nTransformer without catalogue

Posted by Konstantin Piroumian <kp...@apache.org>.
From: "Alex Romayev" <ro...@yahoo.com>
> --- Konstantin Piroumian <kp...@apache.org> wrote:
> > From: "Alex Romayev" <ro...@yahoo.com>
> >
> > > Hi,
> > >
> > > Is is actually possible to use I18nTransformer
> > without
> > > having to specify the catalogue-name and
> > > catalogue-location parameters?
> >
> > AFAIK, not yet, because of this lines in
> > I18nTransformer code:
> >
> > 893:     public void configure(Configuration conf)
> > throws
> > ConfigurationException {
> > 894:        if (factory == null) {
> > 895:            throw new
> > ConfigurationException("BundleFactory component is
> > not found.");
> > 896:        }
> >
> > you can try to remove this check and add other
> > checks to avoid NPE.
> >
> > >
> > > Why? Because I'm only using i18n:when and
> > i18n:date
> > > tags.  At the moment I'm having to create the
> > "dummy"
> > > message files.
> >
> > Yes, I see. If the above method works then please
> > post a patch to Bugzilla.
>
> Will do.  What's the process, do I patch entire file?
> -- I've never done this before.

It's quite simple. Make your modifications, then run this from your CVS
root:
>cvs diff -u > diff.txt

then post this patch thru Bugzilla.

Details can be found here:
http://cocoon.apache.org/2.1/howto/howto-patch.html
http://cocoon.apache.org/2.1/howto/howto-bugzilla.html

-- Konstantin


>
> -Alex
>


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


Re: Using I18nTransformer without catalogue

Posted by Alex Romayev <ro...@yahoo.com>.
--- Konstantin Piroumian <kp...@apache.org>
wrote:
> From: "Alex Romayev" <ro...@yahoo.com>
> 
> > Hi,
> >
> > Is is actually possible to use I18nTransformer
> without
> > having to specify the catalogue-name and
> > catalogue-location parameters?
> 
> AFAIK, not yet, because of this lines in
> I18nTransformer code:
> 
> 893:     public void configure(Configuration conf)
> throws
> ConfigurationException {
> 894:        if (factory == null) {
> 895:            throw new
> ConfigurationException("BundleFactory component is
> not found.");
> 896:        }
> 
> you can try to remove this check and add other
> checks to avoid NPE.
> 
> >
> > Why? Because I'm only using i18n:when and
> i18n:date
> > tags.  At the moment I'm having to create the
> "dummy"
> > message files.
> 
> Yes, I see. If the above method works then please
> post a patch to Bugzilla.

Will do.  What's the process, do I patch entire file?
-- I've never done this before.

-Alex

> 
> Regards,
>   Konstantin
> 
> >
> > Cheers,
> > -Alex
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail:
> cocoon-users-help@xml.apache.org
> >
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> cocoon-users-help@xml.apache.org
> 


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