Description
string _p(string $phrase [, array $replacements] )
Wrap your phrases in the _p() function and it will automatically add it to the clients database in case they wish to translate into other languages.
Parameters
$phrase
English phrase.
$replacements
Pass an associative array to add dynamic phrases.
Examples
/** * Prints the phrase "Hello World!" and tries to find * a translation in the database if it exists. */ echo _p('Hello World!'); /** * Pass an associative array to add dynamic phrases. */ echo _p('My name is {{ name }}', ['name' => 'Bob']);