You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by daniel Griffith <me...@yahoo.com> on 2004/09/17 21:45:50 UTC

Adding multiple languages

Hi all.

The reason I want to use Lenya is I have a project
coming up that will need to be done in multiple
languages, and so today I have been looking at
multilanguage support.

On the Wiki, on page NewPublicationHowTo it says:
>>>
edit the $NEW_PUB_HOME/config/publication.xconf file
removing the element <language>de</language> (be sure
you have removed all german page before) and
eventually add you language. Pay attention, you can
add your language even if there's not an available
translation for Lenya CMS interface (i.e. you can add
"ru" for russian even if available Lenya is translated
only in english or german). The servlet container has
to be restarted to apply the changes to the language
configuration. 
<<<

This has me confused. To start with, $NEW_PUB_HOME is
defined on the page as being the location you use to
copy the default page to make your new publication -
surely changes here would only be seen by rebuilding
lenya?

Making changes here (adding <language>fr</language> to
publication.xconf) as expected has no effect after
just restarting the container.

Making the change to publication.xconf in the Lenya
build folder, and restarting Jetty seems to work, I
can make new documents and add fr pages to to them -
BUT if I try to add a fr language version to Home I
get:

No pipeline matched request:
uri-parameter/itp/doctype/authoring/index_fr.html

And from that point I cannot access home, even in
English I get the same error.

Making the the change to the publication.xconf in
$NEW_PUB_HOME as suggested and rebuilding Lenya
doesn't work - but then it would make no sense if I
had to go that way as it means I couldn't add a new
language to an existing website.

So what is the correct method to add a new langage to
Lenya?

TIA 
daniel


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com

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


Re: Adding multiple languages

Posted by Andreas Hartmann <an...@apache.org>.
daniel Griffith wrote:

[...]

> This has me confused. To start with, $NEW_PUB_HOME is
> defined on the page as being the location you use to
> copy the default page to make your new publication -
> surely changes here would only be seen by rebuilding
> lenya?

Yes.

> Making changes here (adding <language>fr</language> to
> publication.xconf) as expected has no effect after
> just restarting the container.
> 
> Making the change to publication.xconf in the Lenya
> build folder, and restarting Jetty seems to work, I
> can make new documents and add fr pages to to them -
> BUT if I try to add a fr language version to Home I
> get:
> 
> No pipeline matched request:
> uri-parameter/itp/doctype/authoring/index_fr.html
> 
> And from that point I cannot access home, even in
> English I get the same error.

If this happens for the homepage only, it is probably
a bug. Would you mind adding it to bugzilla?

> Making the the change to the publication.xconf in
> $NEW_PUB_HOME as suggested and rebuilding Lenya
> doesn't work

Strange ... This is the recommended way to do it.

> - but then it would make no sense if I
> had to go that way as it means I couldn't add a new
> language to an existing website.

Why? When you make changes to your publication, you
have to deploy it anyway, don't you?

> So what is the correct method to add a new langage to
> Lenya?

- add the language entry to $PUB_HOME/config/publication.xconf
- deploy the publication
   (ant webapp for Jetty / ant install for Tomcat)

-- Andreas


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