Multi-language support

This commit is contained in:
bergware
2020-04-05 11:44:23 +02:00
parent 9b2a6f845e
commit 71cb083ddc
+1 -1
View File
@@ -52,7 +52,7 @@ function my_lang($text,$do=0) {
foreach ($keys as $key) if (isset($language[$key])) $text = preg_replace("/\b$key\b/",$language[$key],$text);
break;
case 3: // device translation
[$p1,$p2] = preg_split('/(?<=[a-z])(?= ?[0-9]+)/',$text);
[$p1,$p2] = preg_split('/(?<=[a-z])(?= ?[0-9]+)/i',$text);
$text = _($p1).$p2;
}
return $text;