Skip to content

GettextMoReader

GettextMoReader reads a .mo file into an array.

final class GettextMoReader

Since1.0.0
SourceTranslation/Gettext/GettextMoReader.php
MethodDescription
readFile(string $filePath): array<string, string>Parses a .mo file and returns the data as an array.

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.

ParameterTypeDescription
$filePathstringFull path to the .mo file.

Returns array``<``string``, ``string``> — The translation data.