Skip to content

Commit e0efbab

Browse files
rbujraveit65
authored andcommitted
Make translatable the copyright in about dialog
1 parent 086ca8b commit e0efbab

File tree

8 files changed

+26
-46
lines changed

8 files changed

+26
-46
lines changed

applets/clock/clock.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3291,15 +3291,12 @@ static void display_about_dialog(GtkAction* action, ClockData* cd)
32913291
NULL
32923292
};
32933293

3294-
char copyright[] = \
3295-
"Copyright \xc2\xa9 2012-2018 MATE developers\n"
3296-
"Copyright \xc2\xa9 1998-2004 Free Software Foundation, Inc.";
3297-
32983294
gtk_show_about_dialog(NULL,
32993295
"program-name", _("Clock"),
33003296
"authors", authors,
33013297
"comments", _("The Clock displays the current time and date"),
3302-
"copyright", copyright,
3298+
"copyright", _("Copyright \xc2\xa9 1998-2004 Free Software Foundation, Inc.\n"
3299+
"Copyright \xc2\xa9 2012-2019 MATE developers"),
33033300
"documenters", documenters,
33043301
"logo-icon-name", CLOCK_ICON,
33053302
"translator-credits", _("translator-credits"),

applets/fish/fish.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,6 @@ static void display_about_dialog(GtkAction* action, FishApplet* fish)
547547

548548
char* authors[3];
549549
char* descr;
550-
char copyright[] = \
551-
"Copyright \xc2\xa9 1998-2002 Free Software Foundation, Inc.\n"
552-
"Copyright \xc2\xa9 2012-2018 MATE developers";
553550

554551
authors[0] = g_strdup_printf(author_format, fish->name);
555552
authors[1] = _("(with minor help from George)");
@@ -561,7 +558,9 @@ static void display_about_dialog(GtkAction* action, FishApplet* fish)
561558
"program-name", _("Fish"),
562559
"authors", authors,
563560
"comments", descr,
564-
"copyright", copyright,
561+
"copyright", _("Copyright \xc2\xa9 1998-2002 Free Software Foundation, Inc.\n"
562+
"Copyright \xc2\xa9 2002-2005 Vincent Untz\n"
563+
"Copyright \xc2\xa9 2012-2019 MATE developers"),
565564
"documenters", documenters,
566565
"logo-icon-name", FISH_ICON,
567566
"translator-credits", _("translator-credits"),

applets/notification_area/main.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -272,17 +272,14 @@ static void about_cb(GtkAction* action, NaTrayApplet* applet)
272272
NULL
273273
};
274274

275-
const char copyright[] = \
276-
"Copyright \xc2\xa9 2002 Red Hat, Inc.\n"
277-
"Copyright \xc2\xa9 2003-2006 Vincent Untz\n"
278-
"Copyright \xc2\xa9 2011 Perberos\n"
279-
"Copyright \xc2\xa9 2012-2018 MATE developers";
280-
281275
gtk_show_about_dialog(NULL,
282276
"program-name", _("Notification Area"),
283277
"authors", authors,
284278
//"comments", _(comments),
285-
"copyright", copyright,
279+
"copyright", _("Copyright \xc2\xa9 2002 Red Hat, Inc.\n"
280+
"Copyright \xc2\xa9 2003-2006 Vincent Untz\n"
281+
"Copyright \xc2\xa9 2011 Perberos\n"
282+
"Copyright \xc2\xa9 2012-2019 MATE developers"),
286283
"documenters", documenters,
287284
"logo-icon-name", NOTIFICATION_AREA_ICON,
288285
"translator-credits", _("translator-credits"),

applets/wncklet/showdesktop.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -494,18 +494,13 @@ static void display_about_dialog(GtkAction* action, ShowDesktopData* sdd)
494494
NULL
495495
};
496496

497-
/* Translator credits */
498-
//const char* translator_credits = _("translator-credits");
499-
char copyright[] = \
500-
"Copyright \xc2\xa9 2012-2018 MATE developers\n"
501-
"Copyright \xc2\xa9 2011 Perberos\n"
502-
"Copyright \xc2\xa9 2002 Red Hat, Inc.";
503-
504497
gtk_show_about_dialog(GTK_WINDOW(sdd->applet),
505498
"program-name", _("Show Desktop Button"),
506499
"authors", authors,
507500
"comments", _("This button lets you hide all windows and show the desktop."),
508-
"copyright", copyright,
501+
"copyright", _("Copyright \xc2\xa9 2002 Red Hat, Inc.\n"
502+
"Copyright \xc2\xa9 2011 Perberos\n"
503+
"Copyright \xc2\xa9 2012-2019 MATE developers"),
509504
"documenters", documenters,
510505
"icon-name", SHOW_DESKTOP_ICON,
511506
"logo-icon-name", SHOW_DESKTOP_ICON,

applets/wncklet/window-list.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -557,16 +557,13 @@ static void display_about_dialog(GtkAction* action, TasklistData* tasklist)
557557
NULL
558558
};
559559

560-
char copyright[] = \
561-
"Copyright \xc2\xa9 2012-2018 MATE developers\n"
562-
"Copyright \xc2\xa9 2011 Perberos\n"
563-
"Copyright \xc2\xa9 2002 Red Hat, Inc.";
564-
565560
gtk_show_about_dialog(GTK_WINDOW(tasklist->applet),
566561
"program-name", _("Window List"),
567562
"authors", authors,
568563
"comments", _("The Window List shows a list of all windows in a set of buttons and lets you browse them."),
569-
"copyright", copyright,
564+
"copyright", _("Copyright \xc2\xa9 2002 Red Hat, Inc.\n"
565+
"Copyright \xc2\xa9 2011 Perberos\n"
566+
"Copyright \xc2\xa9 2012-2019 MATE developers"),
570567
"documenters", documenters,
571568
"icon-name", WINDOW_LIST_ICON,
572569
"logo-icon-name", WINDOW_LIST_ICON,

applets/wncklet/window-menu.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,15 @@ static void window_menu_about(GtkAction* action, WindowMenu* window_menu)
7272
NULL
7373
};
7474

75-
char copyright[] = \
76-
"Copyright \xc2\xa9 2012-2018 MATE developers\n"
77-
"Copyright \xc2\xa9 2011 Perberos\n"
78-
"Copyright \xc2\xa9 2003 Sun Microsystems, Inc.\n"
79-
"Copyright \xc2\xa9 2001 Free Software Foundation, Inc.\n"
80-
"Copyright \xc2\xa9 2000 Helix Code, Inc.";
81-
8275
gtk_show_about_dialog(GTK_WINDOW(window_menu->applet),
8376
"program-name", _("Window Selector"),
8477
"authors", authors,
8578
"comments", _("The Window Selector shows a list of all windows in a menu and lets you browse them."),
86-
"copyright", copyright,
79+
"copyright", _("Copyright \xc2\xa9 2000 Helix Code, Inc.\n"
80+
"Copyright \xc2\xa9 2001 Free Software Foundation, Inc.\n"
81+
"Copyright \xc2\xa9 2003 Sun Microsystems, Inc.\n"
82+
"Copyright \xc2\xa9 2011 Perberos\n"
83+
"Copyright \xc2\xa9 2012-2019 MATE developers"),
8784
"documenters", documenters,
8885
"icon-name", WINDOW_MENU_ICON,
8986
"logo-icon-name", WINDOW_MENU_ICON,

applets/wncklet/workspace-switcher.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -630,16 +630,13 @@ static void display_about_dialog(GtkAction* action, PagerData* pager)
630630
NULL
631631
};
632632

633-
char copyright[] = \
634-
"Copyright \xc2\xa9 2012-2018 MATE developers\n"
635-
"Copyright \xc2\xa9 2011 Perberos\n"
636-
"Copyright \xc2\xa9 2002 Red Hat, Inc.";
637-
638633
gtk_show_about_dialog(GTK_WINDOW(pager->applet),
639634
"program-name", _("Workspace Switcher"),
640635
"authors", authors,
641636
"comments", _("The Workspace Switcher shows you a small version of your workspaces that lets you manage your windows."),
642-
"copyright", copyright,
637+
"copyright", _("Copyright \xc2\xa9 2002 Red Hat, Inc.\n"
638+
"Copyright \xc2\xa9 2011 Perberos\n"
639+
"Copyright \xc2\xa9 2012-2019 MATE developers"),
643640
"documenters", documenters,
644641
"icon-name", WORKSPACE_SWITCHER_ICON,
645642
"logo-icon-name", WORKSPACE_SWITCHER_ICON,

mate-panel/panel-context-menu.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ panel_context_menu_show_about_dialog (GtkWidget *menuitem)
113113
g_object_set (about,
114114
"program-name", _("The MATE Panel"),
115115
"version", VERSION,
116-
"copyright", "Copyright \xc2\xa9 1997-2003 Free Software Foundation, Inc.\n"
117-
"Copyright \xc2\xa9 2011-2018 MATE Developers.",
116+
"copyright", _("Copyright \xc2\xa9 1997-2003 Free Software Foundation, Inc.\n"
117+
"Copyright \xc2\xa9 2004 Vincent Untz\n"
118+
"Copyright \xc2\xa9 2011-2019 MATE developers"),
118119
"comments", _("This program is responsible for launching other "
119120
"applications and provides useful utilities."),
120121
"authors", authors,

0 commit comments

Comments
 (0)