Class Language

Description

This represents a Language.

  • version: $Id: Language.php,v 1.13 2006/11/26 22:04:34 kpapst Exp $
  • copyright: Copyright (C) 2002-2006 Kevin Papst
  • author: Kevin Papst
  • license: GNU Public License


			
Method Summary
Language Language (locale $locale)
String getCharset ()
String getFullLocale ()
String getID ()
void getLanguageID ()
String getLanguageName ([ $locale = ''])
String getLocale ()
String getName ([ $locale = ''])
void getShortLocale ()
String getTranslation ()
void toString ()
Methods
Constructor Language (line 46)

Loads the specfied Language by its Locale.

Language Language (locale $locale)
  • locale $locale: the Language Locale
getCharset (line 147)

Returns the Character Set this Language uses.

This is normally the HTML encoding used in the Browser.

  • return: the encoding to use for this language
String getCharset ()
getDefaultLanguageName (line 102)

Returns the default Name of this Language, normally the Name of the Language written in the language itself.

  • return: the default Name of the Language
String getDefaultLanguageName ()
getFullLocale (line 137)

Might returns the same as

, but can return a longer version, like locale_Country.

  • return: the Full Locale of this Language
String getFullLocale ()
getID (line 69)

Returns the ID of this Language.

Better try to use

instead, cause Locales are System independent.

  • return: the Language Locale
String getID ()
getLanguageID (line 78)
void getLanguageID ()
getLanguageName (line 89)

Returns the Name of this Language in the requested Locale.

If no Locale is passed, the current User Locale is used! See

  1. _ULC
.

  • return: the Language name
String getLanguageName ([ $locale = ''])
  • $locale
getLocale (line 119)

Returns the Locale of this Language.

  • return: the Locale of this Language
String getLocale ()
getName (line 110)
String getName ([ $locale = ''])
  • $locale
getShortLocale (line 127)
void getShortLocale ()
getTranslation (line 157)

Get the translation Key for this Language.

Use this methods result for loading Language Files.

  • return: the Identifier to load Language Files for
String getTranslation ()
toString (line 165)

Returns the Locale.

void toString ()

Documentation generated by phpDocumentor 1.3.1