Skip to content

Commit

Permalink
Use Horde_Crypt_Translation.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Aug 31, 2017
1 parent 223b256 commit aeb0843
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions framework/Crypt/lib/Horde/Crypt/Pgp/Backend/Binary.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ public function generateKey($opts)

/* If either key is empty, something went wrong. */
if (empty($public_key) || empty($secret_key)) {
throw new Horde_Crypt_Exception(_("Cannot generate PGP keys"));
throw new Horde_Crypt_Exception(
Horde_Crypt_Translation::t("Cannot generate PGP keys")
);
}

return array(
Expand Down Expand Up @@ -374,7 +376,9 @@ public function getSignersKeyID($text)
return substr($matches[1], -8);
}

throw new Horde_Crypt_Exception(_("Cannot read PGP key ID"));
throw new Horde_Crypt_Exception(
Horde_Crypt_Translation::t("Cannot read PGP key ID")
);
}

/**
Expand Down

0 comments on commit aeb0843

Please sign in to comment.