1function ware_helptext(tribe)
2   local helptext = {
3      -- TRANSLATORS: Helptext for a ware: Granite
4      default = pgettext("ware", "Granite is a basic building material."),
5      -- TRANSLATORS: Helptext for a ware: Granite
6      atlanteans = pgettext("atlanteans_ware", "The Atlanteans produce granite blocks in quarries and crystal mines."),
7      -- TRANSLATORS: Helptext for a ware: Granite
8      barbarians = pgettext("barbarians_ware", "The Barbarians produce granite blocks in quarries and granite mines."),
9      -- TRANSLATORS: Helptext for a ware: Granite
10      frisians = pgettext("frisians_ware", "The Frisians produce granite blocks in quarries and rock mines. They can be refined in a brick kiln."),
11      -- TRANSLATORS: Helptext for a ware: Granite
12      empire = pgettext("empire_ware", "The Empire produces granite blocks in quarries and marble mines.")
13   }
14   local result = ""
15   if tribe then
16      result = helptext[tribe]
17   else
18      result = helptext["default"]
19   end
20   if (result == nil) then result = "" end
21   return result
22end
23