INNER CODE UNIT · Python

get_translations_from_pofile

multitheftauto/mtasa-blue · utils/localization/build_locale_nsi.py:130

def get_translations_from_pofile(po: polib.pofile) -> t.List[TranslatedLangString]:
    translations = [
        TranslatedLangString(
            nsi_label=entry.comment,
            msgstr=escape_nsis(entry.msgstr)
        )
        for entry in po.translated_entries()
    ]
    translations += [
        TranslatedLangString(
            nsi_label=entry.comment,
            msgstr=escape_nsis(entry.msgid)
        )
        for entry in po.untranslated_entries()
    ]
    return translations

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…