I just realized that CakePHP itself (cakephp/localized) uses 'ua' for Ukrainian and it is impossible to use both plugin's and cakephp/localized localization in case localization for plugin correctly uses uk for Ukrainian because it's impossible to set more than one defaultLocale.
My suggestion is rename resources/locales/ua to resources/locales/uk but keep UaValidation.php as refers to Ukraine as country which code is UA according to gettext appendix ISO 3166 two-letter country code and also keep for a while UkValidation.php linked to GbValidation.php as @deprecated which is current state. And UaValidation.php is still usable as far as defaultLocale indiferrent and used manually
It's also possible to use resources/locales/uk_UA to minimize disambiguation with that Uk->Gb part. uk_UA is correct either and will work for both defaultLocale setting uk or uk_UA
I just realized that CakePHP itself (cakephp/localized) uses 'ua' for Ukrainian and it is impossible to use both plugin's and
cakephp/localized
localization in case localization for plugin correctly usesuk
for Ukrainian because it's impossible to set more than onedefaultLocale
.Code
uk
for Ukrainian language is correct because all this locale stuff goes back to gettext that relies to ISO 639 two-letter language codeMy suggestion is rename
resources/locales/ua
toresources/locales/uk
but keepUaValidation.php
as refers to Ukraine as country which code isUA
according to gettext appendix ISO 3166 two-letter country code and also keep for a whileUkValidation.php
linked toGbValidation.php
as@deprecated
which is current state. AndUaValidation.php
is still usable as far asdefaultLocale
indiferrent and used manuallyIt's also possible to use
resources/locales/uk_UA
to minimize disambiguation with that Uk->Gb part. uk_UA is correct either and will work for bothdefaultLocale
settinguk
oruk_UA