From 9c738f741445ca24de59aa88fb27a1eed095461b Mon Sep 17 00:00:00 2001 From: win7he Date: Thu, 16 Apr 2026 12:06:11 -0500 Subject: [PATCH] usage --- README.md | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index db448e7..c7dc491 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,32 @@ # wlang -Basic Python library for support with multiple languages \ No newline at end of file +Basic Python library for support with 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``` \ No newline at end of file