mirror of
https://github.com/unraid/webgui.git
synced 2026-03-12 22:09:53 -05:00
Multi-language support
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Title="Add {$_GET['template']} VM"
|
||||
Title="Add VM"
|
||||
Tag="clipboard"
|
||||
Cond="(pgrep('libvirtd')!==false)"
|
||||
Markdown="false"
|
||||
|
||||
@@ -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