🌐 Added translated reset key phrase
This commit is contained in:
parent
bdae4cd9f6
commit
5a82fa554e
|
@ -38,6 +38,8 @@ error_unknown:
|
|||
other: |-
|
||||
I do not know what to do with this sticker.
|
||||
Please run /{{.AddStickerCommand}}, /{{.AddPackCommand}} or /{{.DeleteCommand}} command first.
|
||||
meta_key_phrase:
|
||||
other: Yes, I am totally sure.
|
||||
meta_reset_1:
|
||||
other: Wait. Who are you?
|
||||
meta_reset_2:
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
meta_key_phrase:
|
||||
other: Yes, I am totally sure.
|
||||
meta_reset_1:
|
||||
other: Wait. Who are you?
|
||||
meta_reset_2:
|
||||
|
|
|
@ -39,6 +39,8 @@ error_unknown:
|
|||
other: |-
|
||||
Я понятия не имею что делать с этим стикером.
|
||||
Пожалуйста, сначала примени /{{.AddStickerCommand}}, /{{.AddPackCommand}} или /{{.DeleteCommand}}.
|
||||
meta_key_phrase:
|
||||
other: Да, я абсолютно уверен.
|
||||
meta_reset_1:
|
||||
other: Подожди. Кто ты?
|
||||
meta_reset_2:
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
meta_key_phrase:
|
||||
other: Да, я абсолютно уверен.
|
||||
meta_reset_1:
|
||||
other: Подожди. Кто ты?
|
||||
meta_reset_2:
|
||||
|
|
6
reset.go
6
reset.go
|
@ -7,8 +7,6 @@ import (
|
|||
tg "github.com/toby3d/telegram" // My Telegram bindings
|
||||
)
|
||||
|
||||
const keyPhrase = "Yes, I am totally sure."
|
||||
|
||||
func commandReset(msg *tg.Message) {
|
||||
bot.SendChatAction(msg.Chat.ID, tg.ActionTyping)
|
||||
|
||||
|
@ -36,7 +34,7 @@ func commandReset(msg *tg.Message) {
|
|||
reply := tg.NewMessage(
|
||||
msg.Chat.ID,
|
||||
T("reply_reset", map[string]interface{}{
|
||||
"KeyPhrase": keyPhrase,
|
||||
"KeyPhrase": T("meta_key_phrase"),
|
||||
"CancelCommand": cmdCancel,
|
||||
}))
|
||||
reply.ParseMode = tg.ModeMarkdown
|
||||
|
@ -54,7 +52,7 @@ func actionReset(msg *tg.Message) {
|
|||
T, err := switchLocale(msg.From.LanguageCode)
|
||||
errCheck(err)
|
||||
|
||||
if msg.Text != keyPhrase {
|
||||
if msg.Text != T("meta_key_phrase") {
|
||||
reply := tg.NewMessage(msg.Chat.ID, T("error_reset_phrase"))
|
||||
reply.ParseMode = tg.ModeMarkdown
|
||||
|
||||
|
|
Loading…
Reference in New Issue