Translator.
Instantiate a translator
| Parameters: | array|Traversable – |
|---|---|
| Return type: | Translator |
| Throws : | ExceptionInvalidArgumentException |
Set the default locale.
| Parameters: | string – |
|---|---|
| Return type: | Translator |
Set the fallback locale.
| Parameters: | string – |
|---|---|
| Return type: | Translator |
Set the plugin manager for translation loaders
| Parameters: | LoaderPluginManager – |
|---|---|
| Return type: | Translator |
Retrieve the plugin manager for translation loaders.
Lazy loads an instance if none currently set.
| Return type: | LoaderPluginManager |
|---|
Translate a message.
| Parameters: |
|
|---|---|
| Return type: | string |
Translate a plural message.
| Parameters: |
|
|---|---|
| Return type: | string |
| Throws : | ExceptionOutOfBoundsException |
Get a translated message.
| Parameters: |
|
|---|---|
| Return type: | string|null |
Add a translation file.
| Parameters: |
|
|---|---|
| Return type: | Translator |
Add multiple translations with a file pattern.
| Parameters: |
|
|---|---|
| Return type: | Translator |