Language file generator tweaked

Now checking if every language has defined all strings!
This commit is contained in:
michalprusa 2016-03-10 19:15:30 +01:00
parent 8ff414d408
commit 533c3e4e1a

View File

@ -73,6 +73,7 @@ foreach ($cz as $k=>$v) {
foreach ($langs as $lang) {
$out .= "const char MSG".strtoupper($lang)."${counter}[] PROGMEM = { ".${$lang}[$k]." }; //$k\n";
$outa[$lang].="MSG".strtoupper($lang)."$counter, //$k\n";
if (${$lang}[$k] == "") echo "ERR: In language: ".strtoupper($lang)." string \"".$k."\" NOT FOUND !\n";
}
//$out .= "const char MSGCZ${counter}[] PROGMEM = { $v }; //$k\n";
//$out .= "const char MSGEN${counter}[] PROGMEM = {".$en[$k]."}; //$k\n";