4
1
Fork 1

Add English translation

This commit is contained in:
trueold89 2023-11-01 02:07:35 +03:00
parent fd39f0c48d
commit 50fa098102
Signed by: trueold89
GPG Key ID: C122E85DD49E6B30
1 changed files with 22 additions and 5 deletions

View File

@ -3,7 +3,7 @@
import os
langs = ['RU']
langs = ['RU','ENG']
# Russian
RU = {
@ -28,10 +28,27 @@ RU = {
}
# English
ENG = {}
ENG = {
'alauth': 'You are already authorized',
'sucauth': 'You have successfully logged in',
'wrauth': 'Wrong password',
'pne': "The '{}' directory does not exist on the server",
'fsa': "The '{}' folder has been successfully added",
'frm': "The '{}' folder has been successfully deleted",
'fne': "The '{}' folder does not exist",
'add': 'Torrent has been added to the queue',
'type': 'Select the download type:',
'magnet': 'Magnet',
'file': 'File',
'aerr': 'Wrong arguments',
'cff': 'No folders found, use the /add command',
'chf': 'Select folder:',
'ntorr': 'Incorrect file extension',
'sendm': 'Send Magnet link',
'sendf': 'Send .torrent file',
'adeny': "You do not have access, first authorize '/login <password>'"
}
for i in langs:
if i == os.environ['LANG']:
if i == os.environ.get('LANG','RU'):
LANG = globals()[i]
else:
LANG = RU