public function TMGMTDefaultTranslatorPluginController::getNotAvailableReason in Translation Management Tool 7
Return a reason why the translator is not available.
@todo Remove this once http://drupal.org/node/1420364 is done.
Parameters
TMGMTTranslator $translator: The translator entity.
Might be called when isAvailable() returns FALSE to get a reason that can be displayed to the user.
Overrides TMGMTTranslatorPluginControllerInterface::getNotAvailableReason
File
- plugin/
tmgmt.plugin.translator.inc, line 173 - Contains the abstract translator base plugin class.
Class
- TMGMTDefaultTranslatorPluginController
- Default controller class for service plugins.
Code
public function getNotAvailableReason(TMGMTTranslator $translator) {
return t('@translator is not available. Make sure it is properly !configured.', array(
'@translator' => $this->pluginInfo['label'],
'!configured' => l(t('configured'), 'admin/config/regional/tmgmt_translator/manage/' . $translator->name),
));
}