usage
This commit is contained in:
parent
b6993e430a
commit
9c738f7414
1 changed files with 30 additions and 1 deletions
31
README.md
31
README.md
|
|
@ -1,3 +1,32 @@
|
|||
# wlang
|
||||
|
||||
Basic Python library for support with multiple languages
|
||||
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```
|
||||
Loading…
Add table
Add a link
Reference in a new issue