Packages » Package i18n » Class I18NMessageFile

Class I18NMessageFile

Declaration:
<? class I18NMessageFile implements I18NMessageDictionary ?>

Description:
This is an implementation of I18NMessageDictionary that uses an ini file for storing messages

Implemented Interfaces:
I18NMessageDictionary

See also:

Authors:
  • Dennis Popel

Methods:
  • __construct()
    Create the dictionary from the file $path. Note this should be the absolute path (i.e., this method will not call Package::getResourcePath on this path
  • translateMessage()
    Return translated message with the given ID, into the given language dialect. If the specified dialect or translation could not be found, this will try to translate into the Official dialect of the language.