[hyena] Add an ApplicationName property to ApplicationContext
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] Add an ApplicationName property to ApplicationContext
- Date: Tue, 6 Jul 2010 20:38:59 +0000 (UTC)
commit 493dc316b3e4c1a09a11a6f578d2e1d10194b36a
Author: Paul Lange <palango gmx de>
Date: Thu Jul 1 14:20:52 2010 +0200
Add an ApplicationName property to ApplicationContext
https://bugzilla.gnome.org/show_bug.cgi?id=622352
Signed-off-by: Gabriel Burt <gabriel burt gmail com>
src/Hyena.Gui/Hyena.Gui.Dialogs/ExceptionDialog.cs | 4 +++-
src/Hyena/Hyena/ApplicationContext.cs | 2 ++
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/Hyena.Gui/Hyena.Gui.Dialogs/ExceptionDialog.cs b/src/Hyena.Gui/Hyena.Gui.Dialogs/ExceptionDialog.cs
index ad95a25..7150a4f 100644
--- a/src/Hyena.Gui/Hyena.Gui.Dialogs/ExceptionDialog.cs
+++ b/src/Hyena.Gui/Hyena.Gui.Dialogs/ExceptionDialog.cs
@@ -49,7 +49,9 @@ namespace Hyena.Gui.Dialogs
HasSeparator = false;
BorderWidth = 5;
Resizable = false;
- Title = Catalog.GetString("Banshee Encountered a Fatal Error");
+ //Translators: {0} is substituted with the application name
+ Title = String.Format(Catalog.GetString("{0} Encountered a Fatal Error"),
+ ApplicationContext.ApplicationName);
VBox.Spacing = 12;
ActionArea.Layout = ButtonBoxStyle.End;
diff --git a/src/Hyena/Hyena/ApplicationContext.cs b/src/Hyena/Hyena/ApplicationContext.cs
index c215028..77dfc17 100644
--- a/src/Hyena/Hyena/ApplicationContext.cs
+++ b/src/Hyena/Hyena/ApplicationContext.cs
@@ -51,6 +51,8 @@ namespace Hyena
get { return command_line; }
}
+ public static string ApplicationName { get; set; }
+
private static Layout command_line_layout;
public static Layout CommandLineLayout {
get { return command_line_layout; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]