Skip to content
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

Remove special cases for the gettext shorthand function #1029

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

MauricioFauth
Copy link
Member

@MauricioFauth MauricioFauth commented Jul 12, 2024

After php/doc-en#3556 being merged, these special cases for the gettext() shorthand _() will not be needed anymore.

Copy link

github-actions bot commented Jul 12, 2024

🚀 Commit 7b11b96 Deployed on https://web-php-pr-1029.preview.thephp.foundation

Copy link
Member

@saundefined saundefined left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, we have to wait for the documentation merge.

Thanks!

MauricioFauth added a commit to php/doc-en that referenced this pull request Jul 19, 2024
The _() function is an alias of the gettext() function.

Adding a dedicated manual page for this function will remove the need
for the special cases created for it when generating the manual.

See:
- https://bugs.php.net/bug.php?id=63490
- php/systems@b67fa16
- php/web-php@fdec771
- https://github.com/php/php-src/blob/PHP-4.0/ext/gettext/gettext.c#L39

- php/web-php#1029
- php/systems#23
@MauricioFauth
Copy link
Member Author

Documentation PR was merged and is already live.
https://www.php.net/manual/en/function.-.php

@sy-records sy-records merged commit 96d1508 into php:master Jul 19, 2024
4 checks passed
@MauricioFauth MauricioFauth deleted the gettext-underscore-alias branch July 19, 2024 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants