You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Stefan Burkard <ne...@burknet.ch> on 2004/11/18 23:46:30 UTC

problem with language versions

hi lenya-users

first of all the general info:
i've started to build a new lenya-publication by copying the default-pub 
and editing the config-files as described in the wiki. by the way, i'm 
working with the binary-release 1.2.

one of the first things i did, was to add various languages and change 
the default language. my default-language is now "de".

after deleting all pages except "home" and putting new content to this 
page, i tried to create a new language version for de_CH (swiss-german 
version).

first of all i get a blank page - and after getting back, an exception. 
but i was able to fix this with an old mailling-list-entry... (missing 
workflow-file - that happens with every new language version of home)

when i try to go to the "de_CH" version of the homepage, i receive the 
following error:
The requested document '/index_de_CH.html' with document-id '/index_de' 
does not exist.

to go further, i can still create any other language version of home. 
for example "fr" and (except the issue above) it works fine...

finally the questions:
- why does lenya search my "de_CH" page under id "index_de"??? the id of 
all other language versions is just "index".

- how can i fix this?

- has lenya (1.2) a problem with locale variations like "de_DE", "de_CH" 
and so  on? because what's also strange, is that my "de" version of the 
homepage has now the "merged" navigation title from the "de_CH" and the 
"de" versions. i can edit it in lenya and in the edit-formfield is just 
the "de" title. i save it and it displays again both titles.

- by the way: no matter what language version i edit in kupu, when i 
click on "save and exit" i'm falling back to the default language version.

sorry for the length of the post, but there were several problems coming 
out of one :-)

thanks for any help and greetings
stefan



---------------------------------------------------------------------
To unsubscribe, e-mail:             user-unsubscribe@lenya.apache.org
For additional commands, e-mail:           user-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: problem with language versions

Posted by Andreas Hartmann <an...@apache.org>.
Gregor J. Rothfuss wrote:
> Hubertus Groepper wrote:
> 
>> Hi Stefan!
>> Am 18.11.2004 um 23:46 schrieb Stefan Burkard:
>>
>>>
>>> - has lenya (1.2) a problem with locale variations like "de_DE", 
>>> "de_CH" and so  on? because what's also strange, is that my "de" 
>>> version of the homepage has now the "merged" navigation title from 
>>> the "de_CH" and the "de" versions. i can edit it in lenya and in the 
>>> edit-formfield is just the "de" title. i save it and it displays 
>>> again both titles.
>>
>>
>> Yes, there is a problem. See 
>> http://issues.apache.org/bugzilla/show_bug.cgi?id=28974
>> Not really a help, I know, sorry.
> 
> 
> the uriparametrizer (iirc) makes some assumptions about a _ followed by 
> a two character country code. this code should be changed to basically 
> consider everything between the first _ and the final . as country code. 
> should be relatively easy to fix in the java class(es), there might be 
> some xsp or somesuch that make the same assumption too.

Actually it should only be necessary to change it in the
DefaultDocumentBuilder, or to extend this class with your
own DocumentBuilder. If this assumption is made anywhere
else, this is a *bug*.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail:             user-unsubscribe@lenya.apache.org
For additional commands, e-mail:           user-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: problem with language versions

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Hubertus Groepper wrote:
> Hi Stefan!
> Am 18.11.2004 um 23:46 schrieb Stefan Burkard:
> 
>>
>> - has lenya (1.2) a problem with locale variations like "de_DE", 
>> "de_CH" and so  on? because what's also strange, is that my "de" 
>> version of the homepage has now the "merged" navigation title from the 
>> "de_CH" and the "de" versions. i can edit it in lenya and in the 
>> edit-formfield is just the "de" title. i save it and it displays again 
>> both titles.
> 
> Yes, there is a problem. See 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=28974
> Not really a help, I know, sorry.

the uriparametrizer (iirc) makes some assumptions about a _ followed by 
a two character country code. this code should be changed to basically 
consider everything between the first _ and the final . as country code. 
should be relatively easy to fix in the java class(es), there might be 
some xsp or somesuch that make the same assumption too.

patches welcome :)


-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail:             user-unsubscribe@lenya.apache.org
For additional commands, e-mail:           user-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: problem with language versions

Posted by Hubertus Groepper <hu...@groepper.com>.
Hi Stefan!
Am 18.11.2004 um 23:46 schrieb Stefan Burkard:

>
> - has lenya (1.2) a problem with locale variations like "de_DE", 
> "de_CH" and so  on? because what's also strange, is that my "de" 
> version of the homepage has now the "merged" navigation title from the 
> "de_CH" and the "de" versions. i can edit it in lenya and in the 
> edit-formfield is just the "de" title. i save it and it displays again 
> both titles.
Yes, there is a problem. See 
http://issues.apache.org/bugzilla/show_bug.cgi?id=28974
Not really a help, I know, sorry.

hubertus


---------------------------------------------------------------------
To unsubscribe, e-mail:             user-unsubscribe@lenya.apache.org
For additional commands, e-mail:           user-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org