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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jdTranslationHelper-3.3.tar.gz | 3.7 kB | Without provenance | Details for jdTranslationHelper-3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jdTranslationHelper-3.3-py3-none-any.whl | Python 3 | none | any | Details for jdTranslationHelper-3.3-py3-none-any.whl |
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
|
Security for jdTranslationHelper 3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.