You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by 高建民 <da...@gmail.com> on 2008/02/18 11:51:49 UTC

Questions about JSPWiki internationalization

Hi Guys,

I was new to JSPWiki and was trying to add a Simplified Chinese 
localization resource to my JSPWiki installation (2.6.0). I failed to 
get the localized wiki pages after I added my translated resources (in 
Unicode escape sequences) to the folder <JSPWiki-Home>/WEB-INF/i18n. The 
language setting in my browser was set to 'zh-cn' already.

However, if I add my localized resources to 
<JSPWiki-Home>/WEB-INF/classes/ directory while following the directory 
structure in i18n folder, I can view the localized pages correctly.

My questions are:
        Does the folder "<JSPWiki-Home>/WEB-INF/i18n" really work in 
running environment in terms of internationalization support?
        Do I have to add my localization resources to 
"<JSPWiki-Home>/WEB-INF/classes/" directory in order to have i18n feature?
        Is there any information about how i18n works in current JSPWiki 
design?

Thank you & Best Regards

David Gao (davidgjm@gmail.com)
       

Re: Questions about JSPWiki internationalization

Posted by David Gao <da...@gmail.com>.
Hi Janne,

An issue for this has been submitted in JIRA. Here comes the issue link:

              https://issues.apache.org/jira/browse/JSPWIKI-195

David Gao

-------- Original Message --------
>
> Please someone file an issue in JIRA on this... Too busy right now...
>
> On 20 Feb 2008, at 16:55, Andrew Jaquith wrote:
>
>> This has helped to explain something that I had to shrug my shoulders 
>> over ("it works because it just works, I guess") when doing some 
>> Stripes work.
>>
>> Yep, this is a bug. Not a big one, but something we should fix.
>>
>> Andrew
>>
>> On Feb 20, 2008, at 2:53 AM, Janne Jalkanen wrote:
>>
>>>
>>> Ah.  These seem to be included by accident by the build script.  
>>> They should NOT be there, as they are useless.  Thanks for noticing!
>>>
>>> (If you peek inside the jspwiki.jar, you will see that the real i18n 
>>> files are in there.)
>>>
>>> /Janne
>>>
>>> On 19 Feb 2008, at 17:13, David Gao wrote:
>>>
>>>> Hi Janne,
>>>>
>>>> I can find the i18n folder in the JSPWiki.war file included in the 
>>>> binary distribution, i.e.: JSPWiki-2.6.0-bin.zip. Correct me if I 
>>>> mistook this as the standard distro.
>>>>
>>>> -------- Original Message --------
>>>>>> Yes ... but it also took me a while to realize that what's inside 
>>>>>> <JSPWiki-Home>/WEB-INF/i18n is useless
>>>>>> within Tomcat (unless moved under classes ...).
>>>>>> Maybe it would be better to move it away from there in the 
>>>>>> standard distro.
>>>>>
>>>>> It's not there in the standard distro.  The files are under 
>>>>> etc/i18n, from which they are collected to the proper JAR file.
>>>>>
>>>>> What is in the source is different from the binary (obviously - we 
>>>>> don't have a build-directory in the binary distro either).  It can 
>>>>> be a bit confusing at first, yes.
>>>>>
>>>>> /Janne
>>>>>
>>>>
>>>>
>>>
>
>



Re: Questions about JSPWiki internationalization

Posted by Janne Jalkanen <Ja...@ecyrd.com>.
Please someone file an issue in JIRA on this... Too busy right now...

On 20 Feb 2008, at 16:55, Andrew Jaquith wrote:

> This has helped to explain something that I had to shrug my  
> shoulders over ("it works because it just works, I guess") when  
> doing some Stripes work.
>
> Yep, this is a bug. Not a big one, but something we should fix.
>
> Andrew
>
> On Feb 20, 2008, at 2:53 AM, Janne Jalkanen wrote:
>
>>
>> Ah.  These seem to be included by accident by the build script.   
>> They should NOT be there, as they are useless.  Thanks for noticing!
>>
>> (If you peek inside the jspwiki.jar, you will see that the real  
>> i18n files are in there.)
>>
>> /Janne
>>
>> On 19 Feb 2008, at 17:13, David Gao wrote:
>>
>>> Hi Janne,
>>>
>>> I can find the i18n folder in the JSPWiki.war file included in  
>>> the binary distribution, i.e.: JSPWiki-2.6.0-bin.zip. Correct me  
>>> if I mistook this as the standard distro.
>>>
>>> -------- Original Message --------
>>>>> Yes ... but it also took me a while to realize that what's  
>>>>> inside <JSPWiki-Home>/WEB-INF/i18n is useless
>>>>> within Tomcat (unless moved under classes ...).
>>>>> Maybe it would be better to move it away from there in the  
>>>>> standard distro.
>>>>
>>>> It's not there in the standard distro.  The files are under etc/ 
>>>> i18n, from which they are collected to the proper JAR file.
>>>>
>>>> What is in the source is different from the binary (obviously -  
>>>> we don't have a build-directory in the binary distro either).   
>>>> It can be a bit confusing at first, yes.
>>>>
>>>> /Janne
>>>>
>>>
>>>
>>


Re: Questions about JSPWiki internationalization

Posted by Andrew Jaquith <an...@mac.com>.
This has helped to explain something that I had to shrug my shoulders  
over ("it works because it just works, I guess") when doing some  
Stripes work.

Yep, this is a bug. Not a big one, but something we should fix.

Andrew

On Feb 20, 2008, at 2:53 AM, Janne Jalkanen wrote:

>
> Ah.  These seem to be included by accident by the build script.   
> They should NOT be there, as they are useless.  Thanks for noticing!
>
> (If you peek inside the jspwiki.jar, you will see that the real i18n  
> files are in there.)
>
> /Janne
>
> On 19 Feb 2008, at 17:13, David Gao wrote:
>
>> Hi Janne,
>>
>> I can find the i18n folder in the JSPWiki.war file included in the  
>> binary distribution, i.e.: JSPWiki-2.6.0-bin.zip. Correct me if I  
>> mistook this as the standard distro.
>>
>> -------- Original Message --------
>>>> Yes ... but it also took me a while to realize that what's inside  
>>>> <JSPWiki-Home>/WEB-INF/i18n is useless
>>>> within Tomcat (unless moved under classes ...).
>>>> Maybe it would be better to move it away from there in the  
>>>> standard distro.
>>>
>>> It's not there in the standard distro.  The files are under etc/ 
>>> i18n, from which they are collected to the proper JAR file.
>>>
>>> What is in the source is different from the binary (obviously - we  
>>> don't have a build-directory in the binary distro either).  It can  
>>> be a bit confusing at first, yes.
>>>
>>> /Janne
>>>
>>
>>
>


Re: Questions about JSPWiki internationalization

Posted by Janne Jalkanen <Ja...@ecyrd.com>.
Ah.  These seem to be included by accident by the build script.  They  
should NOT be there, as they are useless.  Thanks for noticing!

(If you peek inside the jspwiki.jar, you will see that the real i18n  
files are in there.)

/Janne

On 19 Feb 2008, at 17:13, David Gao wrote:

> Hi Janne,
>
> I can find the i18n folder in the JSPWiki.war file included in the  
> binary distribution, i.e.: JSPWiki-2.6.0-bin.zip. Correct me if I  
> mistook this as the standard distro.
>
> -------- Original Message --------
>>> Yes ... but it also took me a while to realize that what's inside  
>>> <JSPWiki-Home>/WEB-INF/i18n is useless
>>> within Tomcat (unless moved under classes ...).
>>> Maybe it would be better to move it away from there in the  
>>> standard distro.
>>
>> It's not there in the standard distro.  The files are under etc/ 
>> i18n, from which they are collected to the proper JAR file.
>>
>> What is in the source is different from the binary (obviously - we  
>> don't have a build-directory in the binary distro either).  It can  
>> be a bit confusing at first, yes.
>>
>> /Janne
>>
>
>


Re: Questions about JSPWiki internationalization

Posted by David Gao <da...@gmail.com>.
Hi Janne,

I can find the i18n folder in the JSPWiki.war file included in the 
binary distribution, i.e.: JSPWiki-2.6.0-bin.zip. Correct me if I 
mistook this as the standard distro.

-------- Original Message --------
>> Yes ... but it also took me a while to realize that what's inside 
>> <JSPWiki-Home>/WEB-INF/i18n is useless
>> within Tomcat (unless moved under classes ...).
>> Maybe it would be better to move it away from there in the standard 
>> distro.
>
> It's not there in the standard distro.  The files are under etc/i18n, 
> from which they are collected to the proper JAR file.
>
> What is in the source is different from the binary (obviously - we 
> don't have a build-directory in the binary distro either).  It can be 
> a bit confusing at first, yes.
>
> /Janne
>




Re: Questions about JSPWiki internationalization

Posted by Janne Jalkanen <Ja...@ecyrd.com>.
> Yes ... but it also took me a while to realize that what's inside  
> <JSPWiki-Home>/WEB-INF/i18n is useless
> within Tomcat (unless moved under classes ...).
> Maybe it would be better to move it away from there in the standard  
> distro.

It's not there in the standard distro.  The files are under etc/i18n,  
from which they are collected to the proper JAR file.

What is in the source is different from the binary (obviously - we  
don't have a build-directory in the binary distro either).  It can be  
a bit confusing at first, yes.

/Janne

Re: Questions about JSPWiki internationalization

Posted by David Gao <da...@gmail.com>.
I agree with Luca's suggestion. It would be better to have a kind-of
coordinator for each language translation. I would volunteer for Simplified
Chinese translation.

Simplified Chinese translation will be ready around next week with
verification passed.

David Gao (davidgjm@gmail.com)

2008/2/25, Luca Gilardoni <gi...@quinary.com>:
>
> Hi all.
> I have italian localisation almost ready (almost means I need a final
> pass to check typos).
> Question:
> - you prefer I send it / attach to JIRA
> - or get svn write access (how) and directly upload?
>
> In the latter case it could be easier to maintain later on - and I would
> gladly accept to take it in charge on my side.
> Let me know.
>
> Luca
>
> Craig L Russell wrote:
> > Hi David,
> >
> > To become a committer in the JSPWiki project requires a commitment to
> > the project and the support of others on the jspwiki team.
> >
> > Your commitment to the project is based on continuing to contribute to
> > the project (usually this will be in the form of dialog on
> > jspwiki-dev, creating JIRA issues, and providing patches for them).
> > Subscribing to jspwiki-dev and engaging in dialog there is a good way
> > to become part of the community.
> >
> > We're always looking for new members.
> >
> > Best regards,
> >
> > Craig
>
> >
> > On Feb 20, 2008, at 6:20 PM, David Gao wrote:
> >
> >> Hi Craig,
> >>
> >> Thank you for your response.
> >>
> >> I'm able to submit issues in JIRA. However, how can I become a
> >> committer of JSPWiki? I did not find any guide information about this
> >> on JSPWiki site.
> >>
> >> David
> >>
> >> -------- Original Message --------
> >>> Hi David,
> >>>
> >>> On Feb 18, 2008, at 6:44 PM, David Gao wrote:
> >>>>
> >>>> Another stupid question is: how can I submit my files to JSPWiki,
> >>>> via JIRA or simply in CVS?
> >>>
> >>> We are now using Apache's svn repository, and I don't see you on the
> >>> committer list, so the best way is to create a JIRA and attach the
> >>> patch to it.
> >>>
> >>> If you are a committer and I simply missed you, you can directly
> >>> update the svn.
> >>>
> >>> Regards,
> >>>
> >>> Craig
> >>>>
> >>>>
> >>>> David Gao (davidgjm@gmail.com)
> >>>>
> >>>>
> >>>> -------- Original Message --------
> >>>>> Yes ... but it also took me a while to realize that what's inside
> >>>>> <JSPWiki-Home>/WEB-INF/i18n is useless
> >>>>> within Tomcat (unless moved under classes ...).
> >>>>> Maybe it would be better to move it away from there in the
> >>>>> standard distro.
> >>>>>
> >>>>> As for the 1/n jars ...  in similar situations I use to have a
> >>>>> separate jar for all 'standard supported'  languages
> >>>>> to avoid cluttering .... which does not prevent one to add a new
> >>>>> language just by adding under classes or,
> >>>>> if things should grow too much (hope so!) to simply substitute the
> >>>>> languages jar with what's really needed.
> >>>>> Choice to you but let me know as I will provide in a while an
> >>>>> Italian version :-) ..
> >>>>>
> >>>>> Luca
> >>>>>
> >>>>> Janne Jalkanen wrote:
> >>>>>>> My questions are:
> >>>>>>>        Does the folder "<JSPWiki-Home>/WEB-INF/i18n" really work
> in
> >>>>>>> running environment in terms of internationalization support?
> >>>>>>>
> >>>>>> Nope!
> >>>>>>
> >>>>>>
> >>>>>>>        Do I have to add my localization resources to
> >>>>>>> "<JSPWiki-Home>/WEB-INF/classes/" directory in order to have i18n
> feature?
> >>>>>>>        Is there any information about how i18n works in current
> JSPWiki
> >>>>>>> design?
> >>>>>>>
> >>>>>> The easiest way is to create a JAR file of your property files, and
> >>>>>> drop that into WEB-INF/lib.  Putting them in classes directory is a
> >>>>>> bit suspect, as it creates clutter.
> >>>>>>
> >>>>>> It does not matter where you put the files, as long as they are
> >>>>>> somewhere in the classpath.
> >>>>>>
> >>>>>> Though, this reminds me that we should probably create separate JAR
> >>>>>> files for each localization (except for default English).  It would
> be
> >>>>>> a bit cleaner, though it would add clutter, too.
> >>>>>>
> >>>>>> /Janne
> >>>>>>
>
>
>

Re: Questions about JSPWiki internationalization

Posted by David Gao <da...@gmail.com>.
I agree with Luca's suggestion. It would be better to have a kind-of
coordinator for each language translation. I would volunteer for Simplified
Chinese translation.

Simplified Chinese translation will be ready around next week with
verification passed.

David Gao (davidgjm@gmail.com)

2008/2/25, Luca Gilardoni <gi...@quinary.com>:
>
> Hi all.
> I have italian localisation almost ready (almost means I need a final
> pass to check typos).
> Question:
> - you prefer I send it / attach to JIRA
> - or get svn write access (how) and directly upload?
>
> In the latter case it could be easier to maintain later on - and I would
> gladly accept to take it in charge on my side.
> Let me know.
>
> Luca
>
> Craig L Russell wrote:
> > Hi David,
> >
> > To become a committer in the JSPWiki project requires a commitment to
> > the project and the support of others on the jspwiki team.
> >
> > Your commitment to the project is based on continuing to contribute to
> > the project (usually this will be in the form of dialog on
> > jspwiki-dev, creating JIRA issues, and providing patches for them).
> > Subscribing to jspwiki-dev and engaging in dialog there is a good way
> > to become part of the community.
> >
> > We're always looking for new members.
> >
> > Best regards,
> >
> > Craig
>
> >
> > On Feb 20, 2008, at 6:20 PM, David Gao wrote:
> >
> >> Hi Craig,
> >>
> >> Thank you for your response.
> >>
> >> I'm able to submit issues in JIRA. However, how can I become a
> >> committer of JSPWiki? I did not find any guide information about this
> >> on JSPWiki site.
> >>
> >> David
> >>
> >> -------- Original Message --------
> >>> Hi David,
> >>>
> >>> On Feb 18, 2008, at 6:44 PM, David Gao wrote:
> >>>>
> >>>> Another stupid question is: how can I submit my files to JSPWiki,
> >>>> via JIRA or simply in CVS?
> >>>
> >>> We are now using Apache's svn repository, and I don't see you on the
> >>> committer list, so the best way is to create a JIRA and attach the
> >>> patch to it.
> >>>
> >>> If you are a committer and I simply missed you, you can directly
> >>> update the svn.
> >>>
> >>> Regards,
> >>>
> >>> Craig
> >>>>
> >>>>
> >>>> David Gao (davidgjm@gmail.com)
> >>>>
> >>>>
> >>>> -------- Original Message --------
> >>>>> Yes ... but it also took me a while to realize that what's inside
> >>>>> <JSPWiki-Home>/WEB-INF/i18n is useless
> >>>>> within Tomcat (unless moved under classes ...).
> >>>>> Maybe it would be better to move it away from there in the
> >>>>> standard distro.
> >>>>>
> >>>>> As for the 1/n jars ...  in similar situations I use to have a
> >>>>> separate jar for all 'standard supported'  languages
> >>>>> to avoid cluttering .... which does not prevent one to add a new
> >>>>> language just by adding under classes or,
> >>>>> if things should grow too much (hope so!) to simply substitute the
> >>>>> languages jar with what's really needed.
> >>>>> Choice to you but let me know as I will provide in a while an
> >>>>> Italian version :-) ..
> >>>>>
> >>>>> Luca
> >>>>>
> >>>>> Janne Jalkanen wrote:
> >>>>>>> My questions are:
> >>>>>>>        Does the folder "<JSPWiki-Home>/WEB-INF/i18n" really work
> in
> >>>>>>> running environment in terms of internationalization support?
> >>>>>>>
> >>>>>> Nope!
> >>>>>>
> >>>>>>
> >>>>>>>        Do I have to add my localization resources to
> >>>>>>> "<JSPWiki-Home>/WEB-INF/classes/" directory in order to have i18n
> feature?
> >>>>>>>        Is there any information about how i18n works in current
> JSPWiki
> >>>>>>> design?
> >>>>>>>
> >>>>>> The easiest way is to create a JAR file of your property files, and
> >>>>>> drop that into WEB-INF/lib.  Putting them in classes directory is a
> >>>>>> bit suspect, as it creates clutter.
> >>>>>>
> >>>>>> It does not matter where you put the files, as long as they are
> >>>>>> somewhere in the classpath.
> >>>>>>
> >>>>>> Though, this reminds me that we should probably create separate JAR
> >>>>>> files for each localization (except for default English).  It would
> be
> >>>>>> a bit cleaner, though it would add clutter, too.
> >>>>>>
> >>>>>> /Janne
> >>>>>>
>
>
>

Re: Questions about JSPWiki internationalization

Posted by Luca Gilardoni <gi...@quinary.com>.
Hi all.
I have italian localisation almost ready (almost means I need a final 
pass to check typos).
Question:
- you prefer I send it / attach to JIRA
- or get svn write access (how) and directly upload?

In the latter case it could be easier to maintain later on - and I would 
gladly accept to take it in charge on my side.
Let me know.

Luca

Craig L Russell wrote:
> Hi David,
>
> To become a committer in the JSPWiki project requires a commitment to 
> the project and the support of others on the jspwiki team.
>
> Your commitment to the project is based on continuing to contribute to 
> the project (usually this will be in the form of dialog on 
> jspwiki-dev, creating JIRA issues, and providing patches for them). 
> Subscribing to jspwiki-dev and engaging in dialog there is a good way 
> to become part of the community.
>
> We're always looking for new members.
>
> Best regards,
>
> Craig
>
> On Feb 20, 2008, at 6:20 PM, David Gao wrote:
>
>> Hi Craig,
>>
>> Thank you for your response. 
>>
>> I'm able to submit issues in JIRA. However, how can I become a 
>> committer of JSPWiki? I did not find any guide information about this 
>> on JSPWiki site.
>>
>> David
>>
>> -------- Original Message --------
>>> Hi David,
>>>
>>> On Feb 18, 2008, at 6:44 PM, David Gao wrote:
>>>>
>>>> Another stupid question is: how can I submit my files to JSPWiki, 
>>>> via JIRA or simply in CVS? 
>>>
>>> We are now using Apache's svn repository, and I don't see you on the 
>>> committer list, so the best way is to create a JIRA and attach the 
>>> patch to it.
>>>
>>> If you are a committer and I simply missed you, you can directly 
>>> update the svn.
>>>
>>> Regards,
>>>
>>> Craig
>>>>
>>>>
>>>> David Gao (davidgjm@gmail.com)
>>>>
>>>>
>>>> -------- Original Message --------
>>>>> Yes ... but it also took me a while to realize that what's inside 
>>>>> <JSPWiki-Home>/WEB-INF/i18n is useless
>>>>> within Tomcat (unless moved under classes ...).
>>>>> Maybe it would be better to move it away from there in the 
>>>>> standard distro.
>>>>>
>>>>> As for the 1/n jars ...  in similar situations I use to have a 
>>>>> separate jar for all 'standard supported'  languages
>>>>> to avoid cluttering .... which does not prevent one to add a new 
>>>>> language just by adding under classes or,
>>>>> if things should grow too much (hope so!) to simply substitute the 
>>>>> languages jar with what's really needed.
>>>>> Choice to you but let me know as I will provide in a while an 
>>>>> Italian version :-) ..
>>>>>
>>>>> Luca
>>>>>
>>>>> Janne Jalkanen wrote:
>>>>>>> My questions are:
>>>>>>>        Does the folder "<JSPWiki-Home>/WEB-INF/i18n" really work in 
>>>>>>> running environment in terms of internationalization support?
>>>>>>>     
>>>>>> Nope!
>>>>>>
>>>>>>   
>>>>>>>        Do I have to add my localization resources to 
>>>>>>> "<JSPWiki-Home>/WEB-INF/classes/" directory in order to have i18n feature?
>>>>>>>        Is there any information about how i18n works in current JSPWiki 
>>>>>>> design?
>>>>>>>     
>>>>>> The easiest way is to create a JAR file of your property files, and
>>>>>> drop that into WEB-INF/lib.  Putting them in classes directory is a
>>>>>> bit suspect, as it creates clutter.
>>>>>>
>>>>>> It does not matter where you put the files, as long as they are
>>>>>> somewhere in the classpath.
>>>>>>
>>>>>> Though, this reminds me that we should probably create separate JAR
>>>>>> files for each localization (except for default English).  It would be
>>>>>> a bit cleaner, though it would add clutter, too.
>>>>>>
>>>>>> /Janne
>>>>>>   



Re: Questions about JSPWiki internationalization

Posted by Luca Gilardoni <gi...@quinary.com>.
Hi all.
I have italian localisation almost ready (almost means I need a final 
pass to check typos).
Question:
- you prefer I send it / attach to JIRA
- or get svn write access (how) and directly upload?

In the latter case it could be easier to maintain later on - and I would 
gladly accept to take it in charge on my side.
Let me know.

Luca

Craig L Russell wrote:
> Hi David,
>
> To become a committer in the JSPWiki project requires a commitment to 
> the project and the support of others on the jspwiki team.
>
> Your commitment to the project is based on continuing to contribute to 
> the project (usually this will be in the form of dialog on 
> jspwiki-dev, creating JIRA issues, and providing patches for them). 
> Subscribing to jspwiki-dev and engaging in dialog there is a good way 
> to become part of the community.
>
> We're always looking for new members.
>
> Best regards,
>
> Craig
>
> On Feb 20, 2008, at 6:20 PM, David Gao wrote:
>
>> Hi Craig,
>>
>> Thank you for your response. 
>>
>> I'm able to submit issues in JIRA. However, how can I become a 
>> committer of JSPWiki? I did not find any guide information about this 
>> on JSPWiki site.
>>
>> David
>>
>> -------- Original Message --------
>>> Hi David,
>>>
>>> On Feb 18, 2008, at 6:44 PM, David Gao wrote:
>>>>
>>>> Another stupid question is: how can I submit my files to JSPWiki, 
>>>> via JIRA or simply in CVS? 
>>>
>>> We are now using Apache's svn repository, and I don't see you on the 
>>> committer list, so the best way is to create a JIRA and attach the 
>>> patch to it.
>>>
>>> If you are a committer and I simply missed you, you can directly 
>>> update the svn.
>>>
>>> Regards,
>>>
>>> Craig
>>>>
>>>>
>>>> David Gao (davidgjm@gmail.com)
>>>>
>>>>
>>>> -------- Original Message --------
>>>>> Yes ... but it also took me a while to realize that what's inside 
>>>>> <JSPWiki-Home>/WEB-INF/i18n is useless
>>>>> within Tomcat (unless moved under classes ...).
>>>>> Maybe it would be better to move it away from there in the 
>>>>> standard distro.
>>>>>
>>>>> As for the 1/n jars ...  in similar situations I use to have a 
>>>>> separate jar for all 'standard supported'  languages
>>>>> to avoid cluttering .... which does not prevent one to add a new 
>>>>> language just by adding under classes or,
>>>>> if things should grow too much (hope so!) to simply substitute the 
>>>>> languages jar with what's really needed.
>>>>> Choice to you but let me know as I will provide in a while an 
>>>>> Italian version :-) ..
>>>>>
>>>>> Luca
>>>>>
>>>>> Janne Jalkanen wrote:
>>>>>>> My questions are:
>>>>>>>        Does the folder "<JSPWiki-Home>/WEB-INF/i18n" really work in 
>>>>>>> running environment in terms of internationalization support?
>>>>>>>     
>>>>>> Nope!
>>>>>>
>>>>>>   
>>>>>>>        Do I have to add my localization resources to 
>>>>>>> "<JSPWiki-Home>/WEB-INF/classes/" directory in order to have i18n feature?
>>>>>>>        Is there any information about how i18n works in current JSPWiki 
>>>>>>> design?
>>>>>>>     
>>>>>> The easiest way is to create a JAR file of your property files, and
>>>>>> drop that into WEB-INF/lib.  Putting them in classes directory is a
>>>>>> bit suspect, as it creates clutter.
>>>>>>
>>>>>> It does not matter where you put the files, as long as they are
>>>>>> somewhere in the classpath.
>>>>>>
>>>>>> Though, this reminds me that we should probably create separate JAR
>>>>>> files for each localization (except for default English).  It would be
>>>>>> a bit cleaner, though it would add clutter, too.
>>>>>>
>>>>>> /Janne
>>>>>>   



Re: Questions about JSPWiki internationalization

Posted by Craig L Russell <Cr...@Sun.COM>.
Hi David,

To become a committer in the JSPWiki project requires a commitment to  
the project and the support of others on the jspwiki team.

Your commitment to the project is based on continuing to contribute to  
the project (usually this will be in the form of dialog on jspwiki- 
dev, creating JIRA issues, and providing patches for them).  
Subscribing to jspwiki-dev and engaging in dialog there is a good way  
to become part of the community.

We're always looking for new members.

Best regards,

Craig

On Feb 20, 2008, at 6:20 PM, David Gao wrote:

> Hi Craig,
>
> Thank you for your response.
>
> I'm able to submit issues in JIRA. However, how can I become a  
> committer of JSPWiki? I did not find any guide information about  
> this on JSPWiki site.
>
> David
>
> -------- Original Message --------
>> Hi David,
>>
>> On Feb 18, 2008, at 6:44 PM, David Gao wrote:
>>>
>>> Another stupid question is: how can I submit my files to JSPWiki,  
>>> via JIRA or simply in CVS?
>>
>> We are now using Apache's svn repository, and I don't see you on  
>> the committer list, so the best way is to create a JIRA and attach  
>> the patch to it.
>>
>> If you are a committer and I simply missed you, you can directly  
>> update the svn.
>>
>> Regards,
>>
>> Craig
>>>
>>>
>>> David Gao (davidgjm@gmail.com)
>>>
>>>
>>> -------- Original Message --------
>>>> Yes ... but it also took me a while to realize that what's inside  
>>>> <JSPWiki-Home>/WEB-INF/i18n is useless
>>>> within Tomcat (unless moved under classes ...).
>>>> Maybe it would be better to move it away from there in the  
>>>> standard distro.
>>>>
>>>> As for the 1/n jars ...  in similar situations I use to have a  
>>>> separate jar for all 'standard supported'  languages
>>>> to avoid cluttering .... which does not prevent one to add a new  
>>>> language just by adding under classes or,
>>>> if things should grow too much (hope so!) to simply substitute  
>>>> the languages jar with what's really needed.
>>>> Choice to you but let me know as I will provide in a while an  
>>>> Italian version :-) ..
>>>>
>>>> Luca
>>>>
>>>> Janne Jalkanen wrote:
>>>>>
>>>>>> My questions are:
>>>>>>        Does the folder "<JSPWiki-Home>/WEB-INF/i18n" really  
>>>>>> work in
>>>>>> running environment in terms of internationalization support?
>>>>>>
>>>>> Nope!
>>>>>
>>>>>
>>>>>>        Do I have to add my localization resources to
>>>>>> "<JSPWiki-Home>/WEB-INF/classes/" directory in order to have  
>>>>>> i18n feature?
>>>>>>        Is there any information about how i18n works in current  
>>>>>> JSPWiki
>>>>>> design?
>>>>>>
>>>>> The easiest way is to create a JAR file of your property files,  
>>>>> and
>>>>> drop that into WEB-INF/lib.  Putting them in classes directory  
>>>>> is a
>>>>> bit suspect, as it creates clutter.
>>>>>
>>>>> It does not matter where you put the files, as long as they are
>>>>> somewhere in the classpath.
>>>>>
>>>>> Though, this reminds me that we should probably create separate  
>>>>> JAR
>>>>> files for each localization (except for default English).  It  
>>>>> would be
>>>>> a bit cleaner, though it would add clutter, too.
>>>>>
>>>>> /Janne
>>>>>
>>>>
>>>
>>>
>>
>> Craig Russell
>> Architect, Sun Java Enterprise System http://java.sun.com/products/ 
>> jdo
>> 408 276-5638 mailto:Craig.Russell@sun.com
>> P.S. A good JDO? O, Gasp!
>>
>
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Re: Questions about JSPWiki internationalization

Posted by Craig L Russell <Cr...@Sun.COM>.
Hi David,

To become a committer in the JSPWiki project requires a commitment to  
the project and the support of others on the jspwiki team.

Your commitment to the project is based on continuing to contribute to  
the project (usually this will be in the form of dialog on jspwiki- 
dev, creating JIRA issues, and providing patches for them).  
Subscribing to jspwiki-dev and engaging in dialog there is a good way  
to become part of the community.

We're always looking for new members.

Best regards,

Craig

On Feb 20, 2008, at 6:20 PM, David Gao wrote:

> Hi Craig,
>
> Thank you for your response.
>
> I'm able to submit issues in JIRA. However, how can I become a  
> committer of JSPWiki? I did not find any guide information about  
> this on JSPWiki site.
>
> David
>
> -------- Original Message --------
>> Hi David,
>>
>> On Feb 18, 2008, at 6:44 PM, David Gao wrote:
>>>
>>> Another stupid question is: how can I submit my files to JSPWiki,  
>>> via JIRA or simply in CVS?
>>
>> We are now using Apache's svn repository, and I don't see you on  
>> the committer list, so the best way is to create a JIRA and attach  
>> the patch to it.
>>
>> If you are a committer and I simply missed you, you can directly  
>> update the svn.
>>
>> Regards,
>>
>> Craig
>>>
>>>
>>> David Gao (davidgjm@gmail.com)
>>>
>>>
>>> -------- Original Message --------
>>>> Yes ... but it also took me a while to realize that what's inside  
>>>> <JSPWiki-Home>/WEB-INF/i18n is useless
>>>> within Tomcat (unless moved under classes ...).
>>>> Maybe it would be better to move it away from there in the  
>>>> standard distro.
>>>>
>>>> As for the 1/n jars ...  in similar situations I use to have a  
>>>> separate jar for all 'standard supported'  languages
>>>> to avoid cluttering .... which does not prevent one to add a new  
>>>> language just by adding under classes or,
>>>> if things should grow too much (hope so!) to simply substitute  
>>>> the languages jar with what's really needed.
>>>> Choice to you but let me know as I will provide in a while an  
>>>> Italian version :-) ..
>>>>
>>>> Luca
>>>>
>>>> Janne Jalkanen wrote:
>>>>>
>>>>>> My questions are:
>>>>>>        Does the folder "<JSPWiki-Home>/WEB-INF/i18n" really  
>>>>>> work in
>>>>>> running environment in terms of internationalization support?
>>>>>>
>>>>> Nope!
>>>>>
>>>>>
>>>>>>        Do I have to add my localization resources to
>>>>>> "<JSPWiki-Home>/WEB-INF/classes/" directory in order to have  
>>>>>> i18n feature?
>>>>>>        Is there any information about how i18n works in current  
>>>>>> JSPWiki
>>>>>> design?
>>>>>>
>>>>> The easiest way is to create a JAR file of your property files,  
>>>>> and
>>>>> drop that into WEB-INF/lib.  Putting them in classes directory  
>>>>> is a
>>>>> bit suspect, as it creates clutter.
>>>>>
>>>>> It does not matter where you put the files, as long as they are
>>>>> somewhere in the classpath.
>>>>>
>>>>> Though, this reminds me that we should probably create separate  
>>>>> JAR
>>>>> files for each localization (except for default English).  It  
>>>>> would be
>>>>> a bit cleaner, though it would add clutter, too.
>>>>>
>>>>> /Janne
>>>>>
>>>>
>>>
>>>
>>
>> Craig Russell
>> Architect, Sun Java Enterprise System http://java.sun.com/products/ 
>> jdo
>> 408 276-5638 mailto:Craig.Russell@sun.com
>> P.S. A good JDO? O, Gasp!
>>
>
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Re: Questions about JSPWiki internationalization

Posted by Craig L Russell <Cr...@Sun.COM>.
Hi David,

On Feb 18, 2008, at 6:44 PM, David Gao wrote:
>
> Another stupid question is: how can I submit my files to JSPWiki,  
> via JIRA or simply in CVS?

We are now using Apache's svn repository, and I don't see you on the  
committer list, so the best way is to create a JIRA and attach the  
patch to it.

If you are a committer and I simply missed you, you can directly  
update the svn.

Regards,

Craig
>
>
> David Gao (davidgjm@gmail.com)
>
>
> -------- Original Message --------
>> Yes ... but it also took me a while to realize that what's inside  
>> <JSPWiki-Home>/WEB-INF/i18n is useless
>> within Tomcat (unless moved under classes ...).
>> Maybe it would be better to move it away from there in the standard  
>> distro.
>>
>> As for the 1/n jars ...  in similar situations I use to have a  
>> separate jar for all 'standard supported'  languages
>> to avoid cluttering .... which does not prevent one to add a new  
>> language just by adding under classes or,
>> if things should grow too much (hope so!) to simply substitute the  
>> languages jar with what's really needed.
>> Choice to you but let me know as I will provide in a while an  
>> Italian version :-) ..
>>
>> Luca
>>
>> Janne Jalkanen wrote:
>>>
>>>> My questions are:
>>>>        Does the folder "<JSPWiki-Home>/WEB-INF/i18n" really work in
>>>> running environment in terms of internationalization support?
>>>>
>>> Nope!
>>>
>>>
>>>>        Do I have to add my localization resources to
>>>> "<JSPWiki-Home>/WEB-INF/classes/" directory in order to have i18n  
>>>> feature?
>>>>        Is there any information about how i18n works in current  
>>>> JSPWiki
>>>> design?
>>>>
>>> The easiest way is to create a JAR file of your property files, and
>>> drop that into WEB-INF/lib.  Putting them in classes directory is a
>>> bit suspect, as it creates clutter.
>>>
>>> It does not matter where you put the files, as long as they are
>>> somewhere in the classpath.
>>>
>>> Though, this reminds me that we should probably create separate JAR
>>> files for each localization (except for default English).  It  
>>> would be
>>> a bit cleaner, though it would add clutter, too.
>>>
>>> /Janne
>>>
>>
>
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Re: Questions about JSPWiki internationalization

Posted by Janne Jalkanen <ja...@iki.fi>.
> My questions are:
>        Does the folder "<JSPWiki-Home>/WEB-INF/i18n" really work in 
> running environment in terms of internationalization support?

Nope!

>        Do I have to add my localization resources to 
> "<JSPWiki-Home>/WEB-INF/classes/" directory in order to have i18n feature?
>        Is there any information about how i18n works in current JSPWiki 
> design?

The easiest way is to create a JAR file of your property files, and
drop that into WEB-INF/lib.  Putting them in classes directory is a
bit suspect, as it creates clutter.

It does not matter where you put the files, as long as they are
somewhere in the classpath.

Though, this reminds me that we should probably create separate JAR
files for each localization (except for default English).  It would be
a bit cleaner, though it would add clutter, too.

/Janne