Class used to handle translation errors.
| since | 4.0.0 |
|---|---|
| package | GlotPress |
add_all(\GP_Translation_Errors $translation_errors)
| since | 4.0.0 |
|---|---|
| access | public |
\GP_Translation_ErrorsInstance of GP_Translation_Errors.
error_unexpected_sprintf_token(string $original, string $translation) : boolean | string
This is to catch translations for originals like this:
<a href="%s">100 percent</a><a href="%s">100%</a><a href="%s">100%%</a>| since | 4.0.0 |
|---|---|
| access | public |
stringThe original string.
stringThe translated string.
booleanstring