php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71908 [PT_BR] mistake in example code
Submitted: 2016-03-28 13:43 UTC Modified: 2016-04-14 03:45 UTC
From: elia dot melfior at softexpert dot com Assigned: ae (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS: *
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: elia dot melfior at softexpert dot com
New email:
PHP Version: OS:

 

 [2016-03-28 13:43 UTC] elia dot melfior at softexpert dot com
Description:
------------
---
From manual page: http://php.net/manual/pt_BR/functions.arguments.php
---

There is a mistake in the portuguese translation, which is incomplete and affects the code, right here:


<?php
function cafeteira ($tipo = "cappuccino")
{
    return "Fazendo uma xícara de café $tipo.\n";
}
echo cafeteira ();
echo makecoffee(null);
echo cafeteira ("expresso");
?>

It should be instead:

<?php
function cafeteira ($tipo = "cappuccino")
{
    return "Fazendo uma xícara de café $tipo.\n";
}
echo cafeteira ();
echo cafeteira(null);
echo cafeteira ("espresso");
?>

So it would work in line with the expected output. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-31 12:56 UTC] cmb@php.net
-Summary: Just a mistake in translation +Summary: [PT_BR] mistake in example code -Status: Open +Status: Verified -Operating System: Windows +Operating System: *
 [2016-04-14 03:44 UTC] ae@php.net
Automatic comment from SVN on behalf of ae
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=339004
Log: Fix #71908
 [2016-04-14 03:45 UTC] ae@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: ae
 [2016-04-14 03:45 UTC] ae@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:45 UTC] nikic@php.net
Automatic comment on behalf of ae
Revision: http://git.php.net/?p=doc/pt_br.git;a=commit;h=125ba2ff85fdc7d05db7a45df2a4a8927c3a9a4c
Log: Fix #71908
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 05:01:32 2024 UTC