-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlanguage.py
372 lines (369 loc) · 12.9 KB
/
language.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
text_transaction = {
'user_error_message': {
'en': 'sorry, somthing went wrong!',
'fa': 'ببخشید، مشکلی وجود داشت!'
},
'start_menu': {
'en': 'Hi, welcome to DataGuardian Bot.',
'fa': 'درود، به ربات دیتاگاردین خوش آمدید!'
},
'select_section': {
'en': 'Select the section you want:',
'fa': 'بخش مورد نظر را انتخاب کنید:'
},
'select_address': {
'en': 'Select the address:',
'fa': 'آدرس مود نظر را انتخاب کنید:'
},
'add_address_conversation': {
'en': 'Please Send IP or Domain address.',
'fa': 'لطفا آدرس آیپی یا دامنه را بفرستید'
},
'there_is_no_address': {
'en': 'you have not register any address.\nAdd new address with below button',
'fa': 'شما آدرسی ثبت نکردید!\nبا گزینه زیر یک آدرس جدید ثبت کنید'
},
'there_is_no_country': {
'en': 'There is no country!',
'fa': 'کشوری وجود ندارد!'
},
'cancel_message': {
'en': 'Conversation Canceled!',
'fa': 'کانورسیشن بسته شد!'
},
'waiting_for_check_address': {
'en': 'Wait a few second ⏳\nChecking Address ...\nWaiting Time: {0} second',
'fa': 'چندثانیه صبر کنید ⏳\nدرحال بررسی آدرس ...\nزمان انتظار: {0} ثانیه'
},
'address_in_block_list': {
'en': 'You can not add this address right now\nplease Try again later',
'fa': 'درحال حاضر نمیتوانید این آدرس را اضافه کنید!\nلطفا بعدا تلاش کنید.'
},
'address_score_not_enough': {
'en': 'Address score not enough To register in BOT!\nIf you believe this is a mistake, please call support.',
'fa': 'آدرس امتیاز کافی برای ثبت شدن داخل ربات را دریافت نکرد!\nاگر فکر میکنید این یک اشتباه است، لطفا با پشتیبانی در ارتباط باشید.'
},
'address_register_successfull': {
'en': 'Address register in BOT successfull✅',
'fa': 'آدرس با موفقیت در ربات ثبت شد✅'
},
'address_is_not_unique': {
'en': 'You have already register this address and you can not register it again❌',
'fa': 'شما قبلا این آدرس را اضافه کردید و نمیتوانید دوباره این کار را انجام دهید❌'
},
'select_country': {
'en': 'Select the countries where you will be notified when the IP is restricted in that.',
'fa': 'کشورهایی را انتخاب کنید که با محدود شدن آیپی در آن ها، نوتیفیکشن دریافت کنید.'
},
'operation_successfull': {
'en': 'The operation successful✅',
'fa': 'عملیات با موفقیت انجام شد✅'
},
'operation_failed': {
'en': 'The operation failed❌',
'fa': 'عملیات شسکت خورد❌'
},
'somthing_wrong_in_address': {
'en': 'The operation not successful❌\nThere may have been a problem in address, re-register the address or contact support!',
'fa': 'عملیات موفقیت آمیز نبود!❌\nاحتمالا مشکلی در آدرس وجود دارد، آدرس را دوباره ثبت کنید یا با پشتیبانی تماس بگیرید'
},
'register_country_count': {
'en': 'Registered countries: {}/{}',
'fa': 'تعداد کشورهای ثبت شده: 1/10'
},
'subscribe_for_more_access': {
'en': 'Subscribe for more access. /subscribe',
'fa': 'برای دسترسی های بالاتر اشتراک تهیه کنید. /subscribe'
},
'access_denied_for_register_country': {
'en': 'You can not register more country!\nremove some country or /subscribe for more access',
'fa': 'شما نمیتوانید کشور بیشتری اضافه کنید!\nکشورهای قبلی را حذف کنید یا اشتراک تهیه کنید'
},
'access_denied_for_register_address': {
'en': 'You can not register more IP!\nremove some IP or /subscribe for more access',
'fa': 'شما نمیتوانید آدرس بیشتری اضافه کنید!\nآدرس های قبلی را حذف کنید یا اشتراک تهیه کنید'
},
'ping_notification_text': {
'en': '🔔 Notification: IP Address Ping Status'
'\n\nWe have detected that your IP address {} is experiencing connectivity issues in the following locations:',
'fa': '🔔 اعلان: وضعیت پینگ آدرس آیپی'
'\n\nمتوجه شدیم آدرس آیپی شما {} در لوکیشن های زیر با مشکلاتی مواجه است:'
},
'some_id_deleted': {
'en': 'The following addresses are disabled due to lower than expected ping:',
'fa': 'آدرس های زیر به دلیل پینگ کمتر از انتظار غیرفعال میشوند:'
},
'address_detail': {
'en': 'You can change address config in this section.'
'\n\nIP Address: {0}'
'\nStatus: {1}',
'fa': 'از این قسمت میتوانید پیکربندی آدرس را تغییر دهید.'
'\n\nآدرس آیپی: 1'
'\nوضعیت: 2'
},
'fullcheck_is_limited': {
'en': 'Sorry, you already Fullcheck this address {} time today!'
'\nCheck Back after {} or /subscribe',
'fa': 'ببخشید شما امروز 3 بار این آدرس را بررسی کردید!'
'\nبعد از {} دوباره بررسی کنید یا مشترک شوید. /subscribe'
},
'waitin_for_check_host': {
'en': 'Fettched successfully! waiting for checkhost ...',
'fa': 'با موفقیت واکشی شد! انتظار برای چک هاست ...'
},
}
keyboard_transaction = {
'main_menu_ip_guardian': {
'en': 'IP Guardian',
'fa': 'آیپی گاردین'
},
'main_menu_virtualizor': {
'en': 'Virtualizor Manager',
'fa': 'مدیریت Virtualizor'
},
'setting': {
'en': 'Setting ⚙️',
'fa': 'تنظیمات ⚙️'
},
'back_button': {
'en': 'Back ↰',
'fa': 'برگشت ↰'
},
'add_ip': {
'en': 'Add IP ➕',
'fa': 'اضافه کردن آیپی ➕'
},
'view_ips': {
'en': 'My IPs',
'fa': 'آیپی های من'
},
'help_button': {
'en': 'Help 📚',
'fa': 'راهنما 📚'
},
'cancel_button': {
'en': 'Cancel ✘',
'fa': 'انصراف ✘'
},
'ip_guardian_setting': {
'en': 'IpGuadian Settings',
'fa': 'تنظیمات آیپی گاردین'
},
'country_notification_config': {
'en': 'Countrys Notificaion Setting',
'fa': 'تنظیمات اعلان کشورها'
},
'disable_address': {
'en': 'Disable ⇣',
'fa': 'غیرفعال کردن ⇣'
},
'enable_address': {
'en': 'Enable ⇡',
'fa': 'فعال کردن ⇡'
},
'check_ip_my_ip': {
'en': 'Check IP ↻',
'fa': 'بررسی آیپی ↺'
},
}
countries_and_flags = {
"Afghanistan": "🇦🇫",
"Albania": "🇦🇱",
"Algeria": "🇩🇿",
"Andorra": "🇦🇩",
"Angola": "🇦🇴",
"Antigua and Barbuda": "🇦🇬",
"Argentina": "🇦🇷",
"Armenia": "🇦🇲",
"Australia": "🇦🇺",
"Austria": "🇦🇹",
"Azerbaijan": "🇦🇿",
"Bahamas": "🇧🇸",
"Bahrain": "🇧🇭",
"Bangladesh": "🇧🇩",
"Barbados": "🇧🇧",
"Belarus": "🇧🇾",
"Belgium": "🇧🇪",
"Belize": "🇧🇿",
"Benin": "🇧🇯",
"Bhutan": "🇧🇹",
"Bolivia": "🇧🇴",
"Bosnia and Herzegovina": "🇧🇦",
"Botswana": "🇧🇼",
"Brazil": "🇧🇷",
"Brunei": "🇧🇳",
"Bulgaria": "🇧🇬",
"Burkina Faso": "🇧🇫",
"Burundi": "🇧🇮",
"Cabo Verde": "🇨🇻",
"Cambodia": "🇰🇭",
"Cameroon": "🇨🇲",
"Canada": "🇨🇦",
"Central African Republic": "🇨🇫",
"Chad": "🇹🇩",
"Chile": "🇨🇱",
"China": "🇨🇳",
"Hong Kong": "🇨🇳",
"Colombia": "🇨🇴",
"Comoros": "🇰🇲",
"Congo, Democratic Republic of the": "🇨🇩",
"Congo, Republic of the": "🇨🇬",
"Costa Rica": "🇨🇷",
"Croatia": "🇭🇷",
"Cuba": "🇨🇺",
"Cyprus": "🇨🇾",
"Czechia": "🇨🇿",
"Denmark": "🇩🇰",
"Djibouti": "🇩🇯",
"Dominica": "🇩🇲",
"Dominican Republic": "🇩🇴",
"Ecuador": "🇪🇨",
"Egypt": "🇪🇬",
"El Salvador": "🇸🇻",
"Equatorial Guinea": "🇬🇶",
"Eritrea": "🇪🇷",
"Estonia": "🇪🇪",
"Eswatini": "🇸🇿",
"Ethiopia": "🇪🇹",
"Fiji": "🇫🇯",
"Finland": "🇫🇮",
"France": "🇫🇷",
"Gabon": "🇬🇦",
"Gambia": "🇬🇲",
"Georgia": "🇬🇪",
"Germany": "🇩🇪",
"Ghana": "🇬🇭",
"Greece": "🇬🇷",
"Grenada": "🇬🇩",
"Guatemala": "🇬🇹",
"Guinea": "🇬🇳",
"Guinea-Bissau": "🇬🇼",
"Guyana": "🇬🇾",
"Haiti": "🇭🇹",
"Honduras": "🇭🇳",
"Hungary": "🇭🇺",
"Iceland": "🇮🇸",
"India": "🇮🇳",
"Indonesia": "🇮🇩",
"Iran": "🇮🇷",
"Iraq": "🇮🇶",
"Ireland": "🇮🇪",
"Israel": "🇮🇱",
"Italy": "🇮🇹",
"Jamaica": "🇯🇲",
"Japan": "🇯🇵",
"Jordan": "🇯🇴",
"Kazakhstan": "🇰🇿",
"Kenya": "🇰🇪",
"Kiribati": "🇰🇮",
"Korea, North": "🇰🇵",
"Korea, South": "🇰🇷",
"Kuwait": "🇰🇼",
"Kyrgyzstan": "🇰🇬",
"Laos": "🇱🇦",
"Latvia": "🇱🇻",
"Lebanon": "🇱🇧",
"Lesotho": "🇱🇸",
"Liberia": "🇱🇷",
"Libya": "🇱🇾",
"Liechtenstein": "🇱🇮",
"Lithuania": "🇱🇹",
"Luxembourg": "🇱🇺",
"Madagascar": "🇲🇬",
"Malawi": "🇲🇼",
"Malaysia": "🇲🇾",
"Maldives": "🇲🇻",
"Mali": "🇲🇱",
"Malta": "🇲🇹",
"Marshall Islands": "🇲🇭",
"Mauritania": "🇲🇷",
"Mauritius": "🇲🇺",
"Mexico": "🇲🇽",
"Micronesia": "🇫🇲",
"Moldova": "🇲🇩",
"Monaco": "🇲🇨",
"Mongolia": "🇲🇳",
"Montenegro": "🇲🇪",
"Morocco": "🇲🇦",
"Mozambique": "🇲🇿",
"Myanmar": "🇲🇲",
"Namibia": "🇳🇦",
"Nauru": "🇳🇷",
"Nepal": "🇳🇵",
"Netherlands": "🇳🇱",
"New Zealand": "🇳🇿",
"Nicaragua": "🇳🇮",
"Niger": "🇳🇪",
"Nigeria": "🇳🇬",
"North Macedonia": "🇲🇰",
"Norway": "🇳🇴",
"Oman": "🇴🇲",
"Pakistan": "🇵🇰",
"Palau": "🇵🇼",
"Palestine": "🇵🇸",
"Panama": "🇵🇦",
"Papua New Guinea": "🇵🇬",
"Paraguay": "🇵🇾",
"Peru": "🇵🇪",
"Philippines": "🇵🇭",
"Poland": "🇵🇱",
"Portugal": "🇵🇹",
"Qatar": "🇶🇦",
"Romania": "🇷🇴",
"Russia": "🇷🇺",
"Rwanda": "🇷🇼",
"Saint Kitts and Nevis": "🇰🇳",
"Saint Lucia": "🇱🇨",
"Saint Vincent and the Grenadines": "🇻🇨",
"Samoa": "🇼🇸",
"San Marino": "🇸🇲",
"Sao Tome and Principe": "🇸🇹",
"Saudi Arabia": "🇸🇦",
"Senegal": "🇸🇳",
"Serbia": "🇷🇸",
"Seychelles": "🇸🇨",
"Sierra Leone": "🇸🇱",
"Singapore": "🇸🇬",
"Slovakia": "🇸🇰",
"Slovenia": "🇸🇮",
"Solomon Islands": "🇸🇧",
"Somalia": "🇸🇴",
"South Africa": "🇿🇦",
"South Sudan": "🇸🇸",
"Spain": "🇪🇸",
"Sri Lanka": "🇱🇰",
"Sudan": "🇸🇩",
"Suriname": "🇸🇷",
"Sweden": "🇸🇪",
"Switzerland": "🇨🇭",
"Syria": "🇸🇾",
"Taiwan": "🇹🇼",
"Tajikistan": "🇹🇯",
"Tanzania": "🇹🇿",
"Thailand": "🇹🇭",
"Timor-Leste": "🇹🇱",
"Togo": "🇹🇬",
"Tonga": "🇹🇴",
"Trinidad and Tobago": "🇹🇹",
"Tunisia": "🇹🇳",
"Turkey": "🇹🇷",
"Turkmenistan": "🇹🇲",
"Tuvalu": "🇹🇻",
"Uganda": "🇺🇬",
"Ukraine": "🇺🇦",
"UAE": "🇦🇪",
"United Arab Emirates": "🇦🇪",
"UK": "🇬🇧",
"United Kingdom": "🇬🇧",
"USA": "🇺🇸",
"United States": "🇺🇸",
"Uruguay": "🇺🇾",
"Uzbekistan": "🇺🇿",
"Vanuatu": "🇻🇺",
"Vatican City": "🇻🇦",
"Venezuela": "🇻🇪",
"Vietnam": "🇻🇳",
"Yemen": "🇾🇪",
"Zambia": "🇿🇲",
"Zimbabwe": "🇿🇼"
}