From 9486df8447a695c21edf7cc2ce1f222a3159588e Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 5 Feb 2021 22:07:15 +0100 Subject: mate-about: Use the macro _(String) instead of the macro gettext(Msgid) --- mate-about/mate-about.c | 5 +++-- mate-about/mate-about.h.in | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mate-about/mate-about.c b/mate-about/mate-about.c index 1210571..e53ccab 100644 --- a/mate-about/mate-about.c +++ b/mate-about/mate-about.c @@ -57,7 +57,8 @@ void mate_about_run(void) * This generate a random message. * The comments index must not be more than comments_count - 1 */ - gtk_about_dialog_set_comments(mate_about_dialog, gettext(comments_array[g_random_int_range(0, comments_count - 1)])); + gtk_about_dialog_set_comments (mate_about_dialog, + _(comments_array[g_random_int_range (0, comments_count - 1)])); gtk_about_dialog_set_authors(mate_about_dialog, authors); gtk_about_dialog_set_artists(mate_about_dialog, artists); @@ -89,7 +90,7 @@ int main(int argc, char** argv) if (mate_about_nogui == TRUE) { - printf("%s %s\n", gettext(program_name), version); + g_print ("%s %s\n", _(program_name), version); } else { diff --git a/mate-about/mate-about.h.in b/mate-about/mate-about.h.in index ae3d2a8..c94df03 100644 --- a/mate-about/mate-about.h.in +++ b/mate-about/mate-about.h.in @@ -23,7 +23,6 @@ #include // autogenerated by ./configure #include -#include // for gettext #include const char* program_name = N_("MATE Desktop Environment"); -- cgit v1.2.1