$locale->getDisplayName(), Locale::getLocales()); return $locales; } } class_alias('\PKP\i18n\PKPLocale', '\PKPLocale'); // Shared locale components define('LOCALE_COMPONENT_PKP_COMMON', 0x00000001); define('LOCALE_COMPONENT_PKP_ADMIN', 0x00000002); define('LOCALE_COMPONENT_PKP_INSTALLER', 0x00000003); define('LOCALE_COMPONENT_PKP_MANAGER', 0x00000004); define('LOCALE_COMPONENT_PKP_READER', 0x00000005); define('LOCALE_COMPONENT_PKP_SUBMISSION', 0x00000006); define('LOCALE_COMPONENT_PKP_USER', 0x00000007); define('LOCALE_COMPONENT_PKP_GRID', 0x00000008); define('LOCALE_COMPONENT_PKP_DEFAULT', 0x00000009); define('LOCALE_COMPONENT_PKP_EDITOR', 0x0000000A); define('LOCALE_COMPONENT_PKP_REVIEWER', 0x0000000B); define('LOCALE_COMPONENT_PKP_API', 0x0000000C); // Application-specific locale components define('LOCALE_COMPONENT_APP_COMMON', 0x00000100); define('LOCALE_COMPONENT_APP_MANAGER', 0x00000101); define('LOCALE_COMPONENT_APP_SUBMISSION', 0x00000102); define('LOCALE_COMPONENT_APP_AUTHOR', 0x00000103); define('LOCALE_COMPONENT_APP_EDITOR', 0x00000104); define('LOCALE_COMPONENT_APP_ADMIN', 0x00000105); define('LOCALE_COMPONENT_APP_DEFAULT', 0x00000106); define('LOCALE_COMPONENT_APP_API', 0x00000107); define('LOCALE_COMPONENT_APP_EMAIL', 0x00000108); }