diff --git a/boats/boat.lua b/boats/boat.lua index 10b199d..12f062d 100644 --- a/boats/boat.lua +++ b/boats/boat.lua @@ -1,9 +1,8 @@ - local name = "boat" local definition = ... local craft_check = minetest.settings:get_bool("vehicle_mash.enable_crafts") -definition.description = "BoatA" +definition.description = vehicle_mash.S("BoatA") definition.inventory_image = "boat_inventory.png" definition.wield_image = "boat_wield.png" definition.mesh = "boats_boat.obj" diff --git a/boats/rowboat.lua b/boats/rowboat.lua index b49fc2a..788d895 100644 --- a/boats/rowboat.lua +++ b/boats/rowboat.lua @@ -1,9 +1,8 @@ - local name = "rowboat" local definition = ... local craft_check = minetest.settings:get_bool("vehicle_mash.enable_crafts") -definition.description = "Rowboat" +definition.description = vehicle_mash.S("Rowboat") definition.inventory_image = "rowboat_inventory.png" definition.wield_image = "rowboat_wield.png" definition.mesh = "rowboat.x" diff --git a/car01s/black.lua b/car01s/black.lua index a999121..983b34f 100644 --- a/car01s/black.lua +++ b/car01s/black.lua @@ -1,8 +1,7 @@ - local name = "car_black" local definition = ... -definition.description = "Black car" +definition.description = vehicle_mash.S("Black car") definition.inventory_image = "inv_car_black.png" definition.wield_image = "inv_car_black.png" definition.textures = {"car_black.png"} diff --git a/car01s/blue.lua b/car01s/blue.lua index dd9addd..89a00d5 100644 --- a/car01s/blue.lua +++ b/car01s/blue.lua @@ -1,8 +1,7 @@ - local name = "car_blue" local definition = ... -definition.description = "Blue car" +definition.description = vehicle_mash.S("Blue car") definition.inventory_image = "inv_car_blue.png" definition.wield_image = "inv_car_blue.png" definition.textures = {"car_blue.png"} diff --git a/car01s/brown.lua b/car01s/brown.lua index 290e40a..690e275 100644 --- a/car01s/brown.lua +++ b/car01s/brown.lua @@ -1,8 +1,7 @@ - local name = "car_brown" local definition = ... -definition.description = "Brown car" +definition.description = vehicle_mash.S("Brown car") definition.inventory_image = "inv_car_brown.png" definition.wield_image = "inv_car_brown.png" definition.textures = {"car_brown.png"} diff --git a/car01s/cyan.lua b/car01s/cyan.lua index a9c00b9..3675f52 100644 --- a/car01s/cyan.lua +++ b/car01s/cyan.lua @@ -1,8 +1,7 @@ - local name = "car_cyan" local definition = ... -definition.description = "Cyan car" +definition.description = vehicle_mash.S("Cyan car") definition.inventory_image = "inv_car_cyan.png" definition.wield_image = "inv_car_cyan.png" definition.textures = {"car_cyan.png"} diff --git a/car01s/dark_green.lua b/car01s/dark_green.lua index 3483fd4..3acdf19 100644 --- a/car01s/dark_green.lua +++ b/car01s/dark_green.lua @@ -1,8 +1,7 @@ - local name = "car_dark_green" local definition = ... -definition.description = "Dark green car" +definition.description = vehicle_mash.S("Dark green car") definition.inventory_image = "inv_car_dark_green.png" definition.wield_image = "inv_car_dark_green.png" definition.textures = {"car_dark_green.png"} diff --git a/car01s/dark_grey.lua b/car01s/dark_grey.lua index cce03b7..7b13f0b 100644 --- a/car01s/dark_grey.lua +++ b/car01s/dark_grey.lua @@ -1,8 +1,7 @@ - local name = "car_dark_grey" local definition = ... -definition.description = "Dark grey car" +definition.description = vehicle_mash.S("Dark grey car") definition.inventory_image = "inv_car_dark_grey.png" definition.wield_image = "inv_car_dark_grey.png" definition.textures = {"car_dark_grey.png"} diff --git a/car01s/green.lua b/car01s/green.lua index dfab73e..db37467 100644 --- a/car01s/green.lua +++ b/car01s/green.lua @@ -1,8 +1,7 @@ - local name = "car_green" local definition = ... -definition.description = "Green car" +definition.description = vehicle_mash.S("Green car") definition.inventory_image = "inv_car_green.png" definition.wield_image = "inv_car_green.png" definition.textures = {"car_green.png"} diff --git a/car01s/grey.lua b/car01s/grey.lua index 85fac07..0dff15a 100644 --- a/car01s/grey.lua +++ b/car01s/grey.lua @@ -1,8 +1,7 @@ - local name = "car_grey" local definition = ... -definition.description = "Grey car" +definition.description = vehicle_mash.S("Grey car") definition.inventory_image = "inv_car_grey.png" definition.wield_image = "inv_car_grey.png" definition.textures = {"car_grey.png"} diff --git a/car01s/hot_rod.lua b/car01s/hot_rod.lua index 68ac3ab..056519d 100644 --- a/car01s/hot_rod.lua +++ b/car01s/hot_rod.lua @@ -1,8 +1,7 @@ - local name = "car_hot_rod" local definition = ... -definition.description = "Hot Rod car" +definition.description = vehicle_mash.S("Hot Rod car") definition.inventory_image = "inv_car_red.png" definition.wield_image = "inv_car_red.png" definition.textures = {"hot_rod.png"} diff --git a/car01s/magenta.lua b/car01s/magenta.lua index 4536eaf..a42b2b7 100644 --- a/car01s/magenta.lua +++ b/car01s/magenta.lua @@ -1,8 +1,7 @@ - local name = "car_magenta" local definition = ... -definition.description = "Magenta car" +definition.description = vehicle_mash.S("Magenta car") definition.inventory_image = "inv_car_magenta.png" definition.wield_image = "inv_car_magenta.png" definition.textures = {"car_magenta.png"} diff --git a/car01s/nyan_ride.lua b/car01s/nyan_ride.lua index 1d8ff86..19f35e0 100644 --- a/car01s/nyan_ride.lua +++ b/car01s/nyan_ride.lua @@ -1,8 +1,7 @@ - local name = "car_nyan_ride" local definition = ... -definition.description = "Nyan Ride car" +definition.description = vehicle_mash.S("Nyan Ride car") definition.inventory_image = "inv_car_pink.png" definition.wield_image = "inv_car_pink.png" definition.textures = {"nyan_ride.png"} diff --git a/car01s/oerkki_bliss.lua b/car01s/oerkki_bliss.lua index 84323d4..8dda2bf 100644 --- a/car01s/oerkki_bliss.lua +++ b/car01s/oerkki_bliss.lua @@ -1,8 +1,7 @@ - local name = "car_oerkki_bliss" local definition = ... -definition.description = "Oerkki Bliss car" +definition.description = vehicle_mash.S("Oerkki Bliss car") definition.inventory_image = "inv_car_black.png" definition.wield_image = "inv_car_black.png" definition.textures = {"oerkki_bliss.png"} diff --git a/car01s/orange.lua b/car01s/orange.lua index 30c3950..95af529 100644 --- a/car01s/orange.lua +++ b/car01s/orange.lua @@ -1,8 +1,7 @@ - local name = "car_orange" local definition = ... -definition.description = "Orange car" +definition.description = vehicle_mash.S("Orange car") definition.inventory_image = "inv_car_orange.png" definition.wield_image = "inv_car_orange.png" definition.textures = {"car_orange.png"} diff --git a/car01s/pink.lua b/car01s/pink.lua index fc0def9..eaf4670 100644 --- a/car01s/pink.lua +++ b/car01s/pink.lua @@ -1,8 +1,7 @@ - local name = "car_pink" local definition = ... -definition.description = "Pink car" +definition.description = vehicle_mash.S("Pink car") definition.inventory_image = "inv_car_pink.png" definition.wield_image = "inv_car_pink.png" definition.textures = {"car_pink.png"} diff --git a/car01s/red.lua b/car01s/red.lua index 24f67d5..7f35793 100644 --- a/car01s/red.lua +++ b/car01s/red.lua @@ -1,8 +1,7 @@ - local name = "car_red" local definition = ... -definition.description = "Red car" +definition.description = vehicle_mash.S("Red car") definition.inventory_image = "inv_car_red.png" definition.wield_image = "inv_car_red.png" definition.textures = {"car_red.png"} diff --git a/car01s/road_master.lua b/car01s/road_master.lua index 91fe123..fdabbb0 100644 --- a/car01s/road_master.lua +++ b/car01s/road_master.lua @@ -1,8 +1,7 @@ - local name = "car_road_master" local definition = ... -definition.description = "Road Master car" +definition.description = vehicle_mash.S("Road Master car") definition.inventory_image = "inv_car_brown.png" definition.wield_image = "inv_car_brown.png" definition.textures = {"road_master.png"} diff --git a/car01s/violet.lua b/car01s/violet.lua index 48d660e..5be1516 100644 --- a/car01s/violet.lua +++ b/car01s/violet.lua @@ -1,8 +1,7 @@ - local name = "car_violet" local definition = ... -definition.description = "Violet car" +definition.description = vehicle_mash.S("Violet car") definition.inventory_image = "inv_car_violet.png" definition.wield_image = "inv_car_violet.png" definition.textures = {"car_violet.png"} diff --git a/car01s/white.lua b/car01s/white.lua index 60826aa..bafd91a 100644 --- a/car01s/white.lua +++ b/car01s/white.lua @@ -1,8 +1,7 @@ - local name = "car_white" local definition = ... -definition.description = "White car" +definition.description = vehicle_mash.S("White car") definition.inventory_image = "inv_car_white.png" definition.wield_image = "inv_car_white.png" definition.textures = {"car_white.png"} diff --git a/car01s/yellow.lua b/car01s/yellow.lua index 71d01b0..1f782b2 100644 --- a/car01s/yellow.lua +++ b/car01s/yellow.lua @@ -1,8 +1,7 @@ - local name = "car_yellow" local definition = ... -definition.description = "Yellow car" +definition.description = vehicle_mash.S("Yellow car") definition.inventory_image = "inv_car_yellow.png" definition.wield_image = "inv_car_yellow.png" definition.textures = {"car_yellow.png"} diff --git a/hovers/hover_blue.lua b/hovers/hover_blue.lua index 3169f89..b3066ef 100644 --- a/hovers/hover_blue.lua +++ b/hovers/hover_blue.lua @@ -1,9 +1,8 @@ - local name = "hover_blue" local definition = ... -definition.description = "Blue hovercraft" +definition.description = vehicle_mash.S("Blue hovercraft") definition.inventory_image = "hovercraft_blue_inv.png" definition.wield_image = "hovercraft_blue_inv.png" definition.textures = {"hovercraft_blue.png"} diff --git a/hovers/hover_green.lua b/hovers/hover_green.lua index 9d88a01..eb3d9a1 100644 --- a/hovers/hover_green.lua +++ b/hovers/hover_green.lua @@ -1,9 +1,8 @@ - local name = "hover_green" local definition = ... -definition.description = "Green hovercraft" +definition.description = vehicle_mash.S("Green hovercraft") definition.inventory_image = "hovercraft_green_inv.png" definition.wield_image = "hovercraft_green_inv.png" definition.textures = {"hovercraft_green.png"} diff --git a/hovers/hover_red.lua b/hovers/hover_red.lua index 8e01122..eae63b1 100644 --- a/hovers/hover_red.lua +++ b/hovers/hover_red.lua @@ -1,9 +1,8 @@ - local name = "hover_red" local definition = ... -definition.description = "Red hovercraft" +definition.description = vehicle_mash.S("Red hovercraft") definition.inventory_image = "hovercraft_red_inv.png" definition.wield_image = "hovercraft_red_inv.png" definition.textures = {"hovercraft_red.png"} diff --git a/hovers/hover_yellow.lua b/hovers/hover_yellow.lua index c626880..8760534 100644 --- a/hovers/hover_yellow.lua +++ b/hovers/hover_yellow.lua @@ -1,9 +1,8 @@ - local name = "hover_yellow" local definition = ... -definition.description = "Yellow hovercraft" +definition.description = vehicle_mash.S("Yellow hovercraft") definition.inventory_image = "hovercraft_yellow_inv.png" definition.wield_image = "hovercraft_yellow_inv.png" definition.textures = {"hovercraft_yellow.png"} diff --git a/init.lua b/init.lua index 1821eee..8c81961 100755 --- a/init.lua +++ b/init.lua @@ -1,4 +1,6 @@ -vehicle_mash = { } +vehicle_mash = { + S = minetest.get_translator(minetest.get_current_modname()) +} -- Fix `player_api` eye height model if desired if minetest.settings:get_bool("vehicle_mash.player_api_fix") == true or minetest.settings:get_bool("vehicle_mash.player_api_fix") == nil diff --git a/locale/template.txt b/locale/template.txt new file mode 100644 index 0000000..e63d3b1 --- /dev/null +++ b/locale/template.txt @@ -0,0 +1,35 @@ +# textdomain: vehicle_mash + +Motor= +Tire= +Wind Shield= +Car battery= +BoatA= +Rowboat= +Black car= +Blue car= +Brown car= +Cyan car= +Dark green car= +Dark grey car= +Green car= +Grey car= +Hot Rod car= +Magenta car= +Nyan Ride car= +Oerkki Bliss car= +Orange car= +Pink car= +Red car= +Road Master car= +Violet car= +White car= +Yellow car= +Blue hovercraft= +Green hovercraft= +Red hovercraft= +Yellow hovercraft= +Blue Mesecar= +Pink Mesecar= +Purple Mesecar= +Yellow Mesecar= diff --git a/locale/vehicle_mash.es.tr b/locale/vehicle_mash.es.tr new file mode 100644 index 0000000..9600dd0 --- /dev/null +++ b/locale/vehicle_mash.es.tr @@ -0,0 +1,35 @@ +# textdomain: vehicle_mash + +Motor=Motor +Tire=Lanta +Wind Shield= +Car battery=Batería de Carro +BoatA=BoteA +Rowboat=Bote de remos +Black car=Carro negro +Blue car=Carro azul +Brown car=Carro cáfe +Cyan car=Carro celeste +Dark green car=Carro verde oscuro +Dark grey car=Carro gris oscuro +Green car=Carro verde +Grey car=Carro gris +Hot Rod car=Carro de carreras +Magenta car=Carro magenta +Nyan Ride car=Carro de Nyan +Oerkki Bliss car=Carro de Oerkki +Orange car=Carro naranja +Pink car=Carro rosa +Red car=Carro rojo +Road Master car=Carro Maestro +Violet car=Carro violeta +White car=Carro blanco +Yellow car=Carro amarillo +Blue hovercraft=Aerodeslizador azul +Green hovercraft=Aerodeslizador verde +Red hovercraft=Aerodeslizador rojo +Yellow hovercraft=Aerodeslizador amarillo +Blue Mesecar=Carro de Mese azul +Pink Mesecar=Carro de Mese Rosa +Purple Mesecar=Carro de Mese Morado +Yellow Mesecar=Carro de Mese amarillo diff --git a/mesecars/mese_blue.lua b/mesecars/mese_blue.lua index 4a8edf7..08d659c 100644 --- a/mesecars/mese_blue.lua +++ b/mesecars/mese_blue.lua @@ -1,8 +1,7 @@ - local name = "mesecar_blue" local definition = ... -definition.description = "Blue Mesecar" +definition.description = vehicle_mash.S("Blue Mesecar") definition.inventory_image = "mesecar_car1front.png" definition.wield_image = "mesecar_car1front.png" definition.textures = { diff --git a/mesecars/mese_pink.lua b/mesecars/mese_pink.lua index 0f27479..d625859 100644 --- a/mesecars/mese_pink.lua +++ b/mesecars/mese_pink.lua @@ -2,7 +2,7 @@ local name = "mesecar_pink" local definition = ... -definition.description = "Pink Mesecar" +definition.description = vehicle_mash.S("Pink Mesecar") definition.inventory_image = "mesecar_car3front.png" definition.wield_image = "mesecar_car3front.png" definition.textures = { diff --git a/mesecars/mese_purple.lua b/mesecars/mese_purple.lua index 7669c92..e926c60 100644 --- a/mesecars/mese_purple.lua +++ b/mesecars/mese_purple.lua @@ -2,7 +2,7 @@ local name = "mesecar_purple" local definition = ... -definition.description = "Purple Mesecar" +definition.description = vehicle_mash.S("Purple Mesecar") definition.inventory_image = "mesecar_car2front.png" definition.wield_image = "mesecar_car2front.png" definition.textures = { diff --git a/mesecars/mese_yellow.lua b/mesecars/mese_yellow.lua index 5a8f2e6..17d3a7d 100644 --- a/mesecars/mese_yellow.lua +++ b/mesecars/mese_yellow.lua @@ -2,7 +2,7 @@ local name = "mesecar_yellow" local definition = ... -definition.description = "Yellow Mesecar" +definition.description = vehicle_mash.S("Yellow Mesecar") definition.inventory_image = "mesecar_car4front.png" definition.wield_image = "mesecar_car4front.png" definition.textures = {