gradle-josm-plugin / org.openstreetmap.josm.gradle.plugin.i18n.io / LangWriter / writeLangFile

writeLangFile

fun writeLangFile(langFileDir: File, languageMaps: Map<String, Map<MsgId, MsgStr>>, originLang: String = "en"): Unit

Takes translation definitions in the form of MsgIds and MsgStrs for multiple languages. These are then written to a directory in the *.lang file format.

Parameters

langFileDir - the directory into which the *.lang files should be written

languageMaps - a map with language codes as keys and maps as values. These maps associates each MsgId a MsgStr, which is the translation of the MsgId.

originLang - the language code of the language in which the strings were written in the source code.

Exceptions

IOException - if writing the file is not successful