Jörn Nettingsmeier wrote:
[EMAIL PROTECTED] wrote:
On 1/25/06, Joern Nettingsmeier <[EMAIL PROTECTED]> wrote:
i have added a couple of <i18n:text key="something"/> tags to my
page2xhtml.xsl and created a directory <mypub>/lenya/resources/i18n
which contains the two files cmsui_de.xml and cmsui_en.xml.

my publication.xconf defines the languages "de" (as default) and "en".
on my page2xhtml.xsl, i use a link href="{$root}{$document-id}_en.html"
to switch to english.

if i view index.html or index_de.html, all i18n keys are duly
translated. in index_en.html however, all keys show as "untranslated".

have i forgotten anything?
solprovider's excellent i18n docs mention changes to xmaps
(http://solprovider.com/lenya/languagechoice), but since i get
"untranslated" when switching to english, my guess is that the language
is changed, but the catalogue file is not found. can anyone explain?

Did you restart Lenya?  The translation files are cached, and it may
not have noticed your additions.

yes, i did.

Is this MSWindows?  If you used Notepad, MSWindows likes to add the
".txt" extension, and is very good at hiding it.  Lenya looks for
"cmsui_en.xml", but the file is "cmsui_en.xml.txt".

no, my test system is a linux machine.

is anyone who got i18n to work with 1.4? if so, please speak up. if not, i think i'll file a bug.

the issue has been solved.
my english resource catalog was called cmsui_en.xml. as it turns out, it is assumed to be in the file cmsui.xml, even if english is not the default language of the publication. changing the filename fixed the problem for me. maybe i'm overlooking some subtleties, but iiuc this behaviour is counter-intuitive and needs to be changed.



--
"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: [EMAIL PROTECTED], Telefon: 0203/379-2736

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to