]> git.lizzy.rs Git - minetest.git/blob - builtin/mainmenu/tab_credits.lua
Various grammar improvements (#7769)
[minetest.git] / builtin / mainmenu / tab_credits.lua
1 --Minetest
2 --Copyright (C) 2013 sapier
3 --
4 --This program is free software; you can redistribute it and/or modify
5 --it under the terms of the GNU Lesser General Public License as published by
6 --the Free Software Foundation; either version 2.1 of the License, or
7 --(at your option) any later version.
8 --
9 --This program is distributed in the hope that it will be useful,
10 --but WITHOUT ANY WARRANTY; without even the implied warranty of
11 --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 --GNU Lesser General Public License for more details.
13 --
14 --You should have received a copy of the GNU Lesser General Public License along
15 --with this program; if not, write to the Free Software Foundation, Inc.,
16 --51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
18 --------------------------------------------------------------------------------
19
20 local core_developers = {
21         "Perttu Ahola (celeron55) <celeron55@gmail.com>",
22         "sfan5 <sfan5@live.de>",
23         "ShadowNinja <shadowninja@minetest.net>",
24         "Nathanaël Courant (Nore/Ekdohibs) <nore@mesecons.net>",
25         "Loic Blot (nerzhul/nrz) <loic.blot@unix-experience.fr>",
26         "paramat",
27         "Zeno",
28         "Auke Kok (sofar) <sofar@foo-projects.org>",
29         "rubenwardy <rw@rubenwardy.com>",
30         "Krock/SmallJoker <mk939@ymail.com>",
31 }
32
33 local active_contributors = {
34         "red-001 <red-001@outlook.ie> [CSM & Menu fixes]",
35         "Dániel Juhász (juhdanad) <juhdanad@gmail.com> [Audiovisuals: lighting]",
36         "numberZero [Audiovisuals: meshgen]",
37         "Lars Hofhansl <larsh@apache.org> [Occulusion culling, fixes]",
38         "Jean-Patrick G (kilbith) <jeanpatrick.guerrero@gmail.com> [Audiovisuals]",
39         "Vincent Glize (Dumbeldor) <vincent.glize@live.fr> [CSM]",
40         "bigfoot547 [CSM]",
41         "Rogier <rogier777@gmail.com> [Fixes]",
42         "Wuzzy [Audiovisuals]",
43         "Shara/Ezhh [Settings]",
44 }
45
46 local previous_core_developers = {
47         "BlockMen",
48         "Maciej Kasatkin (RealBadAngel) [RIP]",
49         "Lisa Milne (darkrose) <lisa@ltmnet.com>",
50         "proller",
51         "Ilya Zhuravlev (xyz) <xyz@minetest.net>",
52         "PilzAdam <pilzadam@minetest.net>",
53         "est31 <MTest31@outlook.com>",
54         "kahrl <kahrl@gmx.net>",
55         "Ryan Kwolek (kwolekr) <kwolekr@minetest.net>",
56         "sapier",
57 }
58
59 local previous_contributors = {
60         "Gregory Currie (gregorycu) [optimisation]",
61         "Diego Martínez (kaeza) <kaeza@users.sf.net>",
62         "T4im [Profiler]",
63         "TeTpaAka [Hand overriding, nametag colors]",
64         "HybridDog [Fixes]",
65         "Duane Robertson <duane@duanerobertson.com> [MGValleys]",
66         "neoascetic [OS X Fixes]",
67         "TriBlade9 <triblade9@mail.com> [Audiovisuals]",
68         "Jurgen Doser (doserj) <jurgen.doser@gmail.com> [Fixes]",
69         "MirceaKitsune <mirceakitsune@gmail.com> [Audiovisuals]",
70         "Guiseppe Bilotta (Oblomov) <guiseppe.bilotta@gmail.com> [Fixes]",
71         "matttpt <matttpt@gmail.com> [Fixes]",
72         "Nils Dagsson Moskopp (erlehmann) <nils@dieweltistgarnichtso.net> [Minetest Logo]",
73         "Jeija <jeija@mesecons.net> [HTTP, particles]",
74 }
75
76 local function buildCreditList(source)
77         local ret = {}
78         for i = 1, #source do
79                 ret[i] = core.formspec_escape(source[i])
80         end
81         return table.concat(ret, ",,")
82 end
83
84 return {
85         name = "credits",
86         caption = fgettext("Credits"),
87         cbf_formspec = function(tabview, name, tabdata)
88                 local logofile = defaulttexturedir .. "logo.png"
89                 local version = core.get_version()
90                 return "image[0.5,1;" .. core.formspec_escape(logofile) .. "]" ..
91                         "label[0.5,3.2;" .. version.project .. " " .. version.string .. "]" ..
92                         "label[0.5,3.5;http://minetest.net]" ..
93                         "tablecolumns[color;text]" ..
94                         "tableoptions[background=#00000000;highlight=#00000000;border=false]" ..
95                         "table[3.5,-0.25;8.5,6.05;list_credits;" ..
96                         "#FFFF00," .. fgettext("Core Developers") .. ",," ..
97                         buildCreditList(core_developers) .. ",,," ..
98                         "#FFFF00," .. fgettext("Active Contributors") .. ",," ..
99                         buildCreditList(active_contributors) .. ",,," ..
100                         "#FFFF00," .. fgettext("Previous Core Developers") ..",," ..
101                         buildCreditList(previous_core_developers) .. ",,," ..
102                         "#FFFF00," .. fgettext("Previous Contributors") .. ",," ..
103                         buildCreditList(previous_contributors) .. "," ..
104                         ";1]"
105         end
106 }