home
classes/clusters list
class information
+
Point of view
All features
ANY
BUNDLE_FACTORY
TYPED_INTERNALS
INTERNALS_HANDLER
All features
expanded class INTERNATIONALIZATION
Summary
top
Use this class to format i18N'ed messages
Direct parents
insert list:
ANY
Overview
top
features
set_factory
(a_bundle_factory:
BUNDLE_FACTORY
)
Sets the bundle factory to use.
bundle_factory
:
BUNDLE_FACTORY
format
(bundle_name:
STRING
, key:
STRING
, parameters:
TRAVERSABLE
[
STRING
]):
STRING
Formats the value attached to the given
key
in the bundle knowned by its
bundle_name
(retrieved via the
bundle_factory
).
locale
:
LOCALE
The current locale
set_locale
(a_locale:
LOCALE
)
Change the locale
default_locale
:
LOCALE
The default locale (set by the system at application startup)
bundle_factory_memory
:
REFERENCE
[
BUNDLE_FACTORY
]
locale_memory
:
REFERENCE
[
LOCALE
]
default_locale_memory
:
REFERENCE
[
LOCALE
]
default_create
Default creation method.
i18n_user_country
:
POINTER
i18n_user_language
:
POINTER
set_factory
(a_bundle_factory:
BUNDLE_FACTORY
)
once procedure
top
Sets the bundle factory to use.
Can be called only once.
require
a_bundle_factory /= Void
bundle_factory
= Void
ensure
bundle_factory
= a_bundle_factory
bundle_factory
:
BUNDLE_FACTORY
effective function
top
format
(bundle_name:
STRING
, key:
STRING
, parameters:
TRAVERSABLE
[
STRING
]):
STRING
effective function
top
Formats the value attached to the given
key
in the bundle knowned by its
bundle_name
(retrieved via the
bundle_factory
).
May always return the same string.
require
factory_set:
bundle_factory
/= Void
locale
:
LOCALE
effective function
top
The current locale
set_locale
(a_locale:
LOCALE
)
effective procedure
top
Change the locale
default_locale
:
LOCALE
effective function
top
The default locale (set by the system at application startup)
ensure
Result /= Void
bundle_factory_memory
:
REFERENCE
[
BUNDLE_FACTORY
]
once function
top
locale_memory
:
REFERENCE
[
LOCALE
]
once function
top
default_locale_memory
:
REFERENCE
[
LOCALE
]
once function
top
default_create
effective procedure
top
Default creation method.
It is used when no creation method is specified if allowed. Note it may be renamed.
i18n_user_country
:
POINTER
top
i18n_user_language
:
POINTER
top