sokil / php-isocodes

:star: PHP library providing ISO codes with localization: country (ISO 3166-1), subdivision (ISO 3166-2), language (ISO 639-3), currency (ISO 4217) and scripts (ISO 15924)

Home Page:http://sokil.github.io/php-isocodes/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined constant "Sokil\IsoCodes\TranslationDriver\LC_MESSAGES"

defstat opened this issue · comments

I am using a windows development machine with

PHP 8.0.2 (cli) (built: Feb 3 2021 18:36:40) ( ZTS Visual C++ 2019 x64 )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
with Xdebug v3.0.4, Copyright (c) 2002-2021, by Derick Rethans

and I am getting

Undefined constant "Sokil\IsoCodes\TranslationDriver\LC_MESSAGES" in \vendor\sokil\php-isocodes\src\TranslationDriver\GettextExtensionDriver.php:37

It seems that my installation does not have the LC_MESSAGES defined. Trying to find some solution for this I came across this post.

I tried something like this and it seems it work for my installation.