alt drapeaux traduits

This commit is contained in:
Fred Tempez 2021-11-16 12:11:56 +01:00
parent 8d40bf9f10
commit ec252292cc
1 changed files with 2 additions and 1 deletions

View File

@ -2060,6 +2060,7 @@ class common {
*/
public function showi18n() {
foreach (self::$i18nList as $key => $value) {
if ($this->getData(['config', 'i18n', $key]) === 'site'
OR (
$this->getData(['config', 'i18n','scriptGoogle']) === true
@ -2080,7 +2081,7 @@ class common {
}
echo '<li>';
echo '<a href="' . helper::baseUrl() . 'translate/language/' . $key . '/' . $this->getData(['config', 'i18n',$key]) . '/' . $this->getUrl(0) . '"><img ' . $select . ' class="flag" src="' . helper::baseUrl(false) . 'core/vendor/i18n/png/' . $key . '.png" alt=' . $key . '/></a>';
echo '<a href="' . helper::baseUrl() . 'translate/language/' . $key . '/' . $this->getData(['config', 'i18n',$key]) . '/' . $this->getUrl(0) . '"><img ' . $select . ' class="flag" alt="' . $value . '" src="' . helper::baseUrl(false) . 'core/vendor/i18n/png/' . $key . '.png"/></a>';
echo '</li>';
}
}