ZenphotoCMS 1.6.5

seo_locale.php

Forces language selection via an URI parameter.

This filter will detect a language setting from the URI and set the locale accordingly.

In addition, theme URLs will have the language-id inserted into them so that the above processing will result in the language being set.

This plugin should not be used if you are using subdomain locales (See the dynamic_locales plugin.)

The URL format is:
mod_rewrite
/ language-id / standard url
else
standard url?locale=language-id
Where language-id is the local identifier (e.g. en, en_US, fr_FR, etc.)

NOTE: the implementation of these URIs requires that Zenphoto parse the URI, save the language request to a cookie, then redirect to the "native" URI. This means that there is an extra redirect for EACH page request!

If your site will support it, we suggest you use the dynamic_locales plugin subdomain locales option instead for better performance.

Tags
author

Stephen Billard (sbillard)

Table of Contents

Classes

seo_locale

Constants

SEO_FULLWEBPATH  = \seo_locale::localePath(\true)
SEO_WEBPATH  = \seo_locale::localePath()

Constants

SEO_FULLWEBPATH

public mixed SEO_FULLWEBPATH = \seo_locale::localePath(\true)

SEO_WEBPATH

public mixed SEO_WEBPATH = \seo_locale::localePath()

        
On this page

Search results