Skip to content

Commit

Permalink
Add a tooltip for elapsed time since the delivery
Browse files Browse the repository at this point in the history
It adds the file util/time_ago.lua in order to re-use the function further
  • Loading branch information
Athozus committed Jul 16, 2023
1 parent fbdaaee commit 37fad48
Show file tree
Hide file tree
Showing 11 changed files with 239 additions and 144 deletions.
1 change: 1 addition & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ local MP = minetest.get_modpath(minetest.get_current_modname())
dofile(MP .. "/util/normalize.lua")
dofile(MP .. "/util/contact.lua")
dofile(MP .. "/util/uuid.lua")
dofile(MP .. "/util/time_ago.lua")
dofile(MP .. "/chatcommands.lua")
dofile(MP .. "/migrate.lua")
dofile(MP .. "/hud.lua")
Expand Down
44 changes: 26 additions & 18 deletions locale/mail.de.tr
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ Expat (code), WTFPL (textures)=Expat (Code), WTFPL (Texturen)
Communication using this system is NOT guaranteed to be private!=Die Kommunikation über dieses System ist NICHT garantiert privat!
Admins are able to view the messages of any player.=Admins können die Nachrichten aller Spieler sehen.
Contributors=Mitwirkende
Settings=Einstellungen
About=Über
You have a new message from @1! Subject: @2=Sie haben eine neue Nachricht von @1! Betreff: @2
To view it, type /mail=Geben Sie zum Anzeigen „/mail“ ein
You could also use the button in your inventory.=Sie können auch die Schaltfläche in Ihrem Inventar verwenden.
Expand All @@ -17,18 +15,26 @@ Save draft=Entwurf speichern
Send=Senden
CC=CC
No contacts=Keine Kontakte
Edit=Bearbeiten
Name=Name
No drafts=Keine Entwürfe
Player name=Spielername
That name is already in your contacts=Dieser Name ist bereits in Ihren Kontakten
The contact name cannot be empty.=Der Kontaktname kann nicht leer sein.
Note=Anmerkung
Back=Zurück
Maillist name=Verteilerlistenname
Desc=Beschreibung
Players=Spieler
That name is already in your mailing lists.=Dieser Name ist bereits in Ihren Verteilerlisten.
The mailing list name cannot be empty.=Der Verteilerlistenname kann nicht leer sein.
Save=Speichern
Mark Read=Als gelesen makieren
Mark Unread=Als ungelesen makieren
From=Von
(No description)=(Keine Beschreibung)
No maillist=Keine Verteilerliste
Receivers=Empfänger
You have mail! Type /mail to read=Sie haben Post! „/mail“ eingeben zum Lesen
Filter=Filter
Allow multiple selection=Mehrfachauswahl zulassen
@1 of @2 selected=@1 von @2 ausgewählt
Expand All @@ -37,8 +43,8 @@ No mail=Keine Nachrichten
Reply=Antworten
Reply all=Allen antworten
Forward=Weiterleiten
Ascending=Aufsteigend
Descending=Absteigend
Date=Datum
Subject=Betreff
Read=Lesen
Trash=Papierkorb
Inbox=Posteingang
Expand All @@ -49,20 +55,11 @@ Mail lists=Verteilerlisten
Options=Einstellungen
Close=Schließen
(No subject)=(Kein Betreff)
(No description)=(Keine Beschreibung)
No maillist=Keine Verteilerliste
Note=Anmerkung
Edit=Bearbeiten
Name=Name
Back=Zurück
Delete=Löschen
New=Neu
Receivers=Empfänger
You have mail! Type /mail to read=Sie haben Post! „/mail“ eingeben zum Lesen
Subject=Betreff
From=Von
Delete=Löschen
To=An
Date=Datum
Ascending=Aufsteigend
Descending=Absteigend
Add=Hinzufügen
Remove=Entfernen
Notifications=Benachrichtigungen
Expand All @@ -77,7 +74,18 @@ Default sorting fields=Standardsortierfelder
Other=Anderes
Move deleted messages to trash=Gelöschte Nachrichten in den Papierkorb verschieben
Reset=Zurücksetzen
Settings=Einstellungen
About=Über
Save=Speichern
From/To=Von/An
years=
months=
weeks=
days=
hours=
minuts=
seconds=
@1 ago=
Restore=Wiederherstellen
Empty=Leer
Trash is empty=Papierkorb ist leer
From/To=Von/An
44 changes: 26 additions & 18 deletions locale/mail.es.tr
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ Expat (code), WTFPL (textures)=
Communication using this system is NOT guaranteed to be private!=
Admins are able to view the messages of any player.=
Contributors=
Settings=
About=Acerca de
You have a new message from @1! Subject: @2=
To view it, type /mail=
You could also use the button in your inventory.=
Expand All @@ -17,18 +15,26 @@ Save draft=Guardar borrador
Send=Enviar
CC=CC
No contacts=
Edit=Editar
Name=Nombre
No drafts=No hay borradores
Player name=Nombre del jugador
That name is already in your contacts=Ese nombre ya está en tus contactos
The contact name cannot be empty.=Ese nombre de contacto no puede estar vacío.
Note=Nota
Back=Volver
Maillist name=Nombre de la lista de correo
Desc=Desc
Players=Jugadores
That name is already in your mailing lists.=Ese nombre ya está entus listas de correo.
The mailing list name cannot be empty.=Ese nombre de lista de correo no puede estar vacío.
Save=Guardar
Mark Read=Marcar como leído
Mark Unread=Marcar como no leído
From=De
(No description)=(Sin descripción)
No maillist=Sin lista de correo
Receivers=
You have mail! Type /mail to read=
Filter=Filtrar
Allow multiple selection=Permitir selección múltiple
@1 of @2 selected=
Expand All @@ -37,8 +43,8 @@ No mail=Sin correo
Reply=Responder
Reply all=Responder a todos
Forward=Reenviar
Ascending=Ascendente
Descending=Descendiente
Date=Fecha
Subject=Asunto
Read=Leído
Trash=
Inbox=Entrada
Expand All @@ -49,20 +55,11 @@ Mail lists=Listas de correo
Options=
Close=Cerrar
(No subject)=(Sin asunto)
(No description)=(Sin descripción)
No maillist=Sin lista de correo
Note=Nota
Edit=Editar
Name=Nombre
Back=Volver
Delete=Borrar
New=Nuevo
Receivers=
You have mail! Type /mail to read=
Subject=Asunto
From=De
Delete=Borrar
To=Para
Date=Fecha
Ascending=Ascendente
Descending=Descendiente
Add=Añadir
Remove=Quitar
Notifications=
Expand All @@ -77,7 +74,18 @@ Default sorting fields=
Other=
Move deleted messages to trash=
Reset=
Settings=
About=Acerca de
Save=Guardar
From/To=De/Para
years=
months=
weeks=
days=
hours=
minuts=
seconds=
@1 ago=
Restore=
Empty=
Trash is empty=
From/To=De/Para
44 changes: 26 additions & 18 deletions locale/mail.fr.tr
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ Expat (code), WTFPL (textures)=Expat (code), WTFPL (textures)
Communication using this system is NOT guaranteed to be private!=La communication par ce système n'est pas garantie d'être privée !
Admins are able to view the messages of any player.=Les administrateurs peuvent voir les messages de chaque joueur.
Contributors=Contributeurs
Settings=Paramètres
About=À propos
You have a new message from @1! Subject: @2=Vous avez un nouveau message de @1 ! Objet : @2
To view it, type /mail=Pour le consulter, entrez /mail
You could also use the button in your inventory.=Vous pouvez également utiliser le bouton dans votre inventaire
Expand All @@ -17,18 +15,26 @@ Save draft=Enregistrer le brouillon
Send=Envoyer
CC=Cc
No contacts=Aucun contact
Edit=Modifier
Name=Nom
No drafts=Aucun brouillon
Player name=Nom du joueur
That name is already in your contacts=Ce nom est déjà dans vos contacts
The contact name cannot be empty.=Le nom du contact ne peut pas être vide.
Note=Note
Back=Retour
Maillist name=Nom de la liste de diffusion
Desc=Desc
Players=Joueurs
That name is already in your mailing lists.=Ce nom est déjà présent dans vos listes de diffusion.
The mailing list name cannot be empty.=Le nom de la liste de diffusion ne peut pas être vide.
Save=Sauvegarder
Mark Read=Marquer comme lu
Mark Unread=Marquer non lu
From=De
(No description)=Sans description
No maillist=Aucune liste de diffusion
Receivers=Destinataires
You have mail! Type /mail to read=Vous avez reçu un mail ! Entrez /mail pour le consulter
Filter=Filtre
Allow multiple selection=Autoriser la sélection multiple
@1 of @2 selected=@1 sur @2 sélectionnés
Expand All @@ -37,8 +43,8 @@ No mail=Aucun mail
Reply=Répondre
Reply all=Répondre à tous
Forward=Transférer
Ascending=Croissant
Descending=Décroissant
Date=Date
Subject=Objet
Read=Lire
Trash=Corbeille
Inbox=Boîte de réception
Expand All @@ -49,20 +55,11 @@ Mail lists=Listes de diffusion
Options=Options
Close=Fermer
(No subject)=(Sans objet)
(No description)=Sans description
No maillist=Aucune liste de diffusion
Note=Note
Edit=Modifier
Name=Nom
Back=Retour
Delete=Supprimer
New=Nouveau
Receivers=
You have mail! Type /mail to read=Vous avez reçu un mail ! Entrez /mail pour le consulter
Subject=Objet
From=De
Delete=Supprimer
To=À
Date=Date
Ascending=Croissant
Descending=Décroissant
Add=Ajouter
Remove=Enlever
Notifications=Notifications
Expand All @@ -77,7 +74,18 @@ Default sorting fields=Champs de tri par défaut
Other=Autre
Move deleted messages to trash=Supprimer les messages dans la corbeille
Reset=Réinitialiser
Settings=Paramètres
About=À propos
Save=Sauvegarder
From/To=De/À
years=années
months=mois
weeks=semaines
days=jours
hours=heures
minuts=minutes
seconds=secondes
@1 ago=Il y a @1
Restore=Restaurer
Empty=Vider
Trash is empty=La corbeille est vide
From/To=De/À
44 changes: 26 additions & 18 deletions locale/mail.hu.tr
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ Expat (code), WTFPL (textures)=Expat (kód), WTFPL (textúrák)
Communication using this system is NOT guaranteed to be private!=A systemben lévő komunikáció nem garantáltan privát!
Admins are able to view the messages of any player.=Az adminok megtudják nézni minden játékos üzenetjét.
Contributors=Közreműködöttek
Settings=Beállítások
About=Róla
You have a new message from @1! Subject: @2=Van egy új üzeneted @1-től Cím: @2
To view it, type /mail=Ahhoz hogy megnézd, írd /mail
You could also use the button in your inventory.=A gombot is tudod használni az inventoridban.
Expand All @@ -17,18 +15,26 @@ Save draft=mentés piszkozatként
Send=Küldés
CC=CC
No contacts=
Edit=Szerkesztés
Name=Név
No drafts=Nincsenek piszkozatok
Player name=Játékos neve
That name is already in your contacts=A név már a kontaktok között van
The contact name cannot be empty.=A contakt neve nem lehet üres.
Note=Jegyzet
Back=Visza
Maillist name=Levelező lista neve
Desc=Desc
Players=Játékosok
That name is already in your mailing lists.=A név már benne van a levelező listában
The mailing list name cannot be empty.=A levelező lista neve nem lehet üres
Save=Mentés
Mark Read=Jelöld olvasottként
Mark Unread=Jelöld olvasatlanul
From=Tőle
(No description)=(Nincs leírás)
No maillist=Nincs levelező lista
Receivers=
You have mail! Type /mail to read=Van egy leveled! Írd /mail az olvasáshoz
Filter=Filterek
Allow multiple selection=
@1 of @2 selected=
Expand All @@ -37,8 +43,8 @@ No mail=Nincs levél
Reply=Válasz
Reply all=Válaszmindenkinek
Forward=Továbbítás
Ascending=Emelkedő
Descending=Sűlyedő
Date=Dátum
Subject=Cím
Read=Olvasott
Trash=
Inbox=PostaLáda
Expand All @@ -49,20 +55,11 @@ Mail lists=Levelező lista
Options=Lehetőségek
Close=Bezár
(No subject)=(nincs cím)
(No description)=(Nincs leírás)
No maillist=Nincs levelező lista
Note=Jegyzet
Edit=Szerkesztés
Name=Név
Back=Visza
Delete=Törlés
New=Új
Receivers=
You have mail! Type /mail to read=Van egy leveled! Írd /mail az olvasáshoz
Subject=Cím
From=Tőle
Delete=Törlés
To=Neki
Date=Dátum
Ascending=Emelkedő
Descending=Sűlyedő
Add=Hozzáadás
Remove=Elvétel
Notifications=Értesítések
Expand All @@ -77,7 +74,18 @@ Default sorting fields=Alap válogató terület
Other=
Move deleted messages to trash=
Reset=Viszaállítás
Settings=Beállítások
About=Róla
Save=Mentés
From/To=Tól(től)/neki
years=
months=
weeks=
days=
hours=
minuts=
seconds=
@1 ago=
Restore=
Empty=
Trash is empty=
From/To=Tól(től)/neki
Loading

0 comments on commit 37fad48

Please sign in to comment.