Basic Python library for support for multiple languages
Find a file
2026-04-18 05:51:42 -05:00
gen_json.pmp it starts with two? 2026-04-16 11:54:11 -05:00
lang.json it starts with two? 2026-04-16 11:54:11 -05:00
README.md Update README.md 2026-04-16 12:12:42 -05:00
wlang.py quick stuff 2026-04-17 08:13:57 -05:00

wlang

Basic Python library for support for multiple languages

Usage

You gotta import it first, obviously.

import wlang

then you can set the language

wlang.setlang(wlang.deflang) # deflang is the variable for the system language

and finally get an object.

print(wlang.getobj('ass'))

Incase if your language file is in another directory, try

wlang.setlangfile([file here])

And if you want the default language, version and internal name, do

getinlangdef(), getlangver(), and getlangname() respectively.

What if i get a "Language file not found,"?

It's as simple as setting the language file.

What are the other variables?

langfile, lang, deflang, deflangfull, langfilecon

Making the language JSON

It's as simple as opening the included gen_json.pmp in the PenguinMod editor. (sorry gradylink) or you could do it by hand.