From 5ade9084b31864d53695fafe77fbde6e960d2bc9 Mon Sep 17 00:00:00 2001 From: Changwoo Ryu Date: Thu, 10 Jan 2008 16:17:45 +0000 Subject: From shell/ChangeLog 2008-01-11 Changwoo Ryu ** Fix for bug #508282 * e-shell-window.c (switch_view): * e-shell-view.c (impl_ShellView_setTitle): Mark the window title for translation. From po/ChangeLog 2008-01-11 Changwoo Ryu ** Part of fix for bug #508282 * POTFILES.in: Add new file shell/e-shell-view.c svn path=/trunk/; revision=34792 --- shell/ChangeLog | 8 ++++++++ shell/e-shell-view.c | 4 +++- shell/e-shell-window.c | 4 +++- 3 files changed, 14 insertions(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index 51c67ce7c6..6c2999026a 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,11 @@ +2008-01-11 Changwoo Ryu + + ** Fix for bug #508282 + + * e-shell-window.c (switch_view): + * e-shell-view.c (impl_ShellView_setTitle): Mark the window title + for translation. + 2008-01-07 Matthew Barnes * e-shell-window-commands.c: diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 9e4f66b0d0..adab0ed60f 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -44,7 +44,9 @@ static void impl_ShellView_setTitle(PortableServer_Servant _servant, const CORBA_char *id, const CORBA_char * title, CORBA_Environment * ev) { EShellView *esw = (EShellView *)bonobo_object_from_servant(_servant); - char *tmp = g_strdup_printf("%s - Evolution", title); + /* To translators: This is the window title and %s is the + component name. Most translators will want to keep it as is. */ + char *tmp = g_strdup_printf(_("%s - Evolution"), title); e_shell_window_set_title(esw->window, id, tmp); g_free(tmp); diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c index fa5e1b4c53..7b1c2b2006 100644 --- a/shell/e-shell-window.c +++ b/shell/e-shell-window.c @@ -336,7 +336,9 @@ switch_view (EShellWindow *window, ComponentView *component_view) } if (component_view->title == NULL) { - title = g_strdup_printf ("%s - Evolution", info->button_label); + /* To translators: This is the window title and %s is the + component name. Most translators will want to keep it as is. */ + title = g_strdup_printf (_("%s - Evolution"), info->button_label); gtk_window_set_title (GTK_WINDOW (window), title); g_free (title); } else -- cgit