1function ware_helptext(tribe) 2 local helptext = { 3 -- TRANSLATORS: Helptext for a ware: Wheat 4 default = pgettext("ware", "Wheat is essential for survival."), 5 -- TRANSLATORS: Helptext for a ware: Wheat 6 barbarians = pgettext("barbarians_ware", "Wheat is produced by farms and consumed by bakeries, micro breweries and breweries. Cattle farms also need to be supplied with wheat."), 7 -- TRANSLATORS: Helptext for a ware: Wheat 8 empire = _"Wheat is produced by farms and used by mills and breweries. Donkey farms, sheep farms and piggeries also need to be supplied with wheat." 9 } 10 local result = "" 11 if tribe then 12 result = helptext[tribe] 13 else 14 result = helptext["default"] 15 end 16 if (result == nil) then result = "" end 17 return result 18end 19