1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

added missing i18n strings (#1)

This commit is contained in:
Kyle Spearrin
2016-11-19 01:36:09 -05:00
parent 1968dd2d08
commit e7e4a66750
26 changed files with 262 additions and 92 deletions

View File

@@ -18,7 +18,7 @@
$scope.savePromise = null;
$scope.save = function (model) {
if (!model.name) {
toastr.error('Name is required.', 'Errors have occurred');
toastr.error(i18nService.nameRequired, i18nService.errorsOccurred);
return;
}
@@ -26,7 +26,7 @@
var folder = new Folder(folderModel, true);
return $q.when(folderService.saveWithServer(folder)).then(function (folder) {
$analytics.eventTrack('Edited Folder');
toastr.success('Edited folder');
toastr.success(i18nService.editedFolder);
$state.go('folders', { animation: 'out-slide-down' });
});
});
@@ -34,16 +34,16 @@
$scope.delete = function () {
SweetAlert.swal({
title: 'Delete Folder',
text: 'Are you sure you want to delete this folder?',
title: i18nService.deleteFolder,
text: i18nService.deleteFolderConfirmation,
showCancelButton: true,
confirmButtonText: 'Yes',
cancelButtonText: 'No'
confirmButtonText: i18nService.yes,
cancelButtonText: i18nService.no
}, function (confirmed) {
if (confirmed) {
$q.when(folderService.deleteWithServer(folderId)).then(function () {
$analytics.eventTrack('Deleted Folder');
toastr.success('Deleted folder');
toastr.success(i18nService.deletedFolder);
$state.go('folders', {
animation: 'out-slide-down'
});