mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-09-29 03:53:14 +08:00
Language file generator tweaked
Now checking if every language has defined all strings!
This commit is contained in:
parent
8ff414d408
commit
533c3e4e1a
@ -73,6 +73,7 @@ foreach ($cz as $k=>$v) {
|
|||||||
foreach ($langs as $lang) {
|
foreach ($langs as $lang) {
|
||||||
$out .= "const char MSG".strtoupper($lang)."${counter}[] PROGMEM = { ".${$lang}[$k]." }; //$k\n";
|
$out .= "const char MSG".strtoupper($lang)."${counter}[] PROGMEM = { ".${$lang}[$k]." }; //$k\n";
|
||||||
$outa[$lang].="MSG".strtoupper($lang)."$counter, //$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 MSGCZ${counter}[] PROGMEM = { $v }; //$k\n";
|
||||||
//$out .= "const char MSGEN${counter}[] PROGMEM = {".$en[$k]."}; //$k\n";
|
//$out .= "const char MSGEN${counter}[] PROGMEM = {".$en[$k]."}; //$k\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user