[wp-trac] [WordPress Trac] #41257: translate( null, "domain" ) returns translation of "0" rather than null
WordPress Trac
noreply at wordpress.org
Thu Jul 6 09:19:55 UTC 2017
#41257: translate( null, "domain" ) returns translation of "0" rather than null
--------------------------+------------------------------
Reporter: bobbingwide | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by MaximeCulea):
I am wondering if `translate( null, "domain" )` could solve here your
problem.
Because it seems legit for me that if the first arg is empty ( null, zero,
empty string, etc), the translation "fails".
Moreover, I see that first arg is specified like this :
> string $text Text to translate.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41257#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list