aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-12-15 15:06:49 +0000
committerJustus Winter <[email protected]>2016-12-15 15:14:23 +0000
commit6b16b02109f4bb5b934e456667ff4c0ba7bc85fd (patch)
tree3aa41164c31daa7edcdfa9e432cb3c734a08c754
parentg10: Rework the --quick-* interface. (diff)
downloadgnupg-6b16b02109f4bb5b934e456667ff4c0ba7bc85fd.tar.gz
gnupg-6b16b02109f4bb5b934e456667ff4c0ba7bc85fd.zip
g10: Avoid translating simple error messages.
* g10/gpg.c (main): Avoid translating arguments to 'wrong_args'. -- Translating these messages is a burden for translators, and we only have translations for very few of them as it is. If we want to localize these messages, I'd suggest to translate the placeholders (e.g. 'filename'). Signed-off-by: Justus Winter <[email protected]>
-rw-r--r--g10/gpg.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index e6807481b..cab5d53b0 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -4010,7 +4010,7 @@ main (int argc, char **argv)
case aStore: /* only store the file */
if( argc > 1 )
- wrong_args(_("--store [filename]"));
+ wrong_args("--store [filename]");
if( (rc = encrypt_store(fname)) )
{
write_status_failure ("store", rc);
@@ -4020,7 +4020,7 @@ main (int argc, char **argv)
break;
case aSym: /* encrypt the given file only with the symmetric cipher */
if( argc > 1 )
- wrong_args(_("--symmetric [filename]"));
+ wrong_args("--symmetric [filename]");
if( (rc = encrypt_symmetric(fname)) )
{
write_status_failure ("symencrypt", rc);
@@ -4035,7 +4035,7 @@ main (int argc, char **argv)
else
{
if( argc > 1 )
- wrong_args(_("--encrypt [filename]"));
+ wrong_args("--encrypt [filename]");
if( (rc = encrypt_crypt (ctrl, -1, fname, remusr, 0, NULL, -1)) )
{
write_status_failure ("encrypt", rc);
@@ -4051,7 +4051,7 @@ main (int argc, char **argv)
might work with 7, but alas, I don't have a copy to test
with right now. */
if( argc > 1 )
- wrong_args(_("--symmetric --encrypt [filename]"));
+ wrong_args("--symmetric --encrypt [filename]");
else if(opt.s2k_mode==0)
log_error(_("you cannot use --symmetric --encrypt"
" with --s2k-mode 0\n"));
@@ -4077,7 +4077,7 @@ main (int argc, char **argv)
}
else {
if( argc > 1 )
- wrong_args(_("--sign [filename]"));
+ wrong_args("--sign [filename]");
if( argc ) {
sl = xmalloc_clear( sizeof *sl + strlen(fname));
strcpy(sl->d, fname);
@@ -4093,7 +4093,7 @@ main (int argc, char **argv)
case aSignEncr: /* sign and encrypt the given file */
if( argc > 1 )
- wrong_args(_("--sign --encrypt [filename]"));
+ wrong_args("--sign --encrypt [filename]");
if( argc ) {
sl = xmalloc_clear( sizeof *sl + strlen(fname));
strcpy(sl->d, fname);
@@ -4111,7 +4111,7 @@ main (int argc, char **argv)
case aSignEncrSym: /* sign and encrypt the given file */
if( argc > 1 )
- wrong_args(_("--symmetric --sign --encrypt [filename]"));
+ wrong_args("--symmetric --sign --encrypt [filename]");
else if(opt.s2k_mode==0)
log_error(_("you cannot use --symmetric --sign --encrypt"
" with --s2k-mode 0\n"));
@@ -4140,7 +4140,7 @@ main (int argc, char **argv)
case aSignSym: /* sign and conventionally encrypt the given file */
if (argc > 1)
- wrong_args(_("--sign --symmetric [filename]"));
+ wrong_args("--sign --symmetric [filename]");
rc = sign_symencrypt_file (ctrl, fname, locusr);
if (rc)
{
@@ -4152,7 +4152,7 @@ main (int argc, char **argv)
case aClearsign: /* make a clearsig */
if( argc > 1 )
- wrong_args(_("--clear-sign [filename]"));
+ wrong_args("--clear-sign [filename]");
if( (rc = clearsign_file (ctrl, fname, locusr, NULL)) )
{
write_status_failure ("sign", rc);
@@ -4182,7 +4182,7 @@ main (int argc, char **argv)
else
{
if( argc > 1 )
- wrong_args(_("--decrypt [filename]"));
+ wrong_args("--decrypt [filename]");
if( (rc = decrypt_message (ctrl, fname) ))
{
write_status_failure ("decrypt", rc);
@@ -4209,11 +4209,11 @@ main (int argc, char **argv)
case aSignKey:
if( argc != 1 )
- wrong_args(_("--sign-key user-id"));
+ wrong_args("--sign-key user-id");
/* fall through */
case aLSignKey:
if( argc != 1 )
- wrong_args(_("--lsign-key user-id"));
+ wrong_args("--lsign-key user-id");
/* fall through */
sl=NULL;
@@ -4234,7 +4234,7 @@ main (int argc, char **argv)
case aEditKey: /* Edit a key signature */
if( !argc )
- wrong_args(_("--edit-key user-id [commands]"));
+ wrong_args("--edit-key user-id [commands]");
username = make_username( fname );
if( argc > 1 ) {
sl = NULL;
@@ -4250,7 +4250,7 @@ main (int argc, char **argv)
case aPasswd:
if (argc != 1)
- wrong_args (_("--change-passphrase <user-id>"));
+ wrong_args("--change-passphrase <user-id>");
else
{
username = make_username (fname);
@@ -4884,7 +4884,7 @@ main (int argc, char **argv)
case aListPackets:
default:
if( argc > 1 )
- wrong_args(_("[filename]"));
+ wrong_args("[filename]");
/* Issue some output for the unix newbie */
if (!fname && !opt.outfile
&& gnupg_isatty (fileno (stdin))