User guide

Multi-lingual sites

Zenphoto is fully capable of running multilingual sites if you want to provide your content in more than one language. "Content" means data stored in your database such as image and album descriptions. For these to have multiple languages you will need to have the multi-lingual check box checked in your gallery configuration.

multilingualcheckbox

Once this option is enabled, each edit field in the back-end will have multiple inputs, one for each configured language. You then just fill in the translation for each language you wish to support manually. This also works for plugins that provide text options if they are setup for multilingual use.

multilingualinputs
Languages are installed in zp-core/locale and refer to the gettext translation for non content literal strings on the backend and theme. Please read the translation tutorial for more info about this.

You may not need all of the translations, then you can just remove those unneeded language folders. With Zenphoto 1.4 on you can disable unneeded languages via the backend as well.

Note: To use severak languages locale support for those languages needs to beinstalled on your server. Contact your host if unsure.

It might also happen that you want to provide content in a language Zenphoto does not have a language file for. In that case just create an empty locale folder of your language like zp-core/locale/de_DE. Then you will be able to switch to that langauge even if the backend and such will not be translated.

On theme side there are several plugins to let visitors switch their preferred language. There are two officially included plugins for this:

How to have translations for the literal strings on your site please review theĀ translation tutorial.

SEO/Search engines

To make search engines aware of different language versions of your site you need to do the following:

  1. Disable all languages you don't provide any content for
  2. Enable the seo_locale plugin which provides language change via URL
  3. Enable the html_meta_tags plugin and its option "canonical url". This also generates <link rel="alternate" hreflang="<locale>" href="" /> type links for content in other languages execpt the current.
  4. Enable the sitemap-extended plugin
  5. Submit the sitemap generated to Google directly or add the link to it in your robots.txt file for them to auto discover.


See the documentation on details of these plugins.


Creative Commons License
This work by www.zenphoto.org is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

For questions and comments please use the forum.