class LangReader
A reader class for reading the custom *.lang file format of JOSM.
LangReader()
A reader class for reading the custom *.lang file format of JOSM. |
fun readBaseLangStream(stream: InputStream): List<MsgId>
Reads the strings of the base language from the input stream. |
|
fun readLangFiles(langFileDir: File, baseLang: String): Map<String, Map<MsgId, MsgStr>>
Reads all *.lang files in a directory into a map from the name of each language to a map that associates the string in the base language with the string translated to the current language. |
|
fun readLangStreams(baseLang: String, baseStream: InputStream, langStreams: Map<String, InputStream>): Map<String, Map<MsgId, MsgStr>>
Read translations from *.lang files available as InputStreams |