Enabled ukrainian language

This commit is contained in:
pezcurrel 2022-11-23 17:48:44 +01:00
parent 200ba0e489
commit 01524e3ae2

View file

@ -29,7 +29,7 @@ if (strlen($path)>0) {
}
}
$supplangs=['ca','en','es','fr','gl','it'];// quando si aggiunge una lingua qui sopra, poi bisogna aggiungerla anche in $menu in questo stesso file, in $hlmap in stats.php e in $hitslang (e magari anche $langs) in ../clitools/mustool.php
$supplangs=['ca','en','es','fr','gl','it','uk'];// quando si aggiunge una lingua qui sopra, poi bisogna aggiungerla anche in $menu in questo stesso file, in $hlmap in stats.php e in $hitslang (e magari anche $langs) in ../clitools/mustool.php
if (preg_match('#/('.implode('|',$supplangs).')$#',$path,$lang)===1) {
$dlang=$lang[1];
$path=substr($path,0,-3);
@ -69,7 +69,8 @@ $menu=array(
'es'=>array('liadd'=>null, 'href'=>null, 'title'=>'Español', 'selected'=>false, 'submenu'=>null),
'fr'=>array('liadd'=>null, 'href'=>null, 'title'=>'Français', 'selected'=>false, 'submenu'=>null),
'gl'=>array('liadd'=>null, 'href'=>null, 'title'=>'Galego', 'selected'=>false, 'submenu'=>null),
'it'=>array('liadd'=>null, 'href'=>null, 'title'=>'Italiano', 'selected'=>false, 'submenu'=>null)
'it'=>array('liadd'=>null, 'href'=>null, 'title'=>'Italiano', 'selected'=>false, 'submenu'=>null),
'uk'=>array('liadd'=>null, 'href'=>null, 'title'=>'Українська', 'selected'=>false, 'submenu'=>null)
)
)
);