translate many nalc_* mods
and use function to register toolranks
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
|
||||
local S = minetest.get_translator("nalc_beds")
|
||||
--overidde craft recipe of the default beds
|
||||
minetest.clear_craft({ output = "beds:bed_bottom" })
|
||||
minetest.clear_craft({ output = "beds:fancy_bed_bottom" })
|
||||
@ -23,7 +25,7 @@ for _, colour in pairs({"white", "black", "blue", "green"}) do
|
||||
beds.register_bed(
|
||||
"nalc_beds:fancy_bed_" .. colour,
|
||||
{
|
||||
description = "Fancy Bed (" .. colour .. ")",
|
||||
description = S("Fancy Bed (@1)", S(colour)),
|
||||
inventory_image = "beds_bed_fancy_" .. colour .. ".png",
|
||||
wield_image = "beds_bed_fancy_" .. colour .. ".png",
|
||||
tiles = {
|
||||
@ -80,7 +82,7 @@ for _, colour in pairs({"white", "black", "blue", "green"}) do
|
||||
beds.register_bed(
|
||||
"nalc_beds:bed_" .. colour,
|
||||
{
|
||||
description = "Simple Bed (" .. colour .. ")",
|
||||
description = S("Simple Bed (@1)", S(colour)),
|
||||
inventory_image = "beds_bed_" .. colour .. ".png",
|
||||
wield_image = "beds_bed_" .. colour .. ".png",
|
||||
tiles = {
|
||||
|
8
nalc_beds/locale/nalc_beds.fr.tr
Normal file
8
nalc_beds/locale/nalc_beds.fr.tr
Normal file
@ -0,0 +1,8 @@
|
||||
# textdomain: nalc_beds
|
||||
|
||||
Fancy Bed (@1)=Lit chic (@1)
|
||||
Simple Bed (@1)=Lit simple (@1)
|
||||
white=blanc
|
||||
black=noir
|
||||
blue=bleu
|
||||
green=vert
|
10
nalc_beds/locale/template.txt
Normal file
10
nalc_beds/locale/template.txt
Normal file
@ -0,0 +1,10 @@
|
||||
# textdomain: nalc_beds
|
||||
|
||||
Fancy Bed (@1)=
|
||||
Simple Bed (@1)=
|
||||
white=
|
||||
black=
|
||||
blue=
|
||||
green=
|
||||
|
||||
|
Reference in New Issue
Block a user