Queer European MD passionate about IT

messages.py 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. """Default messages for bot functions."""
  2. language_messages = {
  3. 'language_command': {
  4. 'name': {
  5. 'en': "/language",
  6. 'it': "/lingua"
  7. },
  8. 'reply_keyboard_button': {
  9. 'en': "Language 🗣",
  10. 'it': "Lingua 🗣"
  11. },
  12. 'alias': {
  13. 'en': "Language 🗣",
  14. 'it': "Lingua 🗣"
  15. },
  16. 'description': {
  17. 'en': "Change language settings",
  18. 'it': "Cambia le impostazioni della lingua"
  19. }
  20. },
  21. 'language_button': {
  22. 'description': {
  23. 'en': "Change language settings",
  24. 'it': "Cambia le impostazioni della lingua"
  25. },
  26. 'language_set': {
  27. 'en': "Selected language: English 🇬🇧",
  28. 'it': "Lingua selezionata: Italiano 🇮🇹"
  29. }
  30. },
  31. 'language_panel': {
  32. 'text': {
  33. 'en': "<b>Choose a language</b>",
  34. 'it': "<b>Seleziona una lingua</b>"
  35. }
  36. }
  37. }
  38. supported_languages = {
  39. 'en': {
  40. 'flag': '🇬🇧',
  41. 'name': 'English'
  42. },
  43. 'it': {
  44. 'flag': '🇮🇹',
  45. 'name': 'Italiano'
  46. }
  47. }
  48. default_ciclopi_messages = {
  49. 'help': {
  50. "name": "ciclopi",
  51. "label": {
  52. 'en': "CicloPi 🚲",
  53. 'it': "CicloPi 🚲",
  54. },
  55. "authorization_level": "everybody",
  56. "description": {
  57. 'en': "Use /ciclopi command to know how many available bikes and "
  58. "free stalls are available in each station.",
  59. 'it': "Per vedere quante bici disponibili e quanti posti liberi "
  60. "ci sono in ogni stazione CicloPi usa il comando /ciclopi.",
  61. },
  62. },
  63. 'command': {
  64. 'description': {
  65. 'en': "CiloPi stations status",
  66. 'it': "Stato delle stazioni CicloPi",
  67. },
  68. 'reply_keyboard_button': {
  69. 'en': "CicloPi 🚲",
  70. 'it': "CicloPi 🚲",
  71. },
  72. 'updating': {
  73. 'en': "Updating",
  74. 'it': "Aggiornamento in corso",
  75. },
  76. 'unavailable_website': {
  77. 'en': "CicloPi's website cannot be reached at the moment.\n"
  78. "Please retry later :/",
  79. 'it': "Il sito del CicloPi è momentaneamente irraggiungibile.\n"
  80. "Riprova tra un po' :/",
  81. },
  82. 'no_station_available': {
  83. 'en': "No station available",
  84. 'it': "Nessuna stazione",
  85. },
  86. 'title': {
  87. 'en': "CicloPi stations",
  88. 'it': "Stazioni CicloPi",
  89. },
  90. 'buttons': {
  91. 'all': {
  92. 'en': "All",
  93. 'it': "Tutte",
  94. },
  95. 'only_fav': {
  96. 'en': "Favourites only",
  97. 'it': "Solo preferite",
  98. },
  99. 'first_n': {
  100. 'en': "First {n}",
  101. 'it': "Prime {n}",
  102. },
  103. 'update': {
  104. 'en': "🔄 Update",
  105. 'it': "🔄 Aggiorna",
  106. },
  107. 'legend': {
  108. 'en': "📜 Legend",
  109. 'it': "📜 Legenda",
  110. },
  111. 'settings': {
  112. 'en': "⚙️ Settings",
  113. 'it': "⚙️ Impostazioni",
  114. },
  115. }
  116. },
  117. 'settings': {
  118. 'sort': {
  119. 'name': {
  120. 'en': "Order",
  121. 'it': "Ordina"
  122. },
  123. 'description': {
  124. 'en': "customize CicloPi stations display order.",
  125. 'it': "scegli in che ordine visualizzare le stazioni CicloPi."
  126. },
  127. 'symbol': {
  128. 'en': "⏬",
  129. 'it': "⏬"
  130. }
  131. },
  132. 'limit': {
  133. 'name': {
  134. 'en': "Number of stations",
  135. 'it': "Numero di stazioni"
  136. },
  137. 'description': {
  138. 'en': "choose how many stations you want to view.",
  139. 'it': "scegli quante stazioni visualizzare."
  140. },
  141. 'symbol': {
  142. 'en': "#️⃣",
  143. 'it': "#️⃣"
  144. }
  145. },
  146. 'fav': {
  147. 'name': {
  148. 'en': "Favourite stations",
  149. 'it': "Stazioni preferite"
  150. },
  151. 'description': {
  152. 'en': "edit favourite stations.",
  153. 'it': "cambia le tue stazioni preferite."
  154. },
  155. 'symbol': {
  156. 'en': "⭐️",
  157. 'it': "⭐️"
  158. }
  159. },
  160. 'setpos': {
  161. 'name': {
  162. 'en': "Set location",
  163. 'it': "Cambia posizione",
  164. },
  165. 'description': {
  166. 'en': "set a location from which stations may be sorted by "
  167. "distance.",
  168. 'it': "imposta una posizione da cui ordinare le stazioni per "
  169. "distanza."
  170. },
  171. 'symbol': {
  172. 'en': "🧭",
  173. 'it': "🧭"
  174. }
  175. }
  176. },
  177. 'sorting': {
  178. 'center': {
  179. 'name': {
  180. 'en': "City center",
  181. 'it': "Borgo"
  182. },
  183. 'description': {
  184. 'en': "sorted by distance from city center (Borgo Stretto "
  185. " station.)",
  186. 'it': "in ordine di distanza crescente da Borgo Stretto."
  187. },
  188. 'short_description': {
  189. 'en': "by distance from city center",
  190. 'it': "per distanza da Borgo Stretto"
  191. }
  192. },
  193. 'alphabetical': {
  194. 'name': {
  195. 'en': "Alphabetical",
  196. 'it': "Alfabetico"
  197. },
  198. 'description': {
  199. 'en': "in alphabetical order.",
  200. 'it': "in ordine alfabetico."
  201. },
  202. 'short_description': {
  203. 'en': "by name",
  204. 'it': "per nome"
  205. }
  206. },
  207. 'position': {
  208. 'name': {
  209. 'en': "Position",
  210. 'it': "Posizione"
  211. },
  212. 'description': {
  213. 'en': "sorted by distance from last set position. "
  214. "City center position is set by default.",
  215. 'it': "in ordine di distanza crescente dall'ultima posizione "
  216. "inviata. Di default sarà Borgo Stretto."
  217. },
  218. 'short_description': {
  219. 'en': "by distance",
  220. 'it': "per distanza"
  221. }
  222. },
  223. 'custom': {
  224. 'name': {
  225. 'en': "Favourites",
  226. 'it': "Preferite"
  227. },
  228. 'description': {
  229. 'en': "sorted by custom order.",
  230. 'it': "nell'ordine che hai scelto."
  231. },
  232. 'short_description': {
  233. 'en': "customly ordered",
  234. 'it': "in ordine personalizzato"
  235. },
  236. }
  237. },
  238. 'filters': {
  239. 'fav': {
  240. 'name': {
  241. 'en': "Only favourite stations",
  242. 'it': "Solo le preferite"
  243. },
  244. 'all': {
  245. 'en': "favourite stations first",
  246. 'it': "prima le preferite"
  247. },
  248. 'only': {
  249. 'en': "only favourite stations",
  250. 'it': "solo le preferite"
  251. }
  252. },
  253. 'num': {
  254. 'en': "first {n}",
  255. 'it': "prime {n}"
  256. },
  257. 'all': {
  258. 'name': {
  259. 'en': "All stations",
  260. 'it': "Tutte"
  261. },
  262. },
  263. '3': {
  264. 'name': {
  265. 'en': "3",
  266. 'it': "3"
  267. },
  268. },
  269. '5': {
  270. 'name': {
  271. 'en': "5",
  272. 'it': "5"
  273. },
  274. },
  275. '10': {
  276. 'name': {
  277. 'en': "10",
  278. 'it': "10"
  279. },
  280. }
  281. },
  282. 'status': {
  283. 'not_available': {
  284. 'en': "Not available",
  285. 'it': "Non disponibile"
  286. }
  287. },
  288. 'set_position': {
  289. 'success': {
  290. 'en': "Position set!\n"
  291. "From now on, stations will be sorted by distance from "
  292. "this position.",
  293. 'it': "Ho salvato questa posizione!\n"
  294. "D'ora in poi ordinerò le stazioni dalla più vicina alla "
  295. "più lontana da qui."
  296. },
  297. 'cancel': {
  298. 'en': "Operation cancelled.",
  299. 'it': "Operazione annullata."
  300. },
  301. 'cancel_and_remind': {
  302. 'en': "I could not understand your position.\n"
  303. "Try again with /ciclopi > Settings > Set location",
  304. 'it': "Non ho capito la tua posizione.\n"
  305. "Per riprovare fai "
  306. "/ciclopi > Impostazioni > Cambia posizione"
  307. }
  308. },
  309. 'button': {
  310. 'title': {
  311. 'en': "CicloPi Settings",
  312. 'it': "Impostazioni CicloPi"
  313. },
  314. 'back_to_settings': {
  315. 'en': "Back to settings",
  316. 'it': "Torna alle impostazioni"
  317. },
  318. 'back_to_stations': {
  319. 'en': "Back to stations",
  320. 'it': "Torna alle stazioni"
  321. },
  322. 'legend': {
  323. 'name': {
  324. 'en': "Station name",
  325. 'it': "Nome della stazione",
  326. },
  327. 'distance': {
  328. 'en': "Distance in meters",
  329. 'it': "Distanza in m",
  330. },
  331. 'description': {
  332. 'en': "Station address",
  333. 'it': "Indirizzo della stazione",
  334. },
  335. 'bikes': {
  336. 'en': "Available bikes",
  337. 'it': "Bici disponibili",
  338. },
  339. 'free': {
  340. 'en': "Free parking stalls",
  341. 'it': "Posti liberi",
  342. }
  343. },
  344. 'no_change': {
  345. 'en': "No change detected!",
  346. 'it': "È già così!",
  347. },
  348. 'unknown_option': {
  349. 'en': "Unknown option!",
  350. 'it': "Opzione sconosciuta!",
  351. },
  352. 'done': {
  353. 'en': "Done!",
  354. 'it': "Fatto!",
  355. },
  356. 'sorting_header': {
  357. 'en': "📜 CicloPi stations display order 🚲\n\n"
  358. "{{options}}\n\n"
  359. "Choose a mode or go back to stations list using the "
  360. "buttons.",
  361. 'it': "📜 Ordine di visualizzazione delle stazioni CicloPi 🚲\n\n"
  362. "{{options}}\n\n"
  363. "Scegli una nuova modalità o torna all'elenco delle "
  364. "stazioni usando i bottoni."
  365. },
  366. 'limit_header': {
  367. 'en': "📜 Number of CicloPi stations to show 🚲\n\n"
  368. "{{options}}\n\n"
  369. "Choose a mode or go back to stations list using the "
  370. "buttons.",
  371. 'it': "📜 Numero di stazioni CicloPi da mostrare 🚲\n\n"
  372. "{{options}}\n\n"
  373. "Scegli una nuova modalità o torna all'elenco delle "
  374. "stazioni usando i bottoni."
  375. },
  376. 'favourites': {
  377. 'popup': {
  378. 'en': "Touch a station to add or remove it",
  379. 'it': "Tocca una stazione per aggiungerla o rimuoverla",
  380. },
  381. 'header': {
  382. 'en': "🚲 <b>Favourite stations</b> ⭐️\n"
  383. "{options}\n\n"
  384. "Add or remove your favourite stations.",
  385. 'it': "🚲 <b>Stazioni preferite</b> ⭐️\n"
  386. "{options}\n\n"
  387. "Aggiungi o togli le tue stazioni preferite."
  388. },
  389. 'sort': {
  390. 'buttons': {
  391. 'change_order': {
  392. 'en': "🔃 Change order",
  393. 'it': "🔃 Riordina",
  394. },
  395. 'edit': {
  396. 'en': "✏️ Edit favourite stations ⭐️",
  397. 'it': "✏️ Modifica stazioni preferite ⭐️",
  398. },
  399. 'move_down': {
  400. 'en': "Move down ⬇️",
  401. 'it': "Sposta in basso ⬇️",
  402. },
  403. 'move_up': {
  404. 'en': "Move up ⬆️",
  405. 'it': "Sposta in alto ⬆️",
  406. },
  407. },
  408. 'end': {
  409. 'en': "End of the line reached!",
  410. 'it': "Capolinea!",
  411. },
  412. 'header': {
  413. 'en': "🚲 <b>Favourite stations</b> ⭐️\n"
  414. "{options}\n\n"
  415. "Add, remove or sort your favourite stations.",
  416. 'it': "🚲 <b>Stazioni preferite</b> ⭐️\n"
  417. "{options}\n\n"
  418. "Aggiungi, togli o riordina le tue stazioni "
  419. "preferite.",
  420. },
  421. },
  422. },
  423. 'location': {
  424. 'popup': {
  425. 'en': "Send a location!",
  426. 'it': "Inviami una posizione!",
  427. },
  428. 'instructions': {
  429. 'en': "Send a location.\n"
  430. "Use the button to send your current location.",
  431. 'it': "Inviami una posizione.\n"
  432. "Per inviare la tua posizione attuale, usa il "
  433. "pulsante.",
  434. },
  435. 'send_current_location': {
  436. 'en': "Send current location",
  437. 'it': "Invia la mia posizione",
  438. },
  439. 'cancel': {
  440. 'en': "Cancel",
  441. 'it': "Annulla",
  442. },
  443. },
  444. }
  445. }
  446. default_help_messages = {
  447. 'help_command': {
  448. 'header': {
  449. 'en': "<b>{bot.name} commands</b>\n\n"
  450. "{commands}",
  451. 'it': "<b>Comandi di {bot.name}</b>\n\n"
  452. "{commands}",
  453. },
  454. 'text': {
  455. 'en': "<b>📖 {bot.name} guide</b>\n\n"
  456. "Welcome!\n"
  457. "To visit a guide section, press the corresponding button.\n"
  458. "To view all available commands, see section `Comandi`.\n\n"
  459. "Bot author and administrator: @Davte",
  460. 'it': "<b>📖 Guida di {bot.name}\n\n</b>"
  461. "Benvenuto!\n"
  462. "Per leggere una sezione della guida premi il bottone "
  463. "corrispondente. Per conoscere tutti i comandi "
  464. "disponibili, visita l'apposita sezione della guida "
  465. "premendo il pulsante Comandi.\n\n"
  466. "Autore e amministratore del bot: @Davte"
  467. },
  468. 'reply_keyboard_button': {
  469. 'en': "Help 📖",
  470. 'it': "Guida 📖"
  471. },
  472. 'description': {
  473. 'en': "Help",
  474. 'it': "Aiuto"
  475. },
  476. 'access_denied_message': {
  477. 'en': "Ask for authorization. If your request is accepted, send "
  478. "/help command again to read the guide.",
  479. 'it': "Chiedi di essere autorizzato: se la tua richiesta "
  480. "verrà accolta, ripeti il comando /help per leggere "
  481. "il messaggio di aiuto."
  482. },
  483. 'back_to_help_menu': {
  484. 'en': "Back to guide menu 📖",
  485. 'it': "Torna al menu Guida 📖",
  486. },
  487. },
  488. 'commands_button_label': {
  489. 'en': "Commands 🤖",
  490. 'it': "Comandi 🤖",
  491. },
  492. }