Multi-language support

This commit is contained in:
bergware
2020-06-09 18:11:11 +02:00
parent 284a702dca
commit 741d9b96ac
+1 -1
View File
@@ -94,7 +94,7 @@ function my_id($id) {
}
function my_word($num) {
$words = ['zero','one','two','three','four','five','six','seven','eight','nine','ten','eleven','twelve','thirteen','fourteen','fifteen','sixteen','seventeen','eighteen','nineteen','twenty','twenty-one','twenty-two','twenty-three','twenty-four','twenty-five','twenty-six','twenty-seven','twenty-eight','twenty-nine','thirty'];
return $num<count($words) ? $words[$num] : $num;
return $num<count($words) ? _($words[$num],1) : $num;
}
function my_usage() {
global $disks,$var,$display;