GettextMoReader
GettextMoReader reads a .mo file into an array.
Synopsis
Section titled “Synopsis”final class GettextMoReader
| Since | 1.0.0 |
| Source | Translation/Gettext/GettextMoReader.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
readFile(string $filePath): array<string, string> | Parses a .mo file and returns the data as an array. |
readFile()
Section titled “readFile()”public static function readFile(string $filePath): array<string, string>
Parses a .mo file and returns the data as an array.
Full path to the .mo file.
| Parameter | Type | Description |
|---|---|---|
$filePath | string | Full path to the .mo file. |
Returns array``<``string``, ``string``> — The translation data.