Authentic Photoblog Flavour

GettingStarted /

Language: en de

Alternative Language

You can set a default language and an alternative language in the admin panel. The default language is the behavior of the old version (1.5 and earlier) of Pixelpost. It uses the default templates (e.g. image_template.html). If you select an alternative language and you want to switch back and forth you need a set of new template files for this language. So the best thing to do is make a copy of the old template (for example the about_template.html), translate everything you want to the alternative language in that template and rename the template as follows:

Each language in Pixelpost has is own abbreviation as shown below:

CNSimplified Chinese

So let's say, for the sake of argument, I have my alternative language set to Dutch and the default to English. I have a default template with all items in English and it uses the English language file. Now I want to switch between English and Dutch. So I copy the default template files, translate everything the users see from English in Dutch (like the about page) and rename the template following the scheme below:

image_template.html => image_nl_template.html

So right before "_template.html" I add a "_xx" where xx is the abbreviation of the alternative language. Do this for all template files.

I've included some tags to make switching easier:

<ALTERNATIVE_LANGUAGE> Gives a full URL to switch to the alternative language set from the adminpanel (warning: requires alternative language templates). Best part of this is when you switch to the alternative language a link will be displayed for the default language and vice versa.

<LANGUAGE=xx> Gives a full URL to switch to any language (provided there are templates) The xx part is the language abbreviation mentioned earlier. (This is a fixed link. If you switch to this language this link will not change)

So switching to another language will use new templates but will also include the correct language file and for the alternative language the alternative tags, categories, titles, image description will be used.

Page last modified on October 24, 2007, at 12:29 PM