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
 [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: Mon Jun 10 03:01:31 2024 UTC