Translate your program
Project description
#lang-localization With lang-localization you can translate your program to different languages. It is not possible translating your program easier.
How to use
Start by creating a folder named "localization" in the directory where your python file is located. For every language you want to add you need to create a file with the .loc ending in the new directory. For example "de.loc" or "en.loc". The inside of the file must look like this:
hw = Hello World!
button1 = Press Me
Your python file must look like this:
import localization
localization.setLang("de") # The string must be the same as the filename of your translation without .loc
print(localization.get("hw"))
randomButtonCreateFunction(text=localization.get("button1"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for lang_localization-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bb6860bf4e9ee18462d5f68df29c9572f8fcc5f3100b32b19d3a872fe047790 |
|
MD5 | c2ca9c5b474c4d9510c319fe1a80c993 |
|
BLAKE2b-256 | fb7abcf07c8bbff27d31c786aeb6726019f6d94a4481097d938675ce18eadd87 |