PHP-po-parser icon indicating copy to clipboard operation
PHP-po-parser copied to clipboard

Parse Gettext *.PO files with PHP

Results 6 PHP-po-parser issues
Sort by recently updated
recently updated
newest added

with following lines ` if ($x[0] == '"') { $x = substr($x, 1, -1); }` error: trying to access array offset on value of type bool ($x) PoParser.php line 755

With following file the `msgid_plural` is set to null, this patch fixes this. ``` msgid "%d window" msgid_plural "%d windows" msgstr[0] "" msgstr[1] "" ```

could be super if it could write mo files perhaps get inspiration here: https://github.com/phpmo/php.mo/blob/master/php-mo.php

enhancement

This PR brings better handling of headers by: - Allowing to get a specific header by its key. - Allow setting a single header. - Remove a specific header by...

This stops deprecation warnings in PHP8.4.