Harden translated output formatting
This commit is contained in:
+16
-16
@@ -257,13 +257,13 @@ main(int argc, char **argv)
|
||||
/*
|
||||
* The call failed due to a invalid arg
|
||||
*/
|
||||
printf(_("Error: Invalid arguments for the -k option\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("Error: Invalid arguments for the -k option\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (rt.num_connections == 0)
|
||||
{
|
||||
printf(_("Hey! How can I download anything with 0 (Zero)" " connections!?\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("Hey! How can I download anything with 0 (Zero)" " connections!?\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ main(int argc, char **argv)
|
||||
/*
|
||||
* The call failed due to a invalid arg
|
||||
*/
|
||||
printf(_("Error: Invalid arguments for the -t or --tries option(s)\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("Error: Invalid arguments for the -t or --tries option(s)\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
break;
|
||||
@@ -335,7 +335,7 @@ main(int argc, char **argv)
|
||||
/*
|
||||
* The call failed due to a invalid arg
|
||||
*/
|
||||
printf(_("Error: Invalid arguments for the --retry-delay option\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("Error: Invalid arguments for the --retry-delay option\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
break;
|
||||
@@ -347,7 +347,7 @@ main(int argc, char **argv)
|
||||
/*
|
||||
* The call failed due to a invalid arg
|
||||
*/
|
||||
printf(_("Error: Invalid arguments for the --timeout option\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("Error: Invalid arguments for the --timeout option\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
break;
|
||||
@@ -385,13 +385,13 @@ main(int argc, char **argv)
|
||||
/*
|
||||
* The call failed due to a invalid arg
|
||||
*/
|
||||
printf(_("Error: Invalid arguments for the --pt option\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("Error: Invalid arguments for the --pt option\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (rt.max_ping_wait == 0)
|
||||
{
|
||||
printf(_("Hey! Does waiting for a server response for Zero(0)" " seconds make and sense to you!?\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("Hey! Does waiting for a server response for Zero(0)" " seconds make and sense to you!?\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -404,13 +404,13 @@ main(int argc, char **argv)
|
||||
/*
|
||||
* The call failed due to a invalid arg
|
||||
*/
|
||||
printf(_("Error: Invalid arguments for the --pao option\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("Error: Invalid arguments for the --pao option\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (rt.max_simul_pings == 0)
|
||||
{
|
||||
printf(_("Hey you! Will pinging Zero(0) servers at once" " achive anything for me!?\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("Hey you! Will pinging Zero(0) servers at once" " achive anything for me!?\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -423,13 +423,13 @@ main(int argc, char **argv)
|
||||
/*
|
||||
* The call failed due to a invalid arg
|
||||
*/
|
||||
printf(_("Error: Invalid arguments for the --pao option\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("Error: Invalid arguments for the --pao option\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (rt.ftps_mirror_req_n == 0)
|
||||
{
|
||||
printf(_("Hey! Will requesting Zero(0) servers at once" "from the ftpearch achive anything!?\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("Hey! Will requesting Zero(0) servers at once" "from the ftpearch achive anything!?\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -442,7 +442,7 @@ main(int argc, char **argv)
|
||||
/*
|
||||
* The call failed due to a invalid arg
|
||||
*/
|
||||
printf(_("Error: Invalid arguments for the --max-bps option\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("Error: Invalid arguments for the --max-bps option\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
break;
|
||||
@@ -458,7 +458,7 @@ main(int argc, char **argv)
|
||||
/*
|
||||
* The call failed due to a invalid arg
|
||||
*/
|
||||
printf(_("Error: Invalid arguments for the --min-size option\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("Error: Invalid arguments for the --min-size option\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
break;
|
||||
@@ -471,13 +471,13 @@ main(int argc, char **argv)
|
||||
/*
|
||||
* The call failed due to a invalid arg
|
||||
*/
|
||||
printf(_("Error: Invalid arguments for the --ftpsid option\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("Error: Invalid arguments for the --ftpsid option\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (rt.ftpsearch_server_id < 0 || rt.ftpsearch_server_id > 1)
|
||||
{
|
||||
printf(_("The available servers are (0) filesearching.com and (1) ftpsearch.elmundo.es\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("The available servers are (0) filesearching.com and (1) ftpsearch.elmundo.es\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -486,7 +486,7 @@ main(int argc, char **argv)
|
||||
|
||||
|
||||
default:
|
||||
printf(_("Error: Invalid option\n"));
|
||||
printf("%s", _("Error: Invalid option\n"));
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user