Skip to content
Snippets Groups Projects
Commit e610e700 authored by Demian Katz's avatar Demian Katz
Browse files

Simplified translation.

parent 3163c076
No related merge requests found
......@@ -1325,9 +1325,7 @@ class Params implements ServiceLocatorAwareInterface
*/
public function translate($msg)
{
return $this->getServiceLocator()->has('VuFind\Translator')
? $this->getServiceLocator()->get('VuFind\Translator')->translate($msg)
: $msg;
return $this->getOptions()->translate($msg);
}
/**
......
......@@ -590,8 +590,6 @@ abstract class Results implements ServiceLocatorAwareInterface
*/
public function translate($msg)
{
return $this->getServiceLocator()->has('VuFind\Translator')
? $this->getServiceLocator()->get('VuFind\Translator')->translate($msg)
: $msg;
return $this->getOptions()->translate($msg);
}
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment