Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

A simple API for translating your programs

Project description


With jdTranslationHelper you can translate your programs. The translation files are .lang files which has ths format:

key=Hello World
test=This is a test

The files are in a folder named after the language code e.g. en_GB.lang

Here is a example how to use this API:

from jdTranslationHelper import jdTranslationHelper

translations = jdTranslationHelper()

If we place the above en_GB.lang file in /home/User/translations, it will print This is a test. You can create files for any language.

You can also call jdTranslationHelper with arguemnts:
lang=The language which should be loaded. If not specified, it will use the system language.
defaultLanguage=The language that will be usesd, if there is no file with the system language. Default is en_GB.

translate takes this argument:
default: That will be returned, if the given key doesn't exists.

You can get alls Strings with getStrings().

Download files

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

Files for jdTranslationHelper, version 2.1
Filename, size File type Python version Upload date Hashes
Filename, size jdTranslationHelper-2.1-py3-none-any.whl (3.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size jdTranslationHelper-2.1.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page