mirror of
https://github.com/unraid/webgui.git
synced 2026-04-30 23:09:42 -05:00
Multi-language support
This commit is contained in:
@@ -72,8 +72,7 @@ function tab_title($name,$path,$tag) {
|
||||
foreach (explode(' ',$name) as $word) $text[] = my_lang(my_disk($word),3);
|
||||
$name = implode(' ',$text);
|
||||
} elseif (substr($name,0,9)=='Interface') {
|
||||
[$p1,$p2] = explode(' ',$name);
|
||||
$name = rtrim(_($p1).' '._($p2));
|
||||
$name = my_lang($name,3);
|
||||
} else {
|
||||
$name = _($name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user