A

ApcuCacheClass in namespace PhpMyAdmin\MoTranslator\Cache
ApcuCacheFactoryClass in namespace PhpMyAdmin\MoTranslator\Cache

B

Loader::bindtextdomain() — Method in class Loader

Sets the path for a domain.

C

CacheExceptionClass in namespace PhpMyAdmin\MoTranslator
CacheFactoryInterfaceClass in namespace PhpMyAdmin\MoTranslator\Cache
CacheInterfaceClass in namespace PhpMyAdmin\MoTranslator\Cache

D

Loader::detectlocale() — Method in class Loader

Detects currently configured locale.

E

$ MoParser#errorProperty in class MoParser

Parse error code (0 if no error).

$ Translator#errorProperty in class Translator

Parse error code (0 if no error).

Translator::exists() — Method in class Translator

Check if a string is translated.

Translator::extractPluralCount() — Method in class Translator

Extracts number of plurals from plurals form expression.

Translator::extractPluralsForms() — Method in class Translator

Parse full PO header and extract only plural forms line.

G

ApcuCache::get() — Method in class ApcuCache

Returns cached msgstr if it is in cache, otherwise $msgid

ApcuCacheFactory::getInstance() — Method in class ApcuCacheFactory
CacheFactoryInterface::getInstance() — Method in class CacheFactoryInterface
CacheInterface::get() — Method in class CacheInterface

Returns cached msgstr if it is in cache, otherwise $msgid

GetAllInterfaceClass in namespace PhpMyAdmin\MoTranslator\Cache
GetAllInterface::getAll() — Method in class GetAllInterface
InMemoryCache::get() — Method in class InMemoryCache

Returns cached msgstr if it is in cache, otherwise $msgid

InMemoryCache::getAll() — Method in class InMemoryCache
Loader::getInstance() — Method in class Loader

Returns the singleton Loader object.

Loader::getTranslator() — Method in class Loader

Returns Translator object for domain or for default domain.

Translator::gettext() — Method in class Translator

Translates a string.

Translator::getTranslations() — Method in class Translator

Get the translations

H

ApcuCache::has() — Method in class ApcuCache

Returns true if cache has entry for $msgid

CacheInterface::has() — Method in class CacheInterface

Returns true if cache has entry for $msgid

InMemoryCache::has() — Method in class InMemoryCache

Returns true if cache has entry for $msgid

I

InMemoryCacheClass in namespace PhpMyAdmin\MoTranslator\Cache

L

LoaderClass in namespace PhpMyAdmin\MoTranslator
Loader::loadFunctions() — Method in class Loader

Loads global localization functions.

Loader::listLocales() — Method in class Loader

Figure out all possible locale names and start with the most specific ones. I.e. for sr_CS.UTF-8@latin, look through all of sr_CS.UTF-8@latin, sr_CS@latin, sr@latin, sr_CS.UTF-8, sr_CS, sr.

M

MoParserClass in namespace PhpMyAdmin\MoTranslator

N

Translator::ngettext() — Method in class Translator

Plural version of gettext.

Translator::npgettext() — Method in class Translator

Plural version of pgettext.

P

MoParser::parseIntoCache() — Method in class MoParser

Parses .mo file and stores results to $cache

Translator::pgettext() — Method in class Translator

Translate with context.

R

ReaderExceptionClass in namespace PhpMyAdmin\MoTranslator

Exception thrown when file can not be read.

StringReader::read() — Method in class StringReader

Read number of bytes from given offset.

StringReader::readint() — Method in class StringReader

Reads a 32bit integer from the stream.

StringReader::readintarray() — Method in class StringReader

Reads an array of integers from the stream.

S

ApcuCache::set() — Method in class ApcuCache

Caches $msgstr value for key $mesid

ApcuCache::setAll() — Method in class ApcuCache
CacheInterface::set() — Method in class CacheInterface

Caches $msgstr value for key $mesid

CacheInterface::setAll() — Method in class CacheInterface

Populates cache with array of $msgid => $msgstr entries

InMemoryCache::set() — Method in class InMemoryCache

Caches $msgstr value for key $mesid

InMemoryCache::setAll() — Method in class InMemoryCache
Loader::setCacheFactory() — Method in class Loader

Sets factory responsible for composing a CacheInterface

Loader::setlocale() — Method in class Loader

Sets a requested locale.

StringReaderClass in namespace PhpMyAdmin\MoTranslator

Simple wrapper around string buffer for random access and values parsing.

Translator::sanitizePluralExpression() — Method in class Translator

Sanitize plural form expression for use in ExpressionLanguage.

Translator::setTranslation() — Method in class Translator

Set translation in place

Translator::setTranslations() — Method in class Translator

Set the translations

T

Loader::textdomain() — Method in class Loader

Sets the default domain.

TranslatorClass in namespace PhpMyAdmin\MoTranslator

Provides a simple gettext replacement that works independently from the system's gettext abilities.

_

ApcuCache::__construct() — Method in class ApcuCache
ApcuCacheFactory::__construct() — Method in class ApcuCacheFactory
InMemoryCache::__construct() — Method in class InMemoryCache
MoParser::__construct() — Method in class MoParser
StringReader::__construct() — Method in class StringReader
Translator::__construct() — Method in class Translator