From: Steinar H. Gunderson Date: Sat, 6 Jan 2024 13:44:59 +0000 (+0100) Subject: Remove the last remnants of translation support. X-Git-Tag: 1.1.21~4 X-Git-Url: https://git.sesse.net/?p=plocate;a=commitdiff_plain;h=eeacf2ed3cc1c6559506896410fd86d4f7f852e4 Remove the last remnants of translation support. --- diff --git a/conf.cpp b/conf.cpp index 64d2678..c52287e 100644 --- a/conf.cpp +++ b/conf.cpp @@ -323,7 +323,7 @@ eof: static void help(void) { - printf(_("Usage: updatedb [OPTION]...\n" + printf("Usage: updatedb [OPTION]...\n" "Update a plocate database.\n" "\n" " -f, --add-prunefs FS omit also FS (space-separated)\n" @@ -352,10 +352,10 @@ help(void) " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" - "`%s'.\n"), + "`%s'.\n", DBFILE, UPDATEDB_CONF); - printf(_("\n" - "Report bugs to %s.\n"), + printf("\n" + "Report bugs to %s.\n", PACKAGE_BUGREPORT); } @@ -489,11 +489,11 @@ parse_arguments(int argc, char *argv[]) case 'V': puts("updatedb (" PACKAGE_NAME ") " PACKAGE_VERSION); - puts(_("Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" - "This software is distributed under the GPL v.2.\n" - "\n" - "This program is provided with NO WARRANTY, to the extent " - "permitted by law.")); + puts("Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" + "This software is distributed under the GPL v.2.\n" + "\n" + "This program is provided with NO WARRANTY, to the extent " + "permitted by law."); exit(EXIT_SUCCESS); case 'e': diff --git a/lib.h b/lib.h index 0239dcb..673cfdc 100644 --- a/lib.h +++ b/lib.h @@ -30,8 +30,6 @@ any later version. #include #include -#define _(X) (X) - /* Compare two path names using the database directory order. This is not exactly strcmp () order: "a" < "a.b", so "a/z" < "a.b". */ extern int dir_path_cmp(const std::string &a, const std::string &b);