You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Oded Arbel <od...@m-wise.com> on 2006/01/09 12:27:29 UTC

autogenerating resource for taglibs-i18n

Hi guys.

I've started to use taglibs-i18n in my project, and I was wandering if 
its possible to automatically generate the base resource files for 
taglibs-i18n's <i18n:bundle> automatically from my JSP files ?

I've looked in the web, but either I don't know what to search for, or 
it doesn't exist, and the taglibs-i18n documentation is silent on the 
subject.

TIA

-- 
Oded Arbel
m-Wise mobile solutions
oded@m-wise.com

+972-9-9611212 (204)
+972-54-7340014

::..
Reasons to Run Away 48-"The statue weighs 20 pounds and the sandbag is 
only 3."

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: autogenerating resource for taglibs-i18n

Posted by Oded Arbel <od...@m-wise.com>.
On Tuesday, 10 בJanuary 2006 13:34, Oded Arbel wrote:
> On Tuesday, 10 �‘January 2006 01:27, Rahul Akolkar wrote:
> > On 1/9/06, Oded Arbel <od...@m-wise.com> wrote:
> > > Hi guys.
> > >
> > > I've started to use taglibs-i18n in my project, and I was
> > > wandering if its possible to automatically generate the base
> > > resource files for taglibs-i18n's <i18n:bundle> automatically
> > > from my JSP files ?
> >
> > <snip/>
> >
> > Oded -
> >
> > A base resource file is usually a straight copy of the one for your
> > most prevalent locale for your user base. It seems I've
> > misunderstood the question, please explain what "automatic
> > generation from JSPs" is, what is being generated and how that ties
> > to the i18n:bundle tag.
>
> I'm writing a new application and do not have a resource bundle for
> that application, either a locale one or a base. I'm actually adding
> keys and text as I go.
>
> Currently I have to add everything twice: once in the source code
> that calls the i18n routines, and once in the resource bundle.
> I want to eliminate the extra step and just edit the code and have
> something that automatically generates the resource bundles (base or
> locale) for me.

Something like what xgettext does for gnu-gettext.

-- 
Oded Arbel
m-Wise mobile solutions
oded@m-wise.com

+972-9-9611212 (204)
+972-54-7340014

::..
"The first alteration I would suggest is to change the spelling of 
netiquette because it is just too difficult." 
	-- Stephen Boursy, alt.culture.usenet 

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: autogenerating resource for taglibs-i18n

Posted by Oded Arbel <od...@m-wise.com>.
On Tuesday, 10 בJanuary 2006 01:27, Rahul Akolkar wrote:
> On 1/9/06, Oded Arbel <od...@m-wise.com> wrote:
> > Hi guys.
> >
> > I've started to use taglibs-i18n in my project, and I was wandering
> > if its possible to automatically generate the base resource files
> > for taglibs-i18n's <i18n:bundle> automatically from my JSP files ?
>
> <snip/>
>
> Oded -
>
> A base resource file is usually a straight copy of the one for your
> most prevalent locale for your user base. It seems I've misunderstood
> the question, please explain what "automatic generation from JSPs"
> is, what is being generated and how that ties to the i18n:bundle tag.

I'm writing a new application and do not have a resource bundle for that 
application, either a locale one or a base. I'm actually adding keys 
and text as I go.

Currently I have to add everything twice: once in the source code that 
calls the i18n routines, and once in the resource bundle. 
I want to eliminate the extra step and just edit the code and have 
something that automatically generates the resource bundles (base or 
locale) for me.

-- 
Oded Arbel
m-Wise mobile solutions
oded@m-wise.com

+972-9-9611212 (204)
+972-54-7340014

::..
Rules of Open-Source Programming:
22. Backward compatiblity is your worst enemy.
23. Backward compatiblity is your users' best friend.

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: autogenerating resource for taglibs-i18n

Posted by Rahul Akolkar <ra...@gmail.com>.
On 1/9/06, Oded Arbel <od...@m-wise.com> wrote:
>
> Hi guys.
>
> I've started to use taglibs-i18n in my project, and I was wandering if
> its possible to automatically generate the base resource files for
> taglibs-i18n's <i18n:bundle> automatically from my JSP files ?
>
<snip/>

Oded -

A base resource file is usually a straight copy of the one for your
most prevalent locale for your user base. It seems I've misunderstood
the question, please explain what "automatic generation from JSPs" is,
what is being generated and how that ties to the i18n:bundle tag.
Thanks!

-Rahul


> I've looked in the web, but either I don't know what to search for, or
> it doesn't exist, and the taglibs-i18n documentation is silent on the
> subject.
>
> TIA
>
> --
> Oded Arbel
<snap/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org