class MoFileLoader extends FileLoader
MO_LITTLE_ENDIAN_MAGIC | Magic used for validating the format of a MO file as well as detecting if the machine used to create that file was little endian. |
MO_BIG_ENDIAN_MAGIC | Magic used for validating the format of a MO file as well as detecting if the machine used to create that file was big endian. |
MO_HEADER_SIZE | The size of the header of a MO file in bytes. |
MessageCatalogue | load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. | from FileLoader |
array | loadResource(string $resource) Parses machine object (MO) format, independent of the machine's endian it was created on. Both 32bit and 64bit systems are supported. |
Loads a locale.
mixed | $resource | A resource |
string | $locale | A locale |
string | $domain | The domain |
MessageCatalogue | A MessageCatalogue instance |
NotFoundResourceException | when the resource cannot be found |
InvalidResourceException | when the resource cannot be loaded |
Parses machine object (MO) format, independent of the machine's endian it was created on. Both 32bit and 64bit systems are supported.
{@inheritdoc}
string | $resource |
array |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Translation/Loader/MoFileLoader.html