mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Locales/Search
* do not apply minimum string length limiter to logographic languages
This commit is contained in:
@@ -853,6 +853,12 @@ abstract class Util
|
||||
));
|
||||
}
|
||||
|
||||
// todo: create Locale object and integrate
|
||||
public static function isLogographic(int $localeId) : bool
|
||||
{
|
||||
return $localeId == LOCALE_CN || $localeId == LOCALE_TW || $localeId == LOCALE_KR;
|
||||
}
|
||||
|
||||
// default back to enUS if localization unavailable
|
||||
public static function localizedString(array $data, string $field, bool $silent = false) : string
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user