Multi-language support

This commit is contained in:
bergware
2020-05-18 13:45:40 +02:00
parent 8e12830273
commit ef28429833
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ function applyCfg() {
<?if (strpos(file_get_contents('/proc/cmdline'), 'pcie_acs_override=') !== false):?>
<p class="notice" style="line-height:30px;height:auto">_(Warning)_: _(Your system has booted with the PCIe ACS Override setting enabled)_. _(The below list doesn't not reflect the way IOMMU would naturally group devices)_.<br>
<?=sprintf(_("To see natural IOMMU groups for your hardware, go to the %sVM Manager%s page and set the **PCIe ACS override** setting to **Disabled**"),"<a href='/Settings/VMSettings'>","</a>")?>.</p>
<?=my_hyperlink(_("To see natural IOMMU groups for your hardware, go to the [VM Manager] page and set the **PCIe ACS override** setting to **Disabled**"),'/Settings/VMSettings')?>.</p>
<?endif;?>
<pre><form id="vfiopci" onsubmit="return false"><table id='t1' class='pre'><tr><td><div class="spinner"></div></td></tr></table></form></pre><br>
+3
View File
@@ -59,6 +59,9 @@ function my_disk($name,$raw=false) {
function my_disks($disk) {
return strpos($disk['status'],'_NP')===false;
}
function my_hyperlink($text,$link) {
return str_replace(['[',']'],["<a href=\"$link\">","</a>"],$text);
}
function prefix($key) {
return preg_replace('/\d+$/','',$key);
}