bcosca / fatfree

A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!
2.66k stars 446 forks source link

'kz' locale trouble #1262

Closed diverdm closed 1 year ago

diverdm commented 1 year ago

When I use "kz.php" locale file (i.e. f3->set('LANGUAGE', 'kz' )), I get error "Undefined constant ISO::LC_kz". It is inside "Work around PHP's Turkish locale bug" block in f3's "base.php", line 1136. If I delete this block, it is OK, but should I ?

xfra35 commented 1 year ago

This error is expected because there's no kz ISO 639-1 code.

See https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

If you're trying to set the kazakh locale, the right code is kk.