diff options
author | rbuj <[email protected]> | 2021-02-08 14:54:49 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-02-10 23:58:25 +0100 |
commit | 1d3eb340559c8a593bfc877aa4fef1198565bd1f (patch) | |
tree | 4be2cdff8aba4567c887c16519c44ed72f2921f7 /backend/dvi/mdvi-lib/util.c | |
parent | b9e8446945d36482f968f3356b7dcb14ae9104a5 (diff) | |
download | atril-1d3eb340559c8a593bfc877aa4fef1198565bd1f.tar.bz2 atril-1d3eb340559c8a593bfc877aa4fef1198565bd1f.tar.xz |
dvi: use glib i18n macros
Diffstat (limited to 'backend/dvi/mdvi-lib/util.c')
-rw-r--r-- | backend/dvi/mdvi-lib/util.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/backend/dvi/mdvi-lib/util.c b/backend/dvi/mdvi-lib/util.c index 15b53f13..feb55ee8 100644 --- a/backend/dvi/mdvi-lib/util.c +++ b/backend/dvi/mdvi-lib/util.c @@ -17,6 +17,8 @@ */ #include <config.h> +#include <glib/gi18n-lib.h> + #include <stdio.h> #include <stdlib.h> #include <stdarg.h> @@ -30,14 +32,14 @@ #include "private.h" static char *const messages[] = { - _G("Ooops!"), - _G("Aieeeee!!"), - _G("Ouch!"), - _G("Houston, we have a problem"), - _G("3.. 2.. 1.. BOOM!"), - _G("I'm history"), - _G("I'm going down"), - _G("I smell a rat") + N_("Ooops!"), + N_("Aieeeee!!"), + N_("Ouch!"), + N_("Houston, we have a problem"), + N_("3.. 2.. 1.. BOOM!"), + N_("I'm history"), + N_("I'm going down"), + N_("I smell a rat") }; #define NMSGS (sizeof(messages) / sizeof(char *)) @@ -139,7 +141,7 @@ void mdvi_crash(const char *format, ...) va_start(ap, format); fprintf(stderr, "%s: %s: ", program_name, - gettext(messages[(int)time(NULL) % NMSGS])); + _(messages[(int)time(NULL) % NMSGS])); vfprintf(stderr, format, ap); #ifndef __GNUC__ /* let's be portable */ |