You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Jörn Nettingsmeier <po...@uni-duisburg.de> on 2006/06/25 23:26:42 UTC

how can i create multilingual documents?

hi *!

i'm running lenya 1.4 and making heavy use of the i18n features.
all ordinary documents are available in both english and german, and i 
have a language link that allows users to switch.

a number of pages are dynamically generated from a database, and the 
data they present is suitable for both languages. all labels etc. are 
<i18n:text/> and handled with appropriate catalogue entries.

the problem is: how do i best tell lenya that a document is 
multilingual, i.e. that it should respond to all languages and report 
all languages as being available?

has anyone done this before?

thanks,

jörn



-- 
"Open source takes the bullshit out of software."
	- Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: pol-admin@uni-due.de, Telefon: 0203/379-2736

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


Re: how can i create multilingual documents?

Posted by Joern Nettingsmeier <po...@uni-due.de>.
Andreas Hartmann wrote:
> Jörn Nettingsmeier wrote:
>> hi *!
>>
>> i'm running lenya 1.4 and making heavy use of the i18n features.
>> all ordinary documents are available in both english and german, and i
>> have a language link that allows users to switch.
>>
>> a number of pages are dynamically generated from a database, and the
>> data they present is suitable for both languages. all labels etc. are
>> <i18n:text/> and handled with appropriate catalogue entries.
>>
>> the problem is: how do i best tell lenya that a document is
>> multilingual, i.e. that it should respond to all languages and report
>> all languages as being available?
> 
> You have to create all language versions. In your case, they will
> probably trigger the same database call.

bad luck...
maybe that's a reason not to encode the language in the file name in
future versions. if it were in the metadata, creating multilingual docs
would be as simple as saying lang="de en fr zh" or lang="all"...

dynamic content will always be somewhat orthogonal to lenya's document
handling, but it would be nice if one could use i18n based on the
i18ntransformer and catalog files in arbitrary document types.



-- 
"Án nýrra verka, án nútimans, hættir fortíðin að vekja áhuga."
"Without new works, without the present the past will cease to be of
interest."
        - Ásmundur Sveinsson (1893-1982)

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: pol-admin@uni-due.de, Telefon: 0203/379-2736


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


Re: how can i create multilingual documents?

Posted by Andreas Hartmann <an...@apache.org>.
Jörn Nettingsmeier wrote:
> hi *!
> 
> i'm running lenya 1.4 and making heavy use of the i18n features.
> all ordinary documents are available in both english and german, and i 
> have a language link that allows users to switch.
> 
> a number of pages are dynamically generated from a database, and the 
> data they present is suitable for both languages. all labels etc. are 
> <i18n:text/> and handled with appropriate catalogue entries.
> 
> the problem is: how do i best tell lenya that a document is 
> multilingual, i.e. that it should respond to all languages and report 
> all languages as being available?

You have to create all language versions. In your case, they will
probably trigger the same database call.

-- Andreas


-- 
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
andreas.hartmann@wyona.com                     andreas@apache.org


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