If locale is not set then the current locale of the document is
reloaded, resetting possible changes.
If the document is not translatable, this method returns immediately
and without error.
public doLoadTranslation ( object $document, |
||
$document | object | |
$metadata | ||
$locale | string | The locale to use or null if the default locale should be used |
$fallback | boolean | Whether to do try other languages |
$refresh | boolean |