You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Martin Kuba <ma...@ics.muni.cz> on 2005/01/13 18:27:58 UTC

i18n in Forrest 0.6

Hi,

I am evaluating Forrest right now, and I found the directory translations/
and configuration option project.i18n in forrest.properties.

But I can't find any documentation for it and search on this mailing list
archive gave me the following URL

http://issues.cocoondev.org/jira/secure/ViewIssue.jspa?key=FOR-18

which suggest that it is not working at all. Is it still the case ?
Will it be fixed in the next release ?

Thanks for any help

Martin
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno             Martin Kuba
Institute of Computer Science    email: makub@ics.muni.cz
Masaryk University             http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
--------------------------------------------------------------

Re: i18n in Forrest 0.6

Posted by Martin Kuba <ma...@ics.muni.cz>.
Juan Jose Pablos wrote:
> Martin Kuba wrote:
> 
>> Thanks, that helped. However it doesn't seem usable. My browser
>> is set to accept Czech and English
>>
>> Accept-language: cs,en-us;q=0.7,en;q=0.3
>>
>> and the first thing I saw was an error page stating that file 
>> index_cs.xml
>> cannot be found. It is not acceptable to display an error message
>> when a match for an acceptable language is not found.  Even when I create
>> index_en.xml, it still displays the error page, which is wrong,
>> English is listed as my second language.
> 
> 
> I know that fall-back content negotioation is not working. There is a 
> bug on cocoon i18in transformer that needs to be fixed before I can 
> continue the work on that.
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=32560
> 
>>
>> Also I don't see any link to switch among language versions.
> 
> 
> There is already some code that will provide you with the posible 
> languages available as well.  But unless the i18ntransformer gets fix, 
> there is not more I can do.,
> 
>> Also forcing a particular language by following a link is needed.
> 
> 
> Yes, I am aware of that.
> have a look on the test case for the bug on cocoon,if you spot something 
> maybe that will get in for the next release.

Thanks for the answer. I tried also a static export of the pages, and it looks
like that Forrests uses the default locale of the JVM to choose only one
language.

It would be great to be able to export the site in all languages staticaly,
so that serving it by Apache would be very fast. Generating pages on the fly
is wasting of resources when it is just for language selection.
Would it be possible to do this with Forrest ?

What I mean is that Forrest would export all index.html.en and index.html.es and
index.html.cs files, and Apache with mod_negotiation and MultiViews enabled
would do the language selection very efectively.

Martin
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno             Martin Kuba
Institute of Computer Science    email: makub@ics.muni.cz
Masaryk University             http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
--------------------------------------------------------------

Re: i18n in Forrest 0.6

Posted by Juan Jose Pablos <ch...@apache.org>.
Martin Kuba wrote:

> Thanks, that helped. However it doesn't seem usable. My browser
> is set to accept Czech and English
>
> Accept-language: cs,en-us;q=0.7,en;q=0.3
>
> and the first thing I saw was an error page stating that file 
> index_cs.xml
> cannot be found. It is not acceptable to display an error message
> when a match for an acceptable language is not found.  Even when I create
> index_en.xml, it still displays the error page, which is wrong,
> English is listed as my second language.

I know that fall-back content negotioation is not working. There is a 
bug on cocoon i18in transformer that needs to be fixed before I can 
continue the work on that.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32560

>
> Also I don't see any link to switch among language versions.

There is already some code that will provide you with the posible 
languages available as well.  But unless the i18ntransformer gets fix, 
there is not more I can do.,

> Also forcing a particular language by following a link is needed.

Yes, I am aware of that.
have a look on the test case for the bug on cocoon,if you spot something 
maybe that will get in for the next release.


Cheers,
Cheche

Re: i18n in Forrest 0.6

Posted by Martin Kuba <ma...@ics.muni.cz>.
Juan Jose Pablos wrote:
> It is already fixed on the development version.  If you are evaluating 
> this software then you should have a look
> 
> http://forrest.apache.org/build.html#snapshot

Thanks, that helped. However it doesn't seem usable. My browser
is set to accept Czech and English

Accept-language: cs,en-us;q=0.7,en;q=0.3

and the first thing I saw was an error page stating that file index_cs.xml
cannot be found. It is not acceptable to display an error message
when a match for an acceptable language is not found.  Even when I create
index_en.xml, it still displays the error page, which is wrong,
English is listed as my second language.

Also I don't see any link to switch among language versions.

To be able to use Forrest for multilingual sites, I would need
at least the functionality provided by JSTL (JSP Standard Tag Library),
which allows to choose text from a hierarchy of languages (as
implemented by java ResourceBundle class) so that at least
something is displayed when no match is found, not an error message.
Also forcing a particular language by following a link is needed.

Is is possible to achieve this using Forreest in some forseeable future ?

Martin
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno             Martin Kuba
Institute of Computer Science    email: makub@ics.muni.cz
Masaryk University             http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
--------------------------------------------------------------

Re: i18n in Forrest 0.6

Posted by Juan Jose Pablos <ch...@apache.org>.
Martin Kuba wrote:

> Hi,
>
> I am evaluating Forrest right now, and I found the directory 
> translations/
> and configuration option project.i18n in forrest.properties.
>
> But I can't find any documentation for it and search on this mailing list
> archive gave me the following URL
>
> http://issues.cocoondev.org/jira/secure/ViewIssue.jspa?key=FOR-18
>
> which suggest that it is not working at all. Is it still the case ?

That is true, i18n is not working for 0.6 release.

> Will it be fixed in the next release ?
>
It is already fixed on the development version.  If you are evaluating 
this software then you should have a look

http://forrest.apache.org/build.html#snapshot

Cheers,
Cheche


Re: i18n in Forrest 0.6

Posted by fi...@cirquedigital.com.
Hi,

I had to manually patch some files to
get it to work (I believe replace LANG with LANGUAGE or the
other way around) and set the LANGUAGE environment variable.

Sorry -- memory is a bit hazy -- simply search in the mailing
lists archives, you'll find some posts there with the details.

Hope this helps,
- Filip

> Hi,
>
> I am evaluating Forrest right now, and I found the directory translations/
> and configuration option project.i18n in forrest.properties.
>
> But I can't find any documentation for it and search on this mailing list
> archive gave me the following URL
>
> http://issues.cocoondev.org/jira/secure/ViewIssue.jspa?key=FOR-18
>
> which suggest that it is not working at all. Is it still the case ?
> Will it be fixed in the next release ?
>
> Thanks for any help
>
> Martin
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Supercomputing Center Brno             Martin Kuba
> Institute of Computer Science    email: makub@ics.muni.cz
> Masaryk University             http://www.ics.muni.cz/~makub/
> Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
> --------------------------------------------------------------
>