Translation2

Содержание
Class Summary Translation2 -- Translation2 class
Introduction -- Usage of Translation2
constructor Translation2::Translation2() -- Constructor
Translation2::get() -- Get translated string
Translation2::getDecorator() -- Return an instance of a decorator
Translation2::getLang() -- get lang info
Translation2::getLangs() -- get langs
Translation2::getPage() -- Get an entire group of strings
Translation2::getRawPage() -- Get the array of strings in a page
Translation2::setLang() -- Set default lang
Translation2::setPageID() -- Set default page
Translation2::setParams() -- Set parameters for next string
Translation2::translate() -- Get translated string
Class Summary Translation2_Admin -- Administration utilities for translation string management
Translation2_Admin::add() -- add a new translation
Translation2_Admin::createNewLang() -- Prepare the storage container for a new lang.
Translation2_Admin::remove() -- remove a translated string
Translation2_Admin::removeLang() -- Remove the lang from the langsAvail table and drop the strings table.
Class Summary Translation2_Admin_Container_dataobjectsimple -- Storage driver for storing/fetching data to/from a database
Translation2_Admin_Container_dataobjectsimple::add() -- Add a new entry in the strings table.
Translation2_Admin_Container_dataobjectsimple::addLangToAvailList() -- Creates a new entry in the langsAvail table.
Translation2_Admin_Container_dataobjectsimple::createNewLang() -- Creates a new table to store the strings in this language.
Translation2_Admin_Container_dataobjectsimple::remove() -- Remove an entry from the strings table.
Translation2_Admin_Container_dataobjectsimple::update() -- Update an existing entry in the strings table.
Class Summary Translation2_Admin_Container_db -- Storage driver for storing/fetching data to/from a database
Translation2_Admin_Container_db::add() -- Add a new entry in the strings table.
Translation2_Admin_Container_db::addLangToAvailList() -- Creates a new entry in the langsAvail table.
Translation2_Admin_Container_db::createNewLang() -- Creates a new table to store the strings in this language.
Translation2_Admin_Container_db::remove() -- Remove an entry from the strings table.
Translation2_Admin_Container_db::update() -- Update an existing entry in the strings table.
Class Summary Translation2_Admin_Container_gettext -- Storage driver for storing/fetching data to/from a gettext file
Translation2_Admin_Container_gettext::add() -- Add a new entry in the strings domain.
Translation2_Admin_Container_gettext::addLangToAvailList() -- Creates a new entry in the langsAvail .ini file.
Translation2_Admin_Container_gettext::createNewLang() -- Creates a new entry in the langs_avail .ini file.
Translation2_Admin_Container_gettext::remove() -- Remove an entry from the strings domain.
Class Summary Translation2_Admin_Container_mdb -- Storage driver for storing/fetching data to/from a database
Translation2_Admin_Container_mdb::add() -- Add a new entry in the strings table.
Translation2_Admin_Container_mdb::addLangToAvailList() -- Creates a new entry in the langsAvail table.
Translation2_Admin_Container_mdb::createNewLang() -- Creates a new table to store the strings in this language.
Translation2_Admin_Container_mdb::remove() -- Remove an entry from the strings table.
Class Summary Translation2_Admin_Container_mdb2 -- Storage driver for storing/fetching data to/from a database
Translation2_Admin_Container_mdb2::add() -- Add a new entry in the strings table.
Translation2_Admin_Container_mdb2::addLangToAvailList() -- Creates a new entry in the langsAvail table.
Translation2_Admin_Container_mdb2::createNewLang() -- Creates a new table to store the strings in this language.
Translation2_Admin_Container_mdb2::remove() -- Remove an entry from the strings table.
Class Summary Translation2_Container -- Storage class
constructor Translation2_Container::Translation2_Container() -- Constructor
Translation2_Container::fetchLangs() -- Fetch the available langs if they're not cached yet.
Translation2_Container::getLang() -- Gets the current lang
Translation2_Container::getLangData() -- Gets the array data for the lang
Translation2_Container::getLangs() -- Gets the available languages
Translation2_Container::getOne() -- Get a single item from the container, without caching the whole page Containers should implement this method.
Translation2_Container::getPage() -- Returns an array of the strings in the selected page Containers should implement this method.
Translation2_Container::getStringID() -- Get the stringID for the given string
Translation2_Container::raiseError() -- Trigger a PEAR error
Translation2_Container::setLang() -- Sets the current lang
Class Summary Translation2_Container_dataobjectsimple -- Storage driver for fetching data from a simple dataobject
constructor Translation2_Container_dataobjectsimple::Translation2_Container_dataobjectsimple() -- Constructor of the container class
Translation2_Container_dataobjectsimple::fetchLangs() -- Fetch the available langs if they're not cached yet.
Translation2_Container_dataobjectsimple::getOne() -- Get a single item from the container, without caching the whole page
Translation2_Container_dataobjectsimple::getPage() -- Returns an array of the strings in the selected page
Translation2_Container_dataobjectsimple::getStringID() -- Get the stringID for the given string
Class Summary Translation2_Container_db -- Storage driver for fetching data from a database
constructor Translation2_Container_db::Translation2_Container_db() -- Constructor of the container class
Translation2_Container_db::fetchLangs() -- Fetch the available langs if they're not cached yet.
Translation2_Container_db::getOne() -- Get a single item from the container, without caching the whole page
Translation2_Container_db::getPage() -- Returns an array of the strings in the selected page
Translation2_Container_db::getStringID() -- Get the stringID for the given string
Class Summary Translation2_Container_gettext -- Storage driver for fetching data with gettext
constructor Translation2_Container_gettext::Translation2_Container_gettext() -- Constructor of the container class
Translation2_Container_gettext::fetchLangs() -- Fetch the available langs if they're not cached yet.
Translation2_Container_gettext::getOne() -- Get a single item from the container, without caching the whole page
Translation2_Container_gettext::getPage() -- Get all the strings from a domain (parsing the .mo file)
Translation2_Container_gettext::getStringID() -- Get the stringID for the given string
Translation2_Container_gettext::setLang() -- Sets the current lang
Translation2_Container_gettext::switchLang() -- 
Class Summary Translation2_Container_mdb -- Storage driver for fetching data from a database
constructor Translation2_Container_mdb::Translation2_Container_mdb() -- Constructor of the container class
Translation2_Container_mdb::fetchLangs() -- Fetch the available langs if they're not cached yet.
Translation2_Container_mdb::getOne() -- Get a single item from the container, without caching the whole page
Translation2_Container_mdb::getPage() -- Returns an array of the strings in the selected page
Translation2_Container_mdb::getStringID() -- Get the stringID for the given string
Class Summary Translation2_Container_mdb2 -- Storage driver for fetching data from a database
constructor Translation2_Container_mdb2::Translation2_Container_mdb2() -- Constructor of the container class
Translation2_Container_mdb2::fetchLangs() -- Fetch the available langs if they're not cached yet.
Translation2_Container_mdb2::getOne() -- Get a single item from the container, without caching the whole page
Translation2_Container_mdb2::getPage() -- Returns an array of the strings in the selected page
Translation2_Container_mdb2::getStringID() -- Get the stringID for the given string
Class Summary Translation2_Decorator -- Decorates a Translation2 class.
constructor Translation2_Decorator::Translation2_Decorator() -- Constructor
Translation2_Decorator::get() -- Get translated string
Translation2_Decorator::getDecorator() -- Return an instance of a decorator
Translation2_Decorator::getLang() -- get lang info
Translation2_Decorator::getLangs() -- get langs
Translation2_Decorator::getPage() -- Same as getRawPage, but resort to fallback language and replace parameters when needed
Translation2_Decorator::getRawPage() -- Get the array of strings in a page
Translation2_Decorator::setLang() -- Set default lang
Translation2_Decorator::setOption() -- set Decorator option
Translation2_Decorator::setOptions() -- set Decorator options
Translation2_Decorator::setPageID() -- Set default page
Translation2_Decorator::setParams() -- Set parameters for next string
Translation2_Decorator::translate() -- Get translated string
Class Summary Translation2_Decorator_BBCode -- Renders BBCode. Requires PEAR::HTML_BBCodeParser
Translation2_Decorator_BBCode::get() -- Get translated string
Translation2_Decorator_BBCode::getPage() -- Same as getRawPage, but apply transformations when needed
Class Summary Translation2_Decorator_CacheLiteFunction -- Decorator to cache fetched data using Cache_Lite_Function class
Translation2_Decorator_CacheLiteFunction::get() -- Get translated string
Translation2_Decorator_CacheLiteFunction::getPage() -- Same as getRawPage, but resort to fallback language and replace parameters when needed
Translation2_Decorator_CacheLiteFunction::getRawPage() -- Get the array of strings in a page
Translation2_Decorator_CacheLiteFunction::translate() -- Get translated string
Class Summary Translation2_Decorator_CacheMemory -- Decorator to cache fetched data in memory
Translation2_Decorator_CacheMemory::get() -- Get translated string
Translation2_Decorator_CacheMemory::getPage() -- Same as getRawPage, but resort to fallback language and replace parameters when needed
Translation2_Decorator_CacheMemory::getRawPage() -- Get the array of strings in a page
Class Summary Translation2_Decorator_DefaultText -- Decorator to provide a fallback text for empty strings.
Translation2_Decorator_DefaultText::get() -- Get translated string
Translation2_Decorator_DefaultText::getPage() -- Replace empty strings with their $stringID
Class Summary Translation2_Decorator_Lang -- Decorator to provide a fallback language for empty strings.
Translation2_Decorator_Lang::get() -- Get translated string
Translation2_Decorator_Lang::getPage() -- Same as getRawPage, but resort to fallback language and replace parameters when needed
Translation2_Decorator_Lang::setFallbackLang() -- Set the fallback lang. When the requested string is not available in the primary lang, this decorator will try with another lang before returning an empty string.
Translation2_Decorator_Lang::setOption() -- set Decorator option (intercept 'fallbackLang' option).
Class Summary Translation2_Decorator_SpecialChars -- Decorator to replace special chars with the matching html entities.
Translation2_Decorator_SpecialChars::get() -- Get translated string
Translation2_Decorator_SpecialChars::getPage() -- Same as getRawPage, but apply transformations when needed
Class Summary Translation2_Decorator_UTF8 -- Decorator to convert UTF-8 strings to ISO-8859-1
Translation2_Decorator_UTF8::get() -- Get translated string
Translation2_Decorator_UTF8::getPage() -- Same as getRawPage, but resort to fallback language and replace parameters when needed
Package Translation2 Constants -- Constants defined in and used by Translation2

HIVE: All information for read only. Please respect copyright!
Hosted by hive ÊÃÁ: Êèåâñêàÿ ãîðîäñêàÿ áèáëèîòåêà