1
1
mirror of http://git.sesse.net/plocate synced 2025-10-06 02:32:41 +02:00

Remove the last remnants of translation support.

This commit is contained in:
Steinar H. Gunderson
2024-01-06 14:44:59 +01:00
parent ca5b4e7df2
commit eeacf2ed3c
2 changed files with 9 additions and 11 deletions

View File

@@ -323,7 +323,7 @@ eof:
static void static void
help(void) help(void)
{ {
printf(_("Usage: updatedb [OPTION]...\n" printf("Usage: updatedb [OPTION]...\n"
"Update a plocate database.\n" "Update a plocate database.\n"
"\n" "\n"
" -f, --add-prunefs FS omit also FS (space-separated)\n" " -f, --add-prunefs FS omit also FS (space-separated)\n"
@@ -352,10 +352,10 @@ help(void)
" -V, --version print version information\n" " -V, --version print version information\n"
"\n" "\n"
"The configuration defaults to values read from\n" "The configuration defaults to values read from\n"
"`%s'.\n"), "`%s'.\n",
DBFILE, UPDATEDB_CONF); DBFILE, UPDATEDB_CONF);
printf(_("\n" printf("\n"
"Report bugs to %s.\n"), "Report bugs to %s.\n",
PACKAGE_BUGREPORT); PACKAGE_BUGREPORT);
} }
@@ -489,11 +489,11 @@ parse_arguments(int argc, char *argv[])
case 'V': case 'V':
puts("updatedb (" PACKAGE_NAME ") " PACKAGE_VERSION); puts("updatedb (" PACKAGE_NAME ") " PACKAGE_VERSION);
puts(_("Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" puts("Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n"
"This software is distributed under the GPL v.2.\n" "This software is distributed under the GPL v.2.\n"
"\n" "\n"
"This program is provided with NO WARRANTY, to the extent " "This program is provided with NO WARRANTY, to the extent "
"permitted by law.")); "permitted by law.");
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
case 'e': case 'e':

2
lib.h
View File

@@ -30,8 +30,6 @@ any later version.
#include <sys/types.h> #include <sys/types.h>
#include <vector> #include <vector>
#define _(X) (X)
/* Compare two path names using the database directory order. This is not /* Compare two path names using the database directory order. This is not
exactly strcmp () order: "a" < "a.b", so "a/z" < "a.b". */ exactly strcmp () order: "a" < "a.b", so "a/z" < "a.b". */
extern int dir_path_cmp(const std::string &a, const std::string &b); extern int dir_path_cmp(const std::string &a, const std::string &b);