1function ware_helptext(tribe) 2 local helptext = { 3 -- TRANSLATORS: Helptext for a ware: Meal 4 barbarians = pgettext("barbarians_ware", "A meal is made out of pitta bread, strong beer and fish/meat in a big inn. This substantial food is exactly what workers in a deeper mine need."), 5 -- TRANSLATORS: Helptext for a ware: Meal 6 empire = pgettext("empire_ware", "A real meal is made in inns out of bread and fish/meat. It satisfies the needs of miners in deep mines."), 7 -- TRANSLATORS: Helptext for a ware: Meal 8 frisians = pgettext("frisians_ware", "A meal is made out of honey bread and beer and either smoked fish or meat. It is consumed by miners in deep mines.") 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