Banshee.Gui.Dialogs.AboutDialog.AboutDialog C# (CSharp) Method

AboutDialog() public method

public AboutDialog ( ) : System
return System
        public AboutDialog() : base()
        {
            // build authors page
            List<string> authors = new List<string> ();
            authors.Add (Catalog.GetString ("Maintainers"));
            authors.Add (String.Empty);

            foreach (ProductAuthor author in ProductInformation.Authors) {
                authors.Add (String.Format("    {0}", author.Name));
            }

            authors.Add (String.Empty);
            authors.Add (Catalog.GetString("Contributors"));
            authors.Add (String.Empty);

            foreach (string author in ProductInformation.Contributors) {
                authors.Add (String.Format("    {0}", author));
            }

            authors.Add (String.Empty);

            // build translators page
            StringBuilder translation_credits = new StringBuilder ();

            foreach (ProductTranslation translation in ProductInformation.Translations) {
                translation_credits.Append (String.Format ("{0}\n", translation.LanguageName));
                foreach (string person in translation.Translators) {
                    translation_credits.Append (String.Format ("    {0}\n", person));
                }
                translation_credits.Append ("\n");
            }

            SetUrlHook (delegate (Gtk.AboutDialog dialog, string link) {
                Banshee.Web.Browser.Open (link);
            });

            // TODO: We should really use ProgramName in the future rather
            // than plain Name, since it's been depreciated. We can't do that
            // yet though since it breaks stuff for other people.
            Name = "Banshee";
            Logo = Gdk.Pixbuf.LoadFromResource (ApplicationContext.Debugging ? /*"jcastro.png"*/ "banshee-logo.png" : "banshee-logo.png");
            Version = Banshee.ServiceStack.Application.DisplayVersion == Banshee.ServiceStack.Application.Version
                ? Banshee.ServiceStack.Application.DisplayVersion
                : String.Format ("{0} ({1})",
                    Banshee.ServiceStack.Application.DisplayVersion,
                    Banshee.ServiceStack.Application.Version);
            Comments = Catalog.GetString ("Extraordinary Multimedia Management and Playback");
            Copyright = String.Format (Catalog.GetString (
                "Copyright \u00a9 2005\u2013{0} Novell, Inc.\n" +
                "Copyright \u00a9 2005\u2013{0} Others\n" +
                "Copyright \u00a9 2005 Aaron Bockover"
            ), "2011");

            Website = "http://banshee.fm/";
            WebsiteLabel = Catalog.GetString ("Banshee Website");

            Authors = authors.ToArray ();
            Artists = ProductInformation.Artists;
            TranslatorCredits = translation_credits.ToString ();

            License = ProductInformation.License;
            WrapLicense = true;
            Response += OnResponse;
        }
    }