You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Cyriaque Dupoirieux <Cy...@pcotech.fr> on 2005/10/11 11:40:17 UTC

[i18n] ?

Hi,

    The search-input contract for pelt views should translate the prompt 
"Search the site with" and the button "Search" with i18n.
    But I cannot find the Keys in translate directory and I don't know 
how to specify the language when I generate with forrest site...

Anyone knows ?

-- 

Salutations,
Cyriaque,


Re: [i18n] ?

Posted by Ross Gardler <rg...@apache.org>.
Gav.... wrote:
> | > and I don't know
> | > how to specify the language when I generate with forrest site...
> |
> | There have been a lot of threads around that, sorry for not being able
> | to find them right now.
> |
> | > Anyone knows ?
> |
> | I think there was something in the forrest.properties but I am not sure.
> 
> Uncomment the line
> 
> #project.i18n=true
> 
> turns it on.
> 
> As far as specifying the language I thought there was no need, that is the 
> whole point
> of i18n, it sees which locale the users computer/browser is set at and then 
> displays
> any i18n content in that language automatically , assuming the relevent 
> language files
> are present.

When running in dynamic mode the browser specifies the language, but 
when generating a static site there is no browser, so there is a need to 
specify it.

I can't remember how it is done, but Chche wrote a blog entry on his work:

http://casa.che-che.com/blog/2005/05/10/internalization-a-site-using-forrest-07-dev/

(we *really need to document this, I'll create an issue).

Ross

Re: [i18n] ?

Posted by "Gav...." <br...@brightontown.com.au>.
Inline :

----- Original Message ----- 
From: "Thorsten Scherler" <th...@apache.org>
To: <de...@forrest.apache.org>
Sent: Wednesday, October 12, 2005 12:53 AM
Subject: Re: [i18n] ?


| El mar, 11-10-2005 a las 11:40 +0200, Cyriaque Dupoirieux escribió:
| > Hi,
| >
| >     The search-input contract for pelt views should translate the prompt
| > "Search the site with" and the button "Search" with i18n.
| >     But I cannot find the Keys in translate directory
|
| 
http://svn.apache.org/viewcvs.cgi/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/messages/?rev=312659
|
| > and I don't know
| > how to specify the language when I generate with forrest site...
|
| There have been a lot of threads around that, sorry for not being able
| to find them right now.
|
| > Anyone knows ?
|
| I think there was something in the forrest.properties but I am not sure.

Uncomment the line

#project.i18n=true

turns it on.

As far as specifying the language I thought there was no need, that is the 
whole point
of i18n, it sees which locale the users computer/browser is set at and then 
displays
any i18n content in that language automatically , assuming the relevent 
language files
are present.

Example, for spanish there should be a menu_es.xml (used to be menu.es.xml) 
which
by default should be picked up. We now have ContractsMessages_de.xml to show
the Search etc is German if the computers/browsers locale is set to de.

As long as there is a corresponding language file present in /translations 
and i18n
is turned on in forrest.properties I thought it should just work.

I may have out of date info here , it's been a couple of months since I 
tried it.

Gav...

|
| salu2
| -- 
| thorsten
|
| "Together we stand, divided we fall!"
| Hey you (Pink Floyd)
|
|
|
| -- 
| No virus found in this incoming message.
| Checked by AVG Anti-Virus.
| Version: 7.0.344 / Virus Database: 267.11.14/128 - Release Date: 
10/10/2005
|
| 



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.14/128 - Release Date: 10/10/2005



Re: [i18n] ?

Posted by Thorsten Scherler <th...@apache.org>.
El mar, 11-10-2005 a las 11:40 +0200, Cyriaque Dupoirieux escribió:
> Hi,
> 
>     The search-input contract for pelt views should translate the prompt 
> "Search the site with" and the button "Search" with i18n.
>     But I cannot find the Keys in translate directory 

http://svn.apache.org/viewcvs.cgi/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/messages/?rev=312659

> and I don't know 
> how to specify the language when I generate with forrest site...

There have been a lot of threads around that, sorry for not being able
to find them right now.

> Anyone knows ?

I think there was something in the forrest.properties but I am not sure.

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)