Skip to main content

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



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lang-localization-0.1.1.tar.gz (2.8 kB view hashes)

Uploaded source

Built Distribution

lang_localization-0.1.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page