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
langmanager-1.3.3.tar.gz
(15.3 kB
view hashes)
Built Distribution
Close
Hashes for langmanager-1.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 383148b47fb6b0abc76eb80000bf1d23ff5580d12a1c9c4f428ac028b6e1d8ba |
|
MD5 | d20176558b3fe3ec1b3d1cf9e6fe2389 |
|
BLAKE2b-256 | bab81cba70f72f23d3ad324d21439d48ce47dea3759a9babd08242b0d9f7db00 |