You appear to be a bot. Output may be restricted
Description
Appends some non-translatable text to translated textThis is similar to using sprintf( __( "translatable_text %1$s", $non_translatable_text ) ); BUT it doesn't require the translator to have to worry about the position of the variable AS this isn't in the text they translate. Note: The non-translatable text is expected to begin with a space character. It is also possible to append two translated strings.
Usage
$string = BW_::bwtnt( $translated_text, $non_translatable_text );
Parameters
- $translated_text
- ( string ) required – text that's been translated
- $non_translatable_text
- ( string ) required – text that's not translated
Returns
string concatenated stringsSource
File name: oik-bwtrace/libs/class-BW-.phpLines:
1 to 5 of 5
static function bwtnt( $translated_text, $non_translatable_text ) { $tnt = $translated_text; $tnt .= $non_translatable_text; return( $tnt ); }View on GitHub View on Trac