-
Couldn't load subscription status.
- Fork 826
Add Locale::getLanguage() and make getPrimaryLanguage() its alias #1085
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
Conversation
This documentation change supports the php-src pull request at php/php-src#7644
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <methodparam><type>string</type><parameter>locale</parameter></methodparam> | ||
| </methodsynopsis> | ||
| <para> | ||
| Gets the language for the input locale |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though this has been copied, let's stick with basic English punctuation rules :)
| Gets the language for the input locale | |
| Gets the language for the input locale. |
| <term><parameter>locale</parameter></term> | ||
| <listitem> | ||
| <para> | ||
| The locale to extract the language code from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The locale to extract the language code from | |
| The locale to extract the language code from. |
| </methodsynopsis> | ||
| <para> | ||
| Gets the primary language for the input locale | ||
| Gets the language for the input locale |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this line is modified anyway:
| Gets the language for the input locale | |
| Gets the language for the input locale. |
| </para> | ||
| <note> | ||
| <para> | ||
| <methodname>Locale::getPrimaryLanguage</methodname> is an alias of <methodname>Locale::getLanguage</methodname>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only the case as of PHP 8.2.0, so:
| <methodname>Locale::getPrimaryLanguage</methodname> is an alias of <methodname>Locale::getLanguage</methodname>. | |
| As of PHP 8.2.0, <methodname>Locale::getPrimaryLanguage</methodname> | |
| is an alias of <methodname>Locale::getLanguage</methodname>. |
| <listitem> | ||
| <para> | ||
| The locale to extract the primary language code from | ||
| The locale to extract the language code from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The locale to extract the language code from | |
| The locale to extract the language code from. |
| <para> | ||
| &style.oop; | ||
| </para> | ||
| <methodsynopsis role="oop"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kocsismate, do we want to fix the role right away?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh, it seems php/php-src#7644 has never been merged.
|
@ramsey If the php-src PR was closed without merging, is this documentation PR still relevant? |
|
This PR can be closed, since the other was closed without merging. Thanks! |

This documentation change supports the php-src pull request at php/php-src#7644