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

Added comment.

parent 55f98d93
No related merge requests found
...@@ -53,6 +53,8 @@ class DisplayLanguageOption extends AbstractServiceLocator ...@@ -53,6 +53,8 @@ class DisplayLanguageOption extends AbstractServiceLocator
public function getTranslator() public function getTranslator()
{ {
if (null === $this->translator) { if (null === $this->translator) {
// Clone the translator; we need to switch language for the purposes
// of this plugin, but we don't want that change to happen globally.
$this->translator = clone($this->getServiceLocator()->get('Translator')); $this->translator = clone($this->getServiceLocator()->get('Translator'));
$this->translator->addTranslationFile( $this->translator->addTranslationFile(
'ExtendedIni', 'ExtendedIni',
......
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