diff options
author | rbuj <[email protected]> | 2021-02-05 22:07:15 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-02-27 22:54:32 +0100 |
commit | 9486df8447a695c21edf7cc2ce1f222a3159588e (patch) | |
tree | 25b1a511002a30ccf05c3dc84f8bd880bc00691a | |
parent | cf587626632dbd9e7b00b58f23064a3f75d2bfd7 (diff) | |
download | mate-desktop-9486df8447a695c21edf7cc2ce1f222a3159588e.tar.bz2 mate-desktop-9486df8447a695c21edf7cc2ce1f222a3159588e.tar.xz |
mate-about: Use the macro _(String) instead of the macro gettext(Msgid)
-rw-r--r-- | mate-about/mate-about.c | 5 | ||||
-rw-r--r-- | 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 <config.h> // autogenerated by ./configure #include <gtk/gtk.h> -#include <libintl.h> // for gettext #include <glib/gi18n.h> const char* program_name = N_("MATE Desktop Environment"); |