HTML_TAG_KEEP
HTML_TAG_KEEP ='keep-me'
Wrap the complete string within a HTML tag so our plugin can extract it correctly and handles it as HTML.
There are plugins like TranslatePress, which does use a completely different way of implementing multilingual content to WordPress sites.
wrapArrayToHtml(array<mixed,string> $content)
Wrap a complete array to valid HTML format so output buffer plugins can translate the HTML instead of JSON. This can be useful if the plugin does not support it well enough or JSON walker slows down the page extremely.
array<mixed,string> | $content |
remapResultToReference(array<mixed,string> $content,array<mixed,string> $result,string $locale,array<mixed,string> $context = null)
Remap the result to the referenced value `$content` for `translateString` method.
array<mixed,string> | $content | |
array<mixed,string> | $result | |
string | $locale | |
array<mixed,string> | $context |