PHP-based localization class