mirror of
https://github.com/bitwarden/browser
synced 2026-01-06 18:43:25 +00:00
added missing i18n strings (#1)
This commit is contained in:
@@ -58,8 +58,8 @@ angular
|
||||
|
||||
$scope.clipboardSuccess = function (e, type) {
|
||||
e.clearSelection();
|
||||
toastr.info(type + ' copied!');
|
||||
$analytics.eventTrack('Copied ' + type);
|
||||
toastr.info(type + i18nService.valueCopied);
|
||||
$analytics.eventTrack('Copied ' + (type === i18nService.username ? 'Username' : 'Password'));
|
||||
};
|
||||
|
||||
$scope.addSite = function () {
|
||||
@@ -87,8 +87,7 @@ angular
|
||||
}
|
||||
else {
|
||||
$analytics.eventTrack('Autofilled Error');
|
||||
toastr.error('Unable to auto-fill the selected site on this page. ' +
|
||||
'Copy/paste your username and/or password instead.');
|
||||
toastr.error(i18nService.autofillError);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
title="Auto-fill {{site.name}}" ng-repeat="site in theSites = (sites | orderBy: ['name', 'username'])">
|
||||
<span class="btn-list" href="" ng-click="$event.stopPropagation()" title="{{i18n.copyPassword}}"
|
||||
ngclipboard ngclipboard-error="clipboardError(e)"
|
||||
ngclipboard-success="clipboardSuccess(e, 'Password')"
|
||||
ngclipboard-success="clipboardSuccess(e, i18n.password)"
|
||||
data-clipboard-text="{{site.password}}" ng-class="{'disabled': !site.password}">
|
||||
<i class="fa fa-lg fa-key"></i>
|
||||
</span>
|
||||
<span class="btn-list" href="" ng-click="$event.stopPropagation()" title="{{i18n.copyUsername}}"
|
||||
ngclipboard ngclipboard-error="clipboardError(e)"
|
||||
ngclipboard-success="clipboardSuccess(e, 'Username')"
|
||||
ngclipboard-success="clipboardSuccess(e, i18n.username)"
|
||||
data-clipboard-text="{{site.username}}" ng-class="{'disabled': !site.username}">
|
||||
<i class="fa fa-lg fa-user"></i>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user