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

print(localization.get("hw"))

randomButtonCreateFunction(text=localization.get("button1"))

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file lang-localization-0.1.1.tar.gz.

File metadata

  • Download URL: lang-localization-0.1.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for lang-localization-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d70e00776ae54db5fd24c1966ef9fbcbf9f1d491d2b47b8c3cb11ca943cd5db3
MD5 dc10bed8fd2fe2f1c5e6a3d27b5249a2
BLAKE2b-256 b2102a78f4ef724493e5598944c18259d65b5c9b60988715540169a15ef1a0c3

See more details on using hashes here.

File details

Details for the file lang_localization-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lang_localization-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for lang_localization-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6bb6860bf4e9ee18462d5f68df29c9572f8fcc5f3100b32b19d3a872fe047790
MD5 c2ca9c5b474c4d9510c319fe1a80c993
BLAKE2b-256 fb7abcf07c8bbff27d31c786aeb6726019f6d94a4481097d938675ce18eadd87

See more details on using hashes here.

Supported by

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