20,741
edits
| Line 1,395: | Line 1,395: | ||
|date = Aug 20th, 2016 | |date = Aug 20th, 2016 | ||
|added = Aug 20th, 2016 | |added = Aug 20th, 2016 | ||
|script_version = 0.40 | |||
}}</ref> | |||
you don't need much more than 20 lines of Nasal code to get a vector with files/directories from $FG_ROOT/Translations via the directory() API, and then use the io.read_properties() API to processs such files, and use the .getValues() method to obtain a corresponding hash that you can then traverse using a foreach() loop.<ref>{{cite web | |||
|url = https://forum.flightgear.org/viewtopic.php?p=292580#p292580 | |||
|title = <nowiki> Re: User language </nowiki> | |||
|author = <nowiki> Hooray </nowiki> | |||
|date = Aug 14th, 2016 | |||
|added = Aug 14th, 2016 | |||
|script_version = 0.40 | |script_version = 0.40 | ||
}}</ref> | }}</ref> | ||