Add support for MT 5 game translation (rebasing ) (#2466)
rebased #2368
This commit is contained in:
parent
d99a176b69
commit
bb9279ccb8
43 changed files with 632 additions and 433 deletions
|
@ -1,3 +1,7 @@
|
|||
-- farming/api.lua
|
||||
|
||||
-- support for MT game translation.
|
||||
local S = farming.get_translator
|
||||
|
||||
-- Wear out hoes, place soil
|
||||
-- TODO Ignore group:flower
|
||||
|
@ -78,7 +82,7 @@ farming.register_hoe = function(name, def)
|
|||
end
|
||||
-- Check def table
|
||||
if def.description == nil then
|
||||
def.description = "Hoe"
|
||||
def.description = S("Hoe")
|
||||
end
|
||||
if def.inventory_image == nil then
|
||||
def.inventory_image = "unknown_item.png"
|
||||
|
@ -251,7 +255,7 @@ farming.register_plant = function(name, def)
|
|||
|
||||
-- Check def table
|
||||
if not def.description then
|
||||
def.description = "Seed"
|
||||
def.description = S("Seed")
|
||||
end
|
||||
if not def.inventory_image then
|
||||
def.inventory_image = "unknown_item.png"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue