/*
* Copyright (c) 2017-2018 Carlos Suárez (https://gitlab.com/bitseater)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; If not, see <http://www.gnu.org/licenses/>.
*
* Authored by: Carlos Suárez <bitseater@gmail.com>
*/
namespace Meteo.Widgets {

    public class About : Gtk.AboutDialog {

        public About (Meteo.MainWindow window) {
            transient_for = window;
            modal = true;
            destroy_with_parent = true;

            artists = {"Carlos Suárez <bitseater@gmail.com>", "Paulo Galardi <lainsce@airmail.cc>"};
            authors = {"Carlos Suárez <bitseater@gmail.com>"};
            comments = _("A forecast application with OpenWeatherMap API");
            copyright = "Copyright \xc2\xa9 Carlos Suárez - 2017-2021";
            documenters = authors;
            license_type = Gtk.License.GPL_3_0;
            logo_icon_name = Constants.ICON_NAME;
            program_name = Constants.APP_NAME;
            translator_credits = "(es, en) Carlos Suárez <bitseater@gmail.com>
                                (en) J0Ar <https://github.com/J0Ar>
                                (pt) btd1337 <helder.bertoldo@gmail.com>
                                (ru) Andrey Kultyapov <camellan@yandex.ru>
                                (ca) Eudald Gubert Roldan <eudaldgr@posteo.net>
                                (lt) welaq <https://github.com/welaq>
                                (fr) ArthurS1 <https://github.com/ArthurS1>
                                (de) BeatriceFendt <https://github.com/BeatriceFendt>
                                (sr) Pavle Radosavljević <https://gitlab.com/PavleR>
                                (nb) Harald H. <https://gitlab.com/haarek>
                                (nl) Koen Roggemans <https://gitlab.com/koenro>
                                (tr) Sabri Ünal <libreajans@gmail.com>";
            version = Constants.VERSION;
            website = "https://gitlab.com/bitseater/meteo";
            website_label = _("website");

            string[] colaborators = {"Andrey Kultyapov <camellan@yandex.ru>", "Mark Wagie <https://gitlab.com/yochananmarqos>"};
            string[] special_thx = {"Bilal Elmoussaoui <bil.elmoussaoui@gmail.com>"};
            string[] based = {"Sam Hewitt <sam@snwh.org>"};
            string[] iconers = {"Lukas Bischoff <http://www.twitter.com/artill>"};
            add_credit_section (_("Collaborators"), colaborators);
            add_credit_section (_("Special Thanks to"), special_thx);
            add_credit_section (_("Based in a mockup by"), based);
            add_credit_section (_("Some icons by"), iconers);

            response.connect (() => {
                    destroy ();
            });
        }
    }
}
