~ubuntu-branches/ubuntu/lucid/gnome-subtitles/lucid

« back to all changes in this revision

Viewing changes to src/GnomeSubtitles/Dialogs/FileOpenErrorDialog.cs

  • Committer: Bazaar Package Importer
  • Author(s): Tiago Bortoletto Vaz
  • Date: 2007-12-03 20:52:52 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071203205252-2y6uuv4gcw9mi9n5
Tags: 0.7-1
* New upstream release;
* Add libxml-parser-perl to Build-Depends-Indep. Thanks to Lucas Nussbaum.
  (Closes: #445799);
* Fixes manpage issue with dpatch

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        private string primaryTextStart = Catalog.GetString("Could not open the file");
30
30
        private string actionLabel = Catalog.GetString("Open another file"); 
31
31
 
 
32
        public FileOpenErrorDialog (Uri uri, Exception exception) : this(uri.LocalPath, exception) {
 
33
        }
 
34
 
32
35
        public FileOpenErrorDialog (string filename, Exception exception) {
33
36
                Console.Error.WriteLine("File open error:\n" + exception);
34
37
 
61
64
                string text = SecondaryTextFromException(exception);
62
65
                if (text != String.Empty)
63
66
                        return text;
 
67
                else if (exception is UriFormatException)
 
68
                        return Catalog.GetString("The file path appears to be invalid.");
64
69
                else
65
70
                        return GetGeneralExceptionErrorMessage(exception);
66
71
        }