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 (4.83 kb)

Comments (2) -


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?

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...

Comments are closed