[opencms-dev] Problem with locale in XmlContent
a.westermann at alkacon.com
a.westermann at alkacon.com
Fri Apr 24 16:41:58 CEST 2009
Hi Deiverson,
what exactly did you do to change the locale? If you just set the
"locale" property to "pt_BR" you still have to open each file in the
editor and add the pt_BR node.
Just to understand how localization is done: Have a look into the XML of
the file: Choose "Advanced -> Edit Controlcode" from the context menu.
There you should see a version of the XML for each language marked with
attribute "language='<locale>'".
The grey direct edit button sounds like the file has a lock. You should
test that.
Regarding the Change Element Locale Tool: There was a bug related to
locales with language and country with this tool I fixed today:
http://bugzilla.opencms.org/show_bug.cgi?id=1181. It will be released in
the next version.
Kind Regards,
Achim.
-------------------
Achim Westermann
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
Visit OpenCms Days 2009 Conference and Expo
June 15 to June 16 2009 in Cologne, Germany
http://www.opencms-days.org
Deiverson Silveira wrote:
> Hi List,
>
> I developed a project using all "en" but now internationalized and put
> to work with the locale "pt_BR", but when the directedit, the screen
> is all gray edition, the old xmlcontent, the new xmlcontent work ok!
> But and has to change in other language and change again for to
> Portuguese (Brazil).
>
> I then it creates the locale and put in default pt_BR, this bug is
> appearing in opencms, I dont know.
>
> I tried to use the Change Element Locale is not changing to another
> language nothing happens:
> Start changing element Locale from "en" to "de" ...
> Statistics:duration: 00:00:00
> ... finished changing element Locale
> ______________________
> Start changing element Locale from "en" to "pt_BR" ...
> Statistics:duration: 00:00:00
> ... finished changing element Locale
>
> Nothing =/
>
> Did not work. When the editing is within the environment of opencms
> (workplace, dont use directedit) works, my problem is directedit, dont
> work...then it instantiates a new default location, which is in en,
> but does not work directedit in issue, the screen is all gray. I tried
> to repair xmlcontent and also did not work. I am with the following,
> but I'm having difficulties to implement, which is read the xmlcontent
> file, and make a setlocale to change the en to pt_BR throughout my
> project... for edit old using directedit work...
>
> Someone already went through this problem?
>
> Deiverson
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> 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