TabsExtension for BlogEngine.NET v0.2

Maybe you've already heard about Enhanced BlogEngine.NET, a customized BlogEngine.NET which supports multiple languages. Because I'd like to write my posts in english and german in the future, I gave it a try and installed it on a different domain. I had to change some lines of my theme and then tried to copy my posts to the new installation. This took some time but finally I got it and I could play around...

Unfortunately the concept behind Enhanced BlogEngine.NET cannot really convince me. The posts are saved in different files for each language, so there would be one file for the english version, one for the germen etc. Comments and ratings are stored separatly for each language in the according files. Even tags and categories exist for different languages and are only displayed, if the according language is selected. So the only advantage over to separate blogs are in my opinion the link in each multilingual post that leads to a version in another language and that I don't have to switch between to blogs to write my posts. There are maybe scenarios, where Enhanced BlogEngine.NET is fitting, but for me it is no option at the time.

Instead of that I thought about writing an "Enhanced TabsExtension" for BlogEngine.NET, which I could use for my multilingual posts. And what came out in version 0.2 of this extension you can see below:

New language tabs
Version 0.2 of my TabsExtension now supports "language tabs". Give your tab a name like "en" or "de" and the tab's labelled with the appropriate title and flag. The flag images come from the BlogEngine folder /pics/flags. Since there are no language flags but country flags you maybe have to copy and rename some of them (e.g. us.png or gb.png to en.png)

How to use
All instructions you can find in this post about the TabsExtension.

Download (3 kb)

Neu: Sprach-Tabs
Die Version 0.2 meiner TabsExtension unterstützt nun "Sprach-Tabs". Wird einem Tab der name "en", "de" etc. gegeben, so wird automatisch die entsprechende Flagge und die Sprache dazu angezeigt. Die Flaggen werden direkt aus dem Ordner /pics/flags geholt. Weil dort aber nicht Sprach- sondern Landes-Flaggen liegen, müssen unter Umständen noch einige Bilder umbenannt werden. So ist z.B. keine Flagge für Englisch (en) vorhanden, sodass entweder us.png oder gb.png kopiert und in en.png umbenannt werden muss.

Wie funktioniert die TabsExtension?
Alles andere funktioniert wie in diesem Post über die TabsExtension beschrieben.

Download (3 kb)

Posted by: Dave
Posted on: 3/29/2009 at 4:12 PM
Tags: , Categories: Actions: E-mail | Kick it! | DZone it! |
Post Information: Permalink | Comments (8) | Post RSSRSS comment feed