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
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';
'hello i':'hello i';
And language file(ru):
'hello world':'привет мир';
'hello i':'привет я';
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
change filepath 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.2.tar.gz
(15.0 kB
view hashes)
Built Distribution
Close
Hashes for langmanager-1.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 057f67a3401dd350e9335d8b3959b6cc062b09dd350ade69a9661697dc6dc5fb |
|
MD5 | 919e35d6fc3d59cbcea9f170754c6b90 |
|
BLAKE2b-256 | 6f7cc510b9967da7f76e1234f9376ee8e08858ec0881a2e9754058d929eeb54a |