view->getHelper('translate')->getTranslator(); $availables = $translator->getList(); $current = $translator->getLocale(); $requestUri = $this->view->UriPath(); $links = array(); foreach ($availables as $lang) { $langname = $translator->translate('english', $lang); if ($lang == $current) { array_push ($links, "$langname"); } else { $href = $this->view->addParamToUrl($requestUri, 'lang', $lang, true); array_push ($links, $this->view->anchor($href, $langname, array('class' => 'other-language-anchor', 'title' => $langname, 'lang' => $lang, 'hreflang' => $lang))); } } return "