SourceForge.net LogoPHPGallue
[ class tree: libbase ] [ index: libbase ] [ all elements ]

Class: GALDictionary

Source Location: /libbase/i18n.inc.php

Class Overview


A dictionary.


Variables

Methods


Child classes:


Class Details

[line 32]
A dictionary.

This class contains the translation for certain english phrases. If you want to know which phrases can be translated, please look at the source. The phrases are designed to be used with sprintf().




[ Top ]


Class Variables

$data = array()

[line 38]

The translations.



Tags:

access:  protected

Type:   array


[ Top ]

$lang =  'en'

[line 43]

The current language.



Tags:

var:  Currently 'en' or 'de'.
access:  protected

Type:   string


[ Top ]



Class Methods


constructor __construct [line 51]

GALDictionary __construct( [string $lang = 'en'])

Initializes the dictionary.

This method sets the language the phrases are translated to and inserts the translations.




Tags:

throws:  GAL_EI18n


Overridden in child classes as:

GALGalleryTranslations::__construct()
GALFrontendTranslation::__construct()

Parameters:

string   $lang  

[ Top ]

method query [line 278]

The query( string $string)

Translate an english phrase.

This method takes a phrase and looks up the translation according to the language set in $language




Tags:

return:  translated phrase.
throws:  GAL_EI18n


Parameters:

string   $string   The phrase to translate.

[ Top ]


Documentation generated on Wed, 16 Aug 2006 15:36:10 +0200 by phpDocumentor 1.3.0RC6