NOOP_Translations::translate() WordPress Method
The NOOP_Translations::translate() WordPress method is used to translate a string into the current language. The string can be a word or phrase. If the string is not found in the current language, it will be translated into the default language.
NOOP_Translations::translate( string $singular, string $context = null ) #
Contents
Parameters
- $singular
(string)(Required)
- $context
(string)(Optional)
Default value: null
Source
File: wp-includes/pomo/translations.php
public function translate( $singular, $context = null ) { return $singular; }
Expand full source codeCollapse full source codeView on TracView on GitHub