From e0efbab6d4a97f3d658c2f4a5f08bbae2a969349 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 15 Feb 2019 11:50:03 +0100 Subject: Make translatable the copyright in about dialog --- applets/wncklet/showdesktop.c | 11 +++-------- applets/wncklet/window-list.c | 9 +++------ applets/wncklet/window-menu.c | 13 +++++-------- applets/wncklet/workspace-switcher.c | 9 +++------ 4 files changed, 14 insertions(+), 28 deletions(-) (limited to 'applets/wncklet') diff --git a/applets/wncklet/showdesktop.c b/applets/wncklet/showdesktop.c index 632e2e82..78dd2778 100644 --- a/applets/wncklet/showdesktop.c +++ b/applets/wncklet/showdesktop.c @@ -494,18 +494,13 @@ static void display_about_dialog(GtkAction* action, ShowDesktopData* sdd) NULL }; - /* Translator credits */ - //const char* translator_credits = _("translator-credits"); - char copyright[] = \ - "Copyright \xc2\xa9 2012-2018 MATE developers\n" - "Copyright \xc2\xa9 2011 Perberos\n" - "Copyright \xc2\xa9 2002 Red Hat, Inc."; - gtk_show_about_dialog(GTK_WINDOW(sdd->applet), "program-name", _("Show Desktop Button"), "authors", authors, "comments", _("This button lets you hide all windows and show the desktop."), - "copyright", copyright, + "copyright", _("Copyright \xc2\xa9 2002 Red Hat, Inc.\n" + "Copyright \xc2\xa9 2011 Perberos\n" + "Copyright \xc2\xa9 2012-2019 MATE developers"), "documenters", documenters, "icon-name", SHOW_DESKTOP_ICON, "logo-icon-name", SHOW_DESKTOP_ICON, diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c index b7097ee6..2a5ea4ba 100644 --- a/applets/wncklet/window-list.c +++ b/applets/wncklet/window-list.c @@ -557,16 +557,13 @@ static void display_about_dialog(GtkAction* action, TasklistData* tasklist) NULL }; - char copyright[] = \ - "Copyright \xc2\xa9 2012-2018 MATE developers\n" - "Copyright \xc2\xa9 2011 Perberos\n" - "Copyright \xc2\xa9 2002 Red Hat, Inc."; - gtk_show_about_dialog(GTK_WINDOW(tasklist->applet), "program-name", _("Window List"), "authors", authors, "comments", _("The Window List shows a list of all windows in a set of buttons and lets you browse them."), - "copyright", copyright, + "copyright", _("Copyright \xc2\xa9 2002 Red Hat, Inc.\n" + "Copyright \xc2\xa9 2011 Perberos\n" + "Copyright \xc2\xa9 2012-2019 MATE developers"), "documenters", documenters, "icon-name", WINDOW_LIST_ICON, "logo-icon-name", WINDOW_LIST_ICON, diff --git a/applets/wncklet/window-menu.c b/applets/wncklet/window-menu.c index de8b7928..fc10cb2a 100644 --- a/applets/wncklet/window-menu.c +++ b/applets/wncklet/window-menu.c @@ -72,18 +72,15 @@ static void window_menu_about(GtkAction* action, WindowMenu* window_menu) NULL }; - char copyright[] = \ - "Copyright \xc2\xa9 2012-2018 MATE developers\n" - "Copyright \xc2\xa9 2011 Perberos\n" - "Copyright \xc2\xa9 2003 Sun Microsystems, Inc.\n" - "Copyright \xc2\xa9 2001 Free Software Foundation, Inc.\n" - "Copyright \xc2\xa9 2000 Helix Code, Inc."; - gtk_show_about_dialog(GTK_WINDOW(window_menu->applet), "program-name", _("Window Selector"), "authors", authors, "comments", _("The Window Selector shows a list of all windows in a menu and lets you browse them."), - "copyright", copyright, + "copyright", _("Copyright \xc2\xa9 2000 Helix Code, Inc.\n" + "Copyright \xc2\xa9 2001 Free Software Foundation, Inc.\n" + "Copyright \xc2\xa9 2003 Sun Microsystems, Inc.\n" + "Copyright \xc2\xa9 2011 Perberos\n" + "Copyright \xc2\xa9 2012-2019 MATE developers"), "documenters", documenters, "icon-name", WINDOW_MENU_ICON, "logo-icon-name", WINDOW_MENU_ICON, diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c index 13f18bd9..d3475e0d 100644 --- a/applets/wncklet/workspace-switcher.c +++ b/applets/wncklet/workspace-switcher.c @@ -630,16 +630,13 @@ static void display_about_dialog(GtkAction* action, PagerData* pager) NULL }; - char copyright[] = \ - "Copyright \xc2\xa9 2012-2018 MATE developers\n" - "Copyright \xc2\xa9 2011 Perberos\n" - "Copyright \xc2\xa9 2002 Red Hat, Inc."; - gtk_show_about_dialog(GTK_WINDOW(pager->applet), "program-name", _("Workspace Switcher"), "authors", authors, "comments", _("The Workspace Switcher shows you a small version of your workspaces that lets you manage your windows."), - "copyright", copyright, + "copyright", _("Copyright \xc2\xa9 2002 Red Hat, Inc.\n" + "Copyright \xc2\xa9 2011 Perberos\n" + "Copyright \xc2\xa9 2012-2019 MATE developers"), "documenters", documenters, "icon-name", WORKSPACE_SWITCHER_ICON, "logo-icon-name", WORKSPACE_SWITCHER_ICON, -- cgit v1.2.1