From 2794c45b777be6753d518f4de7bce7ac2e2ba5bc Mon Sep 17 00:00:00 2001 From: David Leal Date: Tue, 23 Mar 2021 22:19:18 -0600 Subject: [PATCH] Enable translation for Cloud car and Cloud ship --- car.lua | 6 +++++- ship.lua | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/car.lua b/car.lua index 08a42d9..870528d 100644 --- a/car.lua +++ b/car.lua @@ -1,8 +1,12 @@ -- Code from the Vehicle Mash mod (WTFPL license) + +-- Translation support +local S = minetest.get_translator("cloud_items") + local name = "car_cloud" local definition = ... -definition.description = "Cloud car" +definition.description = S("Cloud car") definition.inventory_image = "cloud_items_car_cloud_inventory.png" definition.wield_image = "cloud_items_car_cloud_inventory.png" definition.textures = {"cloud_items_car_cloud.png"} diff --git a/ship.lua b/ship.lua index f1c79e4..19a096d 100644 --- a/ship.lua +++ b/ship.lua @@ -1,8 +1,12 @@ -- Code from the Vehicle Mash mod (WTFPL license) + +-- Translation support +local S = minetest.get_translator("cloud_items") + local name = "cloud_ship" local definition = ... -definition.description = "Cloud ship" +definition.description = S("Cloud ship") definition.inventory_image = "cloud_items_cloud_ship_inventory.png" definition.wield_image = "cloud_items_cloud_ship_inventory.png" definition.mesh = "cloud_items_cloud_ship.obj"