translate 2fa backup strings

This commit is contained in:
Christoph Wurst 2016-09-06 12:52:44 +02:00 committed by GitHub
parent c57976879c
commit ea6562aa57
1 changed files with 2 additions and 2 deletions

View File

@ -103,13 +103,13 @@
this._codes = data.codes;
this.render();
}.bind(this)).fail(function () {
OC.Notification.showTemporary('An error occurred while generating your backup codes');
OC.Notification.showTemporary(t('twofactor_backupcodes', 'An error occurred while generating your backup codes'));
$('#generate-backup-codes').removeClass('icon-loading-small');
});
},
_onPrintBackupCodes: function () {
var url = this._getDownloadDataHref();
window.open(url, 'Nextcloud backup codes');
window.open(url, t('twofactor_backupcodes', 'Nextcloud backup codes'));
window.print();
window.close();
}