From b8463cd1cf9f889d04678a65abfe68bf7f16c741 Mon Sep 17 00:00:00 2001 From: chocomint <73263831+Methro@users.noreply.github.com> Date: Sun, 26 Nov 2023 13:02:33 -0500 Subject: [PATCH 1/3] Change HUD inbox position --- mods/other/email/hud.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/other/email/hud.lua b/mods/other/email/hud.lua index f974e5fce6..4161d212a0 100644 --- a/mods/other/email/hud.lua +++ b/mods/other/email/hud.lua @@ -11,7 +11,7 @@ function email.update_hud(player) email.hud:add(player, "email:icon", { hud_elem_type = "image", name = "MailIcon", - position = {x=0.52, y=0.52}, + position = {x=0.06, y=0.96}, text="email_mail.png", scale = {x=1,y=1}, alignment = {x=0.5, y=0.5}, @@ -20,7 +20,7 @@ function email.update_hud(player) email.hud:add(player, "email:text", { hud_elem_type = "text", name = "MailText", - position = {x=0.55, y=0.52}, + position = {x=0.08, y=0.96}, text= #inbox .. " /inbox", scale = {x=1,y=1}, alignment = {x=0.5, y=0.5}, From 4477e13840d7d279c39869511d4dd8b49726795b Mon Sep 17 00:00:00 2001 From: chocomint <73263831+Methro@users.noreply.github.com> Date: Sun, 26 Nov 2023 13:05:00 -0500 Subject: [PATCH 2/3] Make the email msg more noticeable --- mods/other/email/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/other/email/init.lua b/mods/other/email/init.lua index ec1119ed41..ea5f4b679b 100644 --- a/mods/other/email/init.lua +++ b/mods/other/email/init.lua @@ -204,7 +204,9 @@ function email.send_mail(aname, ato, msg) email.save() - minetest.chat_send_player(to, "Mail from " .. name .. ": " .. msg) + minetest.chat_send_player(to, minetest.colorize("#00FF00", "Mail from " .. minetest.colorize("#92C5FC", name) .. ": " .. msg)) + + return true, S("Message sent to @1", ato) end From e39aff74ff2942fe119014121375b8d4a76da6d7 Mon Sep 17 00:00:00 2001 From: chocomint <73263831+Methro@users.noreply.github.com> Date: Sun, 26 Nov 2023 13:08:29 -0500 Subject: [PATCH 3/3] Add translations for other languages --- mods/other/email/locale/email.es.tr | 23 +++++++++++++++++++++++ mods/other/email/locale/email.pt_BR.tr | 23 +++++++++++++++++++++++ mods/other/email/locale/email.ru.tr | 23 +++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 mods/other/email/locale/email.es.tr create mode 100644 mods/other/email/locale/email.pt_BR.tr create mode 100644 mods/other/email/locale/email.ru.tr diff --git a/mods/other/email/locale/email.es.tr b/mods/other/email/locale/email.es.tr new file mode 100644 index 0000000000..3cb62f9a77 --- /dev/null +++ b/mods/other/email/locale/email.es.tr @@ -0,0 +1,23 @@ +# textdomain: email +(@1) You have mail! Type /inbox to recieve=(@1) ¡Tienes correo! Escribe /inbox para recibirlo +Your Inbox=Tu Bandeja de Entrada +Date=Fecha +From=De +Message=Mensaje +Well done! Your inbox is empty!=¡Bien hecho! ¡Tu bandeja de entrada está vacía! +Delete All=Eliminar Todo +Close=Cerrar +Exit then type /mail username message to reply=Sal y luego escribe /mail nombre de usuario y el mensaje para responder +Your inbox is empty!=¡Tu bandeja de entrada está vacía! +@1 items in your inbox:=@1 elementos en tu bandeja de entrada: +End of mail (@1 items)=Fin del correo (@1 elementos) +Opened inbox!=¡Bandeja de entrada abierta! +Inbox=Bandeja de Entrada +Inbox cleared!=¡Bandeja de entrada vaciada! +Player '@1' does not exist=El jugador '@1' no existe +Message sent to @1=Mensaje enviado a @1 +Inbox: Blank to see inbox. Use 'clear' to empty inbox, 'text' for text only.=Bandeja de entrada: Deja en blanco para ver la bandeja de entrada. Usa 'clear' para vaciar la bandeja, 'text' para solo texto. +Inbox cleared=Bandeja de entrada vaciada + = +mail: add a message to a player's inbox=mail: agregar un mensaje a la bandeja de entrada de un jugador +Usage: mail =Uso: mail diff --git a/mods/other/email/locale/email.pt_BR.tr b/mods/other/email/locale/email.pt_BR.tr new file mode 100644 index 0000000000..95a8c39e56 --- /dev/null +++ b/mods/other/email/locale/email.pt_BR.tr @@ -0,0 +1,23 @@ +# textdomain: email +(@1) You have mail! Type /inbox to recieve=(@1) Você tem correio! Digite /inbox para receber +Your Inbox=Sua Caixa de Entrada +Date=Data +From=De +Message=Mensagem +Well done! Your inbox is empty!=Bem feito! Sua caixa de entrada está vazia! +Delete All=Excluir Tudo +Close=Fechar +Exit then type /mail username message to reply=Sair e depois digite /mail nomeusuário mensagem para responder +Your inbox is empty!=Sua caixa de entrada está vazia! +@1 items in your inbox:=@1 itens na sua caixa de entrada: +End of mail (@1 items)=Fim do correio (@1 itens) +Opened inbox!=Caixa de entrada aberta! +Inbox=Caixa de Entrada +Inbox cleared!=Caixa de entrada limpa! +Player '@1' does not exist=Jogador '@1' não existe +Message sent to @1=Mensagem enviada para @1 +Inbox: Blank to see inbox. Use 'clear' to empty inbox, 'text' for text only.=Caixa de entrada: Deixe em branco para ver a caixa de entrada. Use 'clear' para esvaziar a caixa, 'text' para texto apenas. +Inbox cleared=Caixa de entrada limpa + = +mail: add a message to a player's inbox=mail: adicionar uma mensagem à caixa de entrada de um jogador +Usage: mail =Uso: mail diff --git a/mods/other/email/locale/email.ru.tr b/mods/other/email/locale/email.ru.tr new file mode 100644 index 0000000000..3db381e608 --- /dev/null +++ b/mods/other/email/locale/email.ru.tr @@ -0,0 +1,23 @@ +# textdomain: email +(@1) You have mail! Type /inbox to recieve=(@1) У вас новое письмо! Введите /inbox для получения +Your Inbox=Ваш почтовый ящик +Date=Дата +From=От +Message=Сообщение +Well done! Your inbox is empty!=Отлично! Ваша почта пуста! +Delete All=Удалить все +Close=Закрыть +Exit then type /mail username message to reply=Выйдите, затем введите /mail имяпользователя сообщение для ответа +Your inbox is empty!=Ваш почтовый ящик пуст! +@1 items in your inbox:=@1 элементов в вашем почтовом ящике: +End of mail (@1 items)=Конец почты (@1 элементов) +Opened inbox!=Почтовый ящик открыт! +Inbox=Почтовый ящик +Inbox cleared!=Почтовый ящик очищен! +Player '@1' does not exist=Игрок '@1' не существует +Message sent to @1=Сообщение отправлено @1 +Inbox: Blank to see inbox. Use 'clear' to empty inbox, 'text' for text only.=Почтовый ящик: Пусто для просмотра почты. Используйте 'clear', чтобы очистить почтовый ящик, 'text' только для текста. +Inbox cleared=Почтовый ящик очищен + =<имяигрока> <какоесообщение> +mail: add a message to a player's inbox=mail: добавить сообщение в почтовый ящик игрока +Usage: mail =Использование: mail <имяигрока> <какоесообщение>