Procedural File: detect_language.inc.php

Source Location: /CORE/system/libs/detect_language.inc.php

Page Details

Helper function for accepted browser languages and for fniding out languages to be used for language independent item calls.

For further information visit http://www.bigace.de.

Author:  Kevin Papst
Version:  $Id: detect_language.inc.php,v 1.2 2009/02/27 23:22:29 kpapst Exp $
Deprecated:  DO NOT USE ANY LONGER!
License:  GNU Public License
Functions
get_accepted_language  [line 89]

void get_accepted_language( $fallback  )

Returns the language that should be used for a bigace url without language parameter.

Parameters:
   $fallback: 


[ Top ]
get_accept_browser_languages  [line 41]

void get_accept_browser_languages( )

Returns an array of locales, which the users browser has configured.

The first value is the most wanted language...



[ Top ]
get_preferred_language  [line 71]

void get_preferred_language( $available  )

Checks the browser accepted locales against the array of given locales.

The best match that can be found is returned.

Parameters:
   $available: 


[ Top ]