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

Class: GAL_I18n

Source Location: /libbase/i18n.inc.php

Class Overview


Hook for translating messages.


Methods



Class Details

[line 295]
Hook for translating messages.

This class loads a certain dictionary and provides the static method GAL_I18n::sprintf() to access this dictionary.




[ Top ]


Class Methods


static method load [line 306]

static void load( GALDictionary $dict)

Loads a dictionary.



Parameters:

GALDictionary   $dict   The dictionary to load.

[ Top ]

static method sprintf [line 320]

static The sprintf( string $phrase, mixed $param,...)

Translate a string.

This method translates it's first argument with the current dictionary and returns the result of sprintf() with the translation as first argument and this method's other arguments which are passed directly to sprintf().




Tags:

return:  result of sprintf() called with the translation and the other arguments of this method().
throws:  GAL_EI18n


Parameters:

string   $phrase   The phrase that is translated.
mixed   $param,...   The other arguments which are passed directly to sprintf().

[ Top ]


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