메소드 |
설명 |
|
_allLocalesCacheMiss ( $cache, $id ) |
Create a cache file with locale data. |
|
_getAllLocalesCache ( ) : FileCache |
Get the cache object for the current list of all locales. |
|
_getAllLocalesCacheContent ( ) : array |
Retrieves locale data from the locales cache. |
|
get2LetterFrom3LetterIsoLanguage ( $iso3Letter ) : string |
Translate the ISO 3-letter language string (ISO639-2b)
into a ISO compatible 2-letter string (ISO639-1). |
|
get3LetterFrom2LetterIsoLanguage ( $iso2Letter ) : string |
Translate the ISO 2-letter language string (ISO639-1)
into a ISO compatible 3-letter string (ISO639-2b). |
|
get3LetterIsoFromLocale ( $locale ) : string |
Translate the PKP locale identifier into an
ISO639-2b compatible 3-letter string. |
|
getAllLocales ( ) : array |
Return a list of all available locales. |
|
getFilenameComponentMap ( $locale ) : array |
Get an associative array of LOCALE_COMPOMENT_. |
|
getIso1FromIso3 ( $iso3 ) : string |
Translate the ISO639-3 into ISO639-1. |
|
getIso1FromLocale ( $locale ) : string |
Translate the PKP locale identifier into an
ISO639-1 compatible 2-letter string. |
|
getIso3FromIso1 ( $iso1 ) : string |
Translate the ISO 2-letter language string (ISO639-1) into ISO639-3. |
|
getIso3FromLocale ( $locale ) : string |
Translate the PKP locale identifier into an
ISO639-3 compatible 3-letter string. |
|
getLocaleDirection ( $locale ) : string |
Get the reading direction for a particular locale. |
|
getLocaleFiles ( $locale = null ) |
Get a list of locale files currently registered, either in all
locales (in an array for each locale), or for a specific locale. |
|
getLocaleFrom3LetterIso ( $iso3Letter ) : string |
Translate an ISO639-2b compatible 3-letter string
into the PKP locale identifier. |
|
getLocaleFromIso3 ( $iso3 ) : string |
Translate an ISO639-3 compatible 3-letter string
into the PKP locale identifier. |
|
getLocaleStyleSheet ( $locale ) : string |
Get the stylesheet filename for a particular locale. |
|
getParameterNames ( $source ) : array |
Given a locale string, get the list of parameter references of the
form {$myParameterName}. |
|
getTimeZone ( ) : string |
Get the sites time zone. |
|
initialize ( $request ) |
Initialize the locale system. |
|
installLocale ( $locale ) |
Install support for a new locale. |
|
isLocaleComplete ( $locale ) : boolean |
Determine whether or not a locale is marked incomplete. |
|
isLocaleValid ( $locale ) : boolean |
Check if the supplied locale is currently installable. |
|
loadLocaleList ( $filename ) : array |
Load a locale list from a file. |
|
makeComponentMap ( $locale ) : array |
Build an associative array of LOCALE_COMPOMENT_. |
|
registerLocaleFile ( $locale, $filename, $addToTop = false ) |
Register a locale file against the current list. |
|
reloadLocale ( $locale ) |
Reload locale-specific data. |
|
requireComponents ( ) |
Load a set of locale components. Parameters of mixed length may
be supplied, each a LOCALE_COMPONENT_. |
|
translate ( $key, $params = [], $locale = null ) : string |
Translate a string using the selected locale. |
|
uninstallLocale ( $locale ) |
Uninstall support for an existing locale. |
|