From 840df7d711047635a726439826a3fd75ed49a890 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 28 Aug 2019 22:13:07 +0200 Subject: [PATCH] Tweak book item name --- mods/book/init.lua | 2 +- mods/book/locale/book.de.tr | 1 + mods/book/locale/template.txt | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/book/init.lua b/mods/book/init.lua index 9de560b..637298e 100644 --- a/mods/book/init.lua +++ b/mods/book/init.lua @@ -43,7 +43,7 @@ minetest.register_on_player_receive_fields( local meta = itemstack:get_meta() - meta:set_string("description", fields.title) -- Set the item description + meta:set_string("description", S("Book: “@1”", minetest.colorize("#ffff00", fields.title))) -- Set the item description meta:set_string("book:title", fields.title) meta:set_string("book:text", fields.text) diff --git a/mods/book/locale/book.de.tr b/mods/book/locale/book.de.tr index 2fc8389..3d53bbd 100644 --- a/mods/book/locale/book.de.tr +++ b/mods/book/locale/book.de.tr @@ -5,3 +5,4 @@ Contents:=Inhalt: Write=Schreiben Scribe=Schreiber Craft a book=Fertigen Sie ein Buch +Book: “@1”=Buch: „@1“ diff --git a/mods/book/locale/template.txt b/mods/book/locale/template.txt index e6526a8..a83bd56 100644 --- a/mods/book/locale/template.txt +++ b/mods/book/locale/template.txt @@ -5,3 +5,4 @@ Contents:= Write= Scribe= Craft a book= +Book: “@1”=