Skip to main content

jdTranslationHelper

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()
translations.loadDirectory("/home/User/translations")
print(translatios.translate("test"))

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().

Metadata

Release files for jdTranslationHelper 3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jdTranslationHelper 3.3
File Size Uploaded
jdTranslationHelper-3.3.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jdTranslationHelper 3.3
File Interpreter ABI Platform
jdTranslationHelper-3.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / jdTranslationHelper-3.3.tar.gz

Download URL jdTranslationHelper-3.3.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
adff391644eba41677dbbae06c42acc2bbe5c1cb7ca3d7e9764be7328ede346e
BLAKE2b-256 checksum
How to use checksums
639ea5693f918b194f1f1969ec40ae274c4a5c5a0323b5758f80cc880bd8a561
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / jdTranslationHelper-3.3-py3-none-any.whl

Download URL jdTranslationHelper-3.3-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e452c65cc31f461477492abc4aa68a86d208b7107c339de896359933c1ed46de
BLAKE2b-256 checksum
How to use checksums
8241540b221376f7e82b02273f8ffd778c789f7583db178ecea1fad9ba6bcda9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

3.3 This release

2 release files

3.2

2 release files

3.1

2 release files

3.0

2 release files

2.1

2 release files

2.0

2 release files

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page