From d97d42ec994e3eef01aae0bd41d6854ea77cd288 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 19 Oct 2012 09:29:00 -0400 Subject: [PATCH] Added comment. --- .../src/VuFind/Theme/Root/Helper/DisplayLanguageOption.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/VuFind/src/VuFind/Theme/Root/Helper/DisplayLanguageOption.php b/module/VuFind/src/VuFind/Theme/Root/Helper/DisplayLanguageOption.php index 639da8a7563..8ec2bd2e14b 100644 --- a/module/VuFind/src/VuFind/Theme/Root/Helper/DisplayLanguageOption.php +++ b/module/VuFind/src/VuFind/Theme/Root/Helper/DisplayLanguageOption.php @@ -53,6 +53,8 @@ class DisplayLanguageOption extends AbstractServiceLocator public function getTranslator() { 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->addTranslationFile( 'ExtendedIni', -- GitLab