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

The return type is wrong in spanish translation #77

Open
aliveghost04 opened this issue Mar 18, 2024 · 3 comments
Open

The return type is wrong in spanish translation #77

aliveghost04 opened this issue Mar 18, 2024 · 3 comments

Comments

@aliveghost04
Copy link

From manual page: https://php.net/datetimeimmutable.createfromformat


The english documentation indicates the return type of the DateTimeImmutable::createFromFormat or date_create_immutable_from_format should be DateTimeImmutable|false but instead indicates DateTimeImmutable which can lead to bugs when not handling the boolean possible return value.

@leonardolara
Copy link

This is because this page is translated using a reference from May 17th, 2013; many years ago. This happens with almost 1/3 of the Spanish translated pages, which are not updated for a looong time.

@aliveghost04
Copy link
Author

I just read the guia.pdf file. I could help with this issue.

Marqitos added a commit to Marqitos/php-doc-es that referenced this issue Feb 9, 2025
@Marqitos
Copy link
Contributor

Marqitos commented Feb 9, 2025

I just translate the docs for manual page: https://php.net/datetimeimmutable.createfromformat

And some related documents, so that the documentation doesn't get corrupted, since there are references between them.
It's just the beginning, but I hope to update the documentation little by little.

There is still a lot of talk about PHP 5 in the Spanish documentation, when in the original it is not even mentioned, and the changes of PHP 8 are mentioned.


He traducido el documento relacionado con la página del manual: https://php.net/datetimeimmutable.createfromformat

Y algunos documentos relacionados, para que la documentación no se corrompa, ya que hay referencias entre ellos.
Es solo el principio, pero espero ir actualizando la documentación poco a poco.

Aun se habla mucho de PHP 5 en la documentación en español, cuando en la original ni se menciona, y se mencionan los cambios de PHP 8.

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

No branches or pull requests

3 participants