Doc #71908 [Opn->Ver]: [PT_BR] mistake in example code

From: Date: Thu, 31 Mar 2016 12:56:59 +0000
Subject: Doc #71908 [Opn->Ver]: [PT_BR] mistake in example code
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13368@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71908&edit=1 ID: 71908 Updated by: cmb@php.net Reported by: elia dot melfior at softexpert dot com -Summary: Just a mistake in translation +Summary: [PT_BR] mistake in example code -Status: Open +Status: Verified Type: Documentation Problem Package: Translation problem -Operating System: Windows +Operating System: * PHP Version: Irrelevant Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2016-03-28 13:43:50] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71908&edit=1

« previous php.doc.bugs (#13368) next »