mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-17 10:11:27 +00:00
localized recovery key printout
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user