DarksideCookie

Come to the dark side...we have cookies!

Globalization Demo from Developer Summit '08

At the EPiServer developer summit a couple of weeks ago I held a session about multilanguage support in EPiServer. For those of you who were there, you know why I've added this entry. I screwed up the demo completely and promised to upload the demo code to my blog. My, at that moment, not existing blog. So here it is. I've created a blog and added the code for download.

It is a simple plug-in for EPiServer CMS 5. Just add the plug-in files in the admin folder in you project, and the xml-file in the lang folder and you are done. Almost, you must of course also compile the project to get the plug-in compiled and into your assembly...

Using this plug-in you can export the content of your pages to xml and also import it after it has been translated. Just go to the plug-in in admin mode and choose to export some pages. When exporting you have to choose a root page for the export as well as the language to export. Save the export to disk. Change the content in the xml file. Update the content language by setting the identifier for the new language in the root element. Then update the property values according to the new language. After this you can import the xml and the system will automatically add new pages or update existing pages in the new language.

I hope you understand what I'm writing. If not, check out the code. Globalization Demo.zip (4.83 kb)

Posted: Jun 09 2008, 22:26 by ZeroKoll | Comments (2) |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: EPiServer
Manage post: :)

Comments (2) -

Neil Gauld United Kingdom said:

Hi

Is there a way of exporting images etc which also need to be localised? Also the demo you provided is that good to go and can be just be used as is?

# December 01 2008, 15:20

Chris said:

Exporting images and other localised resources would require some more work. It would probably mean some form of hands-on thing or some naming convention.
The code is ok, but I wouldn't use it straight off. It works, but it should be modified to meet your needs in the form of the properties selection and so on. I would also recommend adding a little error-handling. It is more a proof of concept than a working unit...

# December 15 2008, 12:49
Comments are closed