On Sat, 1 Nov 2003, Joerg Heinicke wrote:
> On 01.11.2003 12:52, [EMAIL PROTECTED] wrote:
>
> >>>hi people
> >>>
> >>>i use locale action to select the dir where my content files are
> >>>i give the visitor the ability to select the locale
> >>>(?locale=el or ?locale=en) but the first time u visit the site the locale
> >>>is selected automatically.
> >>>
> >>>the problem is that when i use IE, localeAction set locale as "en" or
> >>>"el" or ...
> >>>but using mozilla localeAction set locale as "en_US" instead "en"
> >>>is this a cocoon problem or not
> >>
> >>In mozilla you can play around with the preferences, i.e. you can set
> >>the value for the locale. So it's either possible to use en_US or en.
> >>
> >>
> >>>i use locale content to create the path where the files are /xml/c_en (and
> >>>not /xml_/c_en_US)
> >>
> >>Don't you use i18n transformer? It handles exactly this: It tries to
> >>select en_US first, en afterwards.
> >>
> >>Joerg
> >>
> >
> >
> > i use i18n transformer to translate my .xml but to select the path i use
> > just {locale} in sitemap
> >
> > ..
> > <map:generate src="c_{../locale}/{1}.xml"/>
> > ..
> >
> > so when the browser is mozilla the generator try to find the .xml in
> > c_en_US/filename.xml
> >
> > but this path dont exist !!! (c_en/filename.xml)
> >
> > is something i missed?
>
> I guess you have either to change the {locale} by hand to the first part
this is who i bypass this situation now i redirect / to /Home?locale=en
> only. Or to change your handling completely. {1} or filename.xml above
> is something like a catalogue? Then you should change the directory
they are content files with the same name (info.xml) but with content in
different language in different directories
/c_en/info.xml (english)
/c_el/info.xml (hellenic)
thats why i use /c_{locale} in my sitemap
can i handle {locale} and change it from en_US to en inside sitemap?
-- stavros
> structure to {1}/c_{locale}.xml, so that all languages available for one
> file/catalogue are in one directory. Then the i18n transformer handles
> the fallback from en_US to en automatically.
>
> Joerg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]