bcosca / fatfree

A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'kz' locale trouble

diverdm opened this issue · comments

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 ?

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.