To few arguments. (php -f convert_to_array.php localeDir fromLang filename.po toLang filename.php Example: php -f convert_to_array.php ../hu_HU/ en_US messages.po hu_HU strings.inc.php