[opencms-dev] Problem with Default-Creation of english content on Multi-Language site
Joe Campedelli
jcampedelli at gmail.com
Wed Jun 17 21:11:29 CEST 2009
Even though the locales are empty they will all copy over until you
edit them. A contentcheck on english locale with chinese should still
return false.
On Wed, Jun 17, 2009 at 8:43 AM, Eska<sven.kiesow at interone.de> wrote:
>
> Hi Guys,
>
> i am developing a multi-language site (English, German, Chinese) and I just
> encountered a strange thing with the content-editor in our OpenCms 7.0.5.
>
> I have an XML-Content whre i only want to have the Chinese Locale entered.
> German and English Locale should be left empty.
>
> After reopening such an XML-Content for Editing, The English language is
> preselected
> and the Chinese Content has been copied into the englisch locale part of the
> XML.
> After Saving, now English and Chinese Content is present in the XML.
>
> Is that a Bug or a Feature? Can i somehow configure the Editing to not
> create a "Default"-Content?
>
> The thing is, I need the possibility to only have chinese content edited,
> because i want to determine
> through something like
>
> CmsXmlContent xmlContent = CmsXmlContentFactory.unmarshal(cmsObj,
> uriFile);
> List foundLocales = xmlContent.getLocales();
> boolean hasChinese = xmlContent.hasLocale(new Locale("zh"));
>
> if to show a News-Article only on the chinese News-Overview or not.
>
> Thanks,
>
> Eska
> --
> View this message in context: http://www.nabble.com/Problem-with-Default-Creation-of-english-content-on-Multi-Language-site-tp24072887p24072887.html
> Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list