this library allows you to create translations of projects into other languages
Project description
LangManager
this library allows you to create translations of projects into other languages
install:
installing with pypi
pip install langmanager
installing with git
git clone https://github.com/ASVIEST/LangManager.git
Simple example:
from langmanager import *
language = input('language: ')
lang(language)
trans = translate_get('hello world')
print(lan())
print(trans)
language file(en):
'hello world':'hello world';
And language file(ru):
'hello world':'привет мир';
Language standard file name - lan(ISO 639-1).txt examples: en.txt, ru.txt, zh.txt But file name can change through function filepath_en , filepath_ru and others Language can be changed during working
Improved example:
from langmanager import *
language = input('language: ')
lang(language)
trans = translate_get('hello world')
print(lan())
print(trans)
lang('ru')
filepath_ru('en.txt')
trans = translate_get('hello i')
print(trans)
'hello world':'hello world';
'hello i':'hello i';
And language file(ru):
'hello world':'привет мир';
'hello i':'привет я';
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langmanager-1.4.2.tar.gz.
File metadata
- Download URL: langmanager-1.4.2.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.7.4 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d2588200d3360050776e4dd8b197b07e962cdd864e212ef5de91ee232d331ce
|
|
| MD5 |
a2bc25d8b60e8e3cb86e865df56b77d4
|
|
| BLAKE2b-256 |
03aa34d966f5cdb1fc94afab36f781b251bbeb4ee3b9ff84b61f443a5dd58637
|
File details
Details for the file langmanager-1.4.2-py3-none-any.whl.
File metadata
- Download URL: langmanager-1.4.2-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.7.4 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
870226353cf28d3e9db3d53cc19f2fc6e95d21bbba1413af0737458614caf144
|
|
| MD5 |
6d8b2f49c8ea7454842f2b1b4745a2db
|
|
| BLAKE2b-256 |
aea098009bf4abf2f589ae2d062d325df4d22b7e09b5cacb4712aad54d31a170
|