Class used to handle translation errors.
since | 4.0.0 |
---|---|
package | GlotPress |
add(string $id, callable $callback)
since | 4.0.0 |
---|---|
access | public |
string
Unique ID of the callback.
callable
The callback.
check(\GP_Original $gp_original, array<mixed,string> $translations, \GP_Locale $locale) : array | null
since | 4.0.0 |
---|---|
access | public |
\GP_Original
The original object.
array<mixed,string>
The translations.
\GP_Locale
The locale.
array
null
Null if no issues have been found, otherwise an array
with errors.has(string $id) : boolean
since | 4.0.0 |
---|---|
access | public |
string
Unique ID of the callback.
boolean
True if exists, false if not.remove(string $id)
since | 4.0.0 |
---|---|
access | public |
string
Unique ID of the callback.
$callbacks : array<mixed,callable>
array()
since | 4.0.0 |
---|---|
access | public |