10000 Added documentation for the Intl component by webmozart · Pull Request #2312 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Added documentation for the Intl component #2312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 30, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed quirks in the Intl documentation
  • Loading branch information
webmozart committed Apr 5, 2013
commit cfea9507552cd1ac173c5cc98ad313566b6652b7
24 changes: 12 additions & 12 deletions components/intl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ If you install the component via Composer, the following classes and functions
of the intl extension will be automatically provided if the intl extension is
not loaded:

* :phpclass:``Collator``
* :phpclass:``IntlDateFormatter``
* :phpclass:``Locale``
* :phpclass:``NumberFormatter``
* :phpfunction:``intl_error_name``
* :phpfunction:``intl_is_failure``
* :phpfunction:``intl_get_error_code``
* :phpfunction:``intl_get_error_message``
* :phpclass:`Collator`
* :phpclass:`IntlDateFormatter`
* :phpclass:`Locale`
* :phpclass:`NumberFormatter`
* :phpfunction:`intl_error_name`
* :phpfunction:`intl_is_failure`
* :phpfunction:`intl_get_error_code`
* :phpfunction:`intl_get_error_message`

If you don't use Composer but the Symfony ClassLoader component, you need to
load them manually by adding the following lines to your autoload code::
Expand All @@ -59,14 +59,14 @@ locales, `install the intl extension`_ instead.
Locale
~~~~~~

The only method supported in the :phpclass:``Locale`` class is
The only method supported in the :phpclass:`Locale` class is
:phpmethod:`Locale::getDefault`. This method will always return "en". All other
methods will throw an exception when used.

NumberFormatter
~~~~~~~~~~~~~~~

Numbers can be formatted with the :phpclass:``NumberFormatter`` class.
Numbers can be formatted with the :phpclass:`NumberFormatter` class.
The following methods are supported. All other methods are not supported and
will throw an exception when used.

Expand Down Expand Up @@ -288,7 +288,7 @@ class::
'Data' => array(
'entry1',
'entry2',
...
// ...
),
));

Expand All @@ -314,7 +314,7 @@ Writes an array or an array-like object to a .php resource bundle::
'Data' => array(
'entry1',
'entry2',
...
// ...
),
));

Expand Down
0