-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from froschdesign/hotfix/docs/83
Expand documentation in introduction and validators files
- Loading branch information
Showing
4 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,35 @@ | ||
# Introduction | ||
|
||
`Laminas\I18n` comes with a complete translation suite which supports all major | ||
## Translation | ||
|
||
`Laminas\I18n` comes with a [complete translation](translation.md) suite which supports all major | ||
formats and includes popular features like plural translations and text domains. | ||
The Translator component is mostly dependency free, except for the fallback to a | ||
default locale, where it relies on the Intl PHP extension. | ||
default locale, where it relies on the `intl` PHP extension. | ||
|
||
The translator itself is initialized without any parameters, as any configuration | ||
to it is optional. A translator without any translations will actually do nothing | ||
but just return the given message IDs. | ||
|
||
## Filters and Validators | ||
|
||
The `Laminas\I18n` component also provides a [set of filters](filters/introduction.md) for normalizing and formatting. | ||
|
||
The component also provides a [set of validators](validators/introduction.md) for validating localized data. | ||
|
||
## View Helpers | ||
|
||
The `Laminas\I18n` component provides also a [set of view helpers](view-helpers/introduction.md) for formatting dates, times, numbers, currencies, and translating messages. | ||
|
||
## Based on PHP's `intl` extension | ||
|
||
The [`intl` extension](https://www.php.net/manual/book.intl.php) is a wrapper for the ICU library, which provides a lot of | ||
internationalization functions. The `intl` extension is a standard PHP extension, and is required for the `Laminas\I18n` component to work. | ||
|
||
The `intl` functions are used for locale detection, filtering and validating localized data, formatting localized data and more. | ||
These functions are used in: | ||
|
||
- Translator | ||
- Filters | ||
- Validators | ||
- View Helpers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters