🚑 Fixed invalid localization tag-names
This commit is contained in:
parent
5a82fa554e
commit
957bc2b4ac
10
delete.go
10
delete.go
|
@ -15,7 +15,7 @@ func commandDelete(msg *tg.Message) {
|
|||
err = dbChangeUserState(msg.From.ID, stateNone)
|
||||
errCheck(err)
|
||||
|
||||
reply := tg.NewMessage(msg.Chat.ID, T("error_empty_remove"))
|
||||
reply := tg.NewMessage(msg.Chat.ID, T("error_empty_del"))
|
||||
_, err = bot.SendMessage(reply)
|
||||
errCheck(err)
|
||||
return
|
||||
|
@ -27,13 +27,13 @@ func commandDelete(msg *tg.Message) {
|
|||
markup := tg.NewInlineKeyboardMarkup(
|
||||
tg.NewInlineKeyboardRow(
|
||||
tg.NewInlineKeyboardButtonSwitchSelf(
|
||||
T("button_remove"),
|
||||
T("button_del"),
|
||||
" ",
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
reply := tg.NewMessage(msg.Chat.ID, T("reply_remove"))
|
||||
reply := tg.NewMessage(msg.Chat.ID, T("reply_del"))
|
||||
reply.ParseMode = tg.ModeMarkdown
|
||||
reply.ReplyMarkup = &markup
|
||||
|
||||
|
@ -54,11 +54,11 @@ func actionDelete(msg *tg.Message) {
|
|||
)
|
||||
errCheck(err)
|
||||
|
||||
reply := tg.NewMessage(msg.Chat.ID, T("success_remove"))
|
||||
reply := tg.NewMessage(msg.Chat.ID, T("success_del"))
|
||||
reply.ParseMode = tg.ModeMarkdown
|
||||
|
||||
if notExist {
|
||||
reply.Text = T("error_already_remove")
|
||||
reply.Text = T("error_already_del")
|
||||
}
|
||||
|
||||
_, err = bot.SendMessage(reply)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
button_del:
|
||||
other: Select sticker for remove
|
||||
button_inline_add:
|
||||
one: You have {{.Count}} sticker. Add one more?
|
||||
other: You have {{.Count}} stickers. Add one more?
|
||||
|
@ -5,8 +7,6 @@ button_inline_empty:
|
|||
other: Your pack is empty
|
||||
button_inline_nothing:
|
||||
other: Not found stickers for {{.Query}}, add one?
|
||||
button_remove:
|
||||
other: Select sticker for remove
|
||||
button_share:
|
||||
other: Use your stickers pack!
|
||||
cancel_add_pack:
|
||||
|
|
|
@ -5,7 +5,7 @@ button_inline_nothing:
|
|||
button_inline_add:
|
||||
one: You have {{.Count}} sticker. Add one more?
|
||||
other: You have {{.Count}} stickers. Add one more?
|
||||
button_remove:
|
||||
button_del:
|
||||
other: Select sticker for remove
|
||||
button_share:
|
||||
other: Use your stickers pack!
|
|
@ -1,3 +1,5 @@
|
|||
button_del:
|
||||
other: Выбрать стикер для удаления
|
||||
button_inline_add:
|
||||
few: У тебя {{.Count}} стикеров. Добавить ещё один?
|
||||
many: У тебя {{.Count}} стикеров. Добавить ещё один?
|
||||
|
@ -7,8 +9,6 @@ button_inline_empty:
|
|||
other: Твой набор пуст
|
||||
button_inline_nothing:
|
||||
other: Нет стикеров с {{.Query}}, добавить один?
|
||||
button_remove:
|
||||
other: Выбрать стикер для удаления
|
||||
button_share:
|
||||
other: Воспользоваться твоим набором!
|
||||
cancel_add_pack:
|
||||
|
@ -65,7 +65,7 @@ reply_help:
|
|||
Для просмотра и отправки стикеров из твоего набора просто набери `@{{.Username}}` (и пробел) в любом чате.
|
||||
reply_reset:
|
||||
other: |
|
||||
Эта операция сбросит *все* стикеры из твоего набора и *это не может быть отменено*.
|
||||
Эта операция удалит *все* стикеры из твоего набора и *это не может быть отменено*.
|
||||
|
||||
Напиши `{{.KeyPhrase}}` чтобы подтвердить своё намерение обнулить мои мозги (о боже зачем).
|
||||
Или используй /{{.CancelCommand}} чтобы отменить текущую операцию.
|
||||
|
|
|
@ -7,7 +7,7 @@ button_inline_add:
|
|||
one: У тебя {{.Count}} стикер. Добавить ещё один?
|
||||
many: У тебя {{.Count}} стикеров. Добавить ещё один?
|
||||
other: У тебя {{.Count}} стикеров. Добавить ещё один?
|
||||
button_remove:
|
||||
button_del:
|
||||
other: Выбрать стикер для удаления
|
||||
button_share:
|
||||
other: Воспользоваться твоим набором!
|
Loading…
Reference in New Issue