[ class tree: plugins ] [ index: plugins ] [ all elements ]

Procedural File: dynamic-locale.php

Source Location: /zp-extensions/dynamic-locale.php

Page Details

A plugin to allow the site viewer to select a localization.

This applies only to the theme pages--not Admin. Admin continues to use the language option for its language.

Only the zenphoto 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 will be a place for strings for all zenphoto supported languages you need supply only those you choose. The others language strings will default to your local language.

Uses cookies to store the individual selection. Sets the 'locale' option to the selected language (non-persistent.)

Author:  Stephen Billard (sbillard)
Classes
Class Description
dynamic_locale_options
Functions
dynamic_localeJS  [line 110]

void dynamic_localeJS( )

[ Top ]
printLanguageSelector  [line 34]

prints a form for selecting a locale

The POST handling is by getUserLocale() called in functions.php

Parameters:
   $flags: 


void printLanguageSelector( [ $flags = NULL]  )

[ Top ]


Documentation generated on Tue, 20 Dec 2011 16:07:10 +0100 by phpDocumentor 1.4.3