dynamic-locale.php
Allow the site viewer to select a localization (language).
Only the zp-core and theme gettext() string are localized by this facility.
If you want to support image descriptions, etc. in multiple languages you will have to enable the multi-lingual option found next to the language selector on the admin Gallery configuration page. Then you will have to provide appropriate alternate translations for the fields you use. While there is a field for strings for all Zenphoto supported languages you need supply only those you choose. The others language strings will default to your local language.
Locale selection may occur in several ways:
- A cookie stored when the user chooses his language
- The URI language selection provided by the seo_locale plugin
- The subdomain locales option
This plugin applies only to the theme pages--not Admin. The language cookie, if set, will carry over to the admin pages. As will using subdomains.
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- LOCALE_TYPE = 0
- printLanguageSelector() : mixed
- prints a form for selecting a locale The POST handling is by getUserLocale() called in functions.php
Constants
LOCALE_TYPE
public
mixed
LOCALE_TYPE
= 0
Functions
printLanguageSelector()
prints a form for selecting a locale The POST handling is by getUserLocale() called in functions.php
printLanguageSelector([mixed $flags = NULL ]) : mixed
Parameters
- $flags : mixed = NULL