localized recovery key printout

This commit is contained in:
Sebastian Stenzel
2020-03-09 22:27:10 +01:00
parent 6dbe136f39
commit cdb0fb37a9
2 changed files with 4 additions and 4 deletions

View File

@@ -38,13 +38,12 @@ public class RecoveryKeyDisplayController implements FxController {
@FXML
public void printRecoveryKey() {
// TODO localize
PrinterJob job = PrinterJob.createPrinterJob();
if (job != null && job.showPrintDialog(window)) {
PageLayout pageLayout = job.getJobSettings().getPageLayout();
Text heading = new Text("Cryptomator Recovery Key\n" + vaultName + "\n");
String headingText = String.format(localization.getString("recoveryKey.printout.heading"), vaultName);
Text heading = new Text(headingText);
heading.setFont(Font.font("serif", FontWeight.BOLD, 20));
heading.setFontSmoothingType(FontSmoothingType.LCD);

View File

@@ -215,6 +215,7 @@ recoveryKey.display.message=The following recovery key can be used to restore ac
recoveryKey.display.StorageHints=Keep it somewhere very secure, e.g.:\n • Store it using a password manager\n • Save it on a USB flash drive\n • Print it on paper
recoveryKey.recover.prompt=Enter your recovery key for "%s":
recoveryKey.recover.validKey=This is a valid recovery key
recoveryKey.printout.heading=Cryptomator Recovery Key\n"%s"\n
# New Password
newPassword.promptText=Enter a new password