php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #70085 [ZH] A omit of the 'empty' function manual
Submitted: 2015-07-16 03:19 UTC Modified: 2015-08-22 16:46 UTC
From: DevonLiu at foxmail dot com Assigned: jhdxr (profile)
Status: Closed Package: Translation problem
PHP Version: 5.5.27 OS: Ubuntu 14.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: DevonLiu at foxmail dot com
New email:
PHP Version: OS:

 

 [2015-07-16 03:19 UTC] DevonLiu at foxmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.empty
---
The 'empty' manual page in Chinese is out of time.

It makes me confused once.
In 5.5.x, the 'empty' function could determine whether a variable is empty, and we could learn that empty() also support a expression from the note statement.

The problem is, in Chinese version had not add that note yet. For a time, our team had always wonder why some code likes 'empty(trim($var))' can run on one's platform, but others, until we saw the manual in English version.

Maybe you guys could add the note in English for Chinese manual page. I am happy to translate it when i am free.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-07-16 10:53 UTC] cmb@php.net
-Summary: A omit of the 'empty' function manual +Summary: [ZH] A omit of the 'empty' function manual
 [2015-07-16 10:53 UTC] cmb@php.net
> Maybe you guys could add the note in English for Chinese manual
> page.

That is usually not done. Instead we rely on the translation team
to update the translations in a timely manner. There are tools
available, which show the diffs, e.g.
<http://svn.php.net/viewvc/phpdoc/en/trunk/reference/var/functions/empty.xml?r1=322174&r2=334621>.

If you want to help with the translation, I you can supply patches
via <https://edit.php.net/>, and maybe it's useful to contact
doc-zh@php.net also.
 [2015-07-17 03:12 UTC] DevonLiu at foxmail dot com
Got it. Thank you for the suggestion.
 [2015-08-22 16:45 UTC] jhdxr@php.net
Automatic comment from SVN on behalf of jhdxr
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=337588
Log: Fixed bug #70085 [ZH] A omit of the 'empty' function manual
 [2015-08-22 16:46 UTC] jhdxr@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: jhdxr
 [2015-08-22 16:46 UTC] jhdxr@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-12-30 10:47 UTC] nikic@php.net
Automatic comment on behalf of jhdxr
Revision: http://git.php.net/?p=doc/zh.git;a=commit;h=c7ff52530c2ad8ae4261d129b8f83b8bb40acc12
Log: Fixed bug #70085 [ZH] A omit of the 'empty' function manual
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC