static ResourceBundle get(
$baseName, [
$locale = _ULC_], [
$namespace = null], [
$directory = null]
)
|
|
Gets a (if available cached) ResourceBundle.
Parameters:
|
|
$baseName: |
|
|
|
$locale: |
|
|
|
$namespace: |
|
|
|
$directory: |
|
API Tags:
| Return: | or null |
| Access: | public |
static void load(
$baseName, [
$locale = _ULC_], [
$namespace = null], [
$directory = null]
)
|
|
Loads a Translation into the given Namespace.
If no Locale is passed, we take the current User Locale. If no Namespace is provided, we take the global Namespace. If you want to search within a different directory, than the default ones, you can submit an absolute Path.
Parameters:
|
|
$baseName: |
|
|
|
$locale: |
|
|
|
$namespace: |
|
|
|
$directory: |
|
API Tags:
static void loadGlobal(
$baseName, [
$locale = _ULC_], [
$directory = null]
)
|
|
Loads a Translation into the Global Namespace.
Parameters:
|
|
$baseName: |
|
|
|
$locale: |
|
|
|
$directory: |
|
API Tags:
static void translate(
$key, [
$namespace = TRANSLATION_GLOBAL_NAMESPACE], [
$fallback = null]
)
|
|
Fetches a Translation from the requested Namespace.
If no match could be found, it returns the
fallback
. If this is not submitted (what is suggested for missing key search), it returns '??'.$namespace.'#'.$key.'??'
.
Parameters:
|
|
$key: |
|
|
|
$namespace: |
|
|
|
$fallback: |
|
API Tags:
static void translateGlobal(
$key, [
$fallback = null]
)
|
|
Fetches a translation from the Global Namespace.
Parameters:
API Tags: