mirror of
https://github.com/bitwarden/mobile
synced 2026-01-07 11:03:54 +00:00
update resource strings for Logins => Items
This commit is contained in:
@@ -36,7 +36,7 @@ namespace Bit.App.Pages
|
||||
"refresh.png");
|
||||
WebCell = new ToolsViewCell(AppResources.WebVault, AppResources.WebVaultDescription, "globe.png");
|
||||
ShareCell = new ToolsViewCell(AppResources.ShareVault, AppResources.ShareVaultDescription, "share_tools.png");
|
||||
ImportCell = new ToolsViewCell(AppResources.ImportLogins, AppResources.ImportLoginsDescription, "cloudup.png");
|
||||
ImportCell = new ToolsViewCell(AppResources.ImportItems, AppResources.ImportItemsDescription, "cloudup.png");
|
||||
|
||||
var section = new TableSection(" ") { GeneratorCell };
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace Bit.App.Pages
|
||||
|
||||
private async void ImportCell_Tapped(object sender, EventArgs e)
|
||||
{
|
||||
if(!await _userDialogs.ConfirmAsync(AppResources.ImportLoginsConfirmation, null, AppResources.Yes,
|
||||
if(!await _userDialogs.ConfirmAsync(AppResources.ImportItemsConfirmation, null, AppResources.Yes,
|
||||
AppResources.Cancel))
|
||||
{
|
||||
return;
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace Bit.App.Pages
|
||||
HasUnevenRows = true,
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(AppResources.LoginInformation)
|
||||
new TableSection(AppResources.ItemInformation)
|
||||
{
|
||||
NameCell,
|
||||
UriCell,
|
||||
@@ -206,7 +206,7 @@ namespace Bit.App.Pages
|
||||
|
||||
if(saveTask.Succeeded)
|
||||
{
|
||||
_userDialogs.Toast(AppResources.NewLoginCreated);
|
||||
_userDialogs.Toast(AppResources.NewItemCreated);
|
||||
if(_fromAutofill)
|
||||
{
|
||||
_googleAnalyticsService.TrackExtensionEvent("CreatedLogin");
|
||||
@@ -227,7 +227,7 @@ namespace Bit.App.Pages
|
||||
}
|
||||
}, ToolbarItemOrder.Default, 0);
|
||||
|
||||
Title = AppResources.AddLogin;
|
||||
Title = AppResources.AddItem;
|
||||
Content = table;
|
||||
ToolbarItems.Add(saveToolBarItem);
|
||||
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace Bit.App.Pages
|
||||
{
|
||||
var noDataLabel = new Label
|
||||
{
|
||||
Text = string.Format(AppResources.NoLoginsForUri, _name ?? "--"),
|
||||
Text = string.Format(AppResources.NoItemsForUri, _name ?? "--"),
|
||||
HorizontalTextAlignment = TextAlignment.Center,
|
||||
FontSize = Device.GetNamedSize(NamedSize.Small, typeof(Label)),
|
||||
Style = (Style)Application.Current.Resources["text-muted"]
|
||||
@@ -73,7 +73,7 @@ namespace Bit.App.Pages
|
||||
|
||||
var addCipherButton = new ExtendedButton
|
||||
{
|
||||
Text = AppResources.AddALogin,
|
||||
Text = AppResources.AddAnItem,
|
||||
Command = new Command(() => AddCipherAsync()),
|
||||
Style = (Style)Application.Current.Resources["btn-primaryAccent"]
|
||||
};
|
||||
@@ -106,7 +106,7 @@ namespace Bit.App.Pages
|
||||
ListView.RowHeight = -1;
|
||||
}
|
||||
|
||||
Title = string.Format(AppResources.LoginsForUri, _name ?? "--");
|
||||
Title = string.Format(AppResources.ItemsForUri, _name ?? "--");
|
||||
|
||||
LoadingIndicator = new ActivityIndicator
|
||||
{
|
||||
@@ -170,7 +170,7 @@ namespace Bit.App.Pages
|
||||
.ToList();
|
||||
if(normalLogins?.Any() ?? false)
|
||||
{
|
||||
autofillGroupings.Add(new VaultListPageModel.AutofillGrouping(normalLogins, AppResources.MatchingLogins));
|
||||
autofillGroupings.Add(new VaultListPageModel.AutofillGrouping(normalLogins, AppResources.MatchingItems));
|
||||
}
|
||||
|
||||
var fuzzyLogins = ciphers?.Item2.Select(l => new VaultListPageModel.AutofillCipher(l, true))
|
||||
@@ -180,7 +180,7 @@ namespace Bit.App.Pages
|
||||
if(fuzzyLogins?.Any() ?? false)
|
||||
{
|
||||
autofillGroupings.Add(new VaultListPageModel.AutofillGrouping(fuzzyLogins,
|
||||
AppResources.PossibleMatchingLogins));
|
||||
AppResources.PossibleMatchingItems));
|
||||
}
|
||||
|
||||
Device.BeginInvokeOnMainThread(() =>
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace Bit.App.Pages
|
||||
HasUnevenRows = true,
|
||||
Root = new TableRoot
|
||||
{
|
||||
new TableSection(AppResources.LoginInformation)
|
||||
new TableSection(AppResources.ItemInformation)
|
||||
{
|
||||
NameCell,
|
||||
UriCell,
|
||||
@@ -237,7 +237,7 @@ namespace Bit.App.Pages
|
||||
|
||||
if(saveTask.Succeeded)
|
||||
{
|
||||
_userDialogs.Toast(AppResources.LoginUpdated);
|
||||
_userDialogs.Toast(AppResources.ItemUpdated);
|
||||
_googleAnalyticsService.TrackAppEvent("EditedLogin");
|
||||
await Navigation.PopForDeviceAsync();
|
||||
}
|
||||
@@ -251,7 +251,7 @@ namespace Bit.App.Pages
|
||||
}
|
||||
}, ToolbarItemOrder.Default, 0);
|
||||
|
||||
Title = AppResources.EditLogin;
|
||||
Title = AppResources.EditItem;
|
||||
Content = table;
|
||||
ToolbarItems.Add(saveToolBarItem);
|
||||
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||
@@ -414,7 +414,7 @@ namespace Bit.App.Pages
|
||||
|
||||
if(deleteTask.Succeeded)
|
||||
{
|
||||
_userDialogs.Toast(AppResources.LoginDeleted);
|
||||
_userDialogs.Toast(AppResources.ItemDeleted);
|
||||
_googleAnalyticsService.TrackAppEvent("DeletedLogin");
|
||||
await Navigation.PopForDeviceAsync();
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace Bit.App.Pages
|
||||
|
||||
var noDataLabel = new Label
|
||||
{
|
||||
Text = _favorites ? AppResources.NoFavorites : AppResources.NoLogins,
|
||||
Text = _favorites ? AppResources.NoFavorites : AppResources.NoItems,
|
||||
HorizontalTextAlignment = TextAlignment.Center,
|
||||
FontSize = Device.GetNamedSize(NamedSize.Small, typeof(Label)),
|
||||
Style = (Style)Application.Current.Resources["text-muted"]
|
||||
@@ -137,7 +137,7 @@ namespace Bit.App.Pages
|
||||
{
|
||||
var addCipherButton = new ExtendedButton
|
||||
{
|
||||
Text = AppResources.AddALogin,
|
||||
Text = AppResources.AddAnItem,
|
||||
Command = new Command(() => AddCipher()),
|
||||
Style = (Style)Application.Current.Resources["btn-primaryAccent"]
|
||||
};
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace Bit.App.Pages
|
||||
NotesCell.Value.SetBinding(Label.TextProperty, nameof(VaultViewLoginPageModel.Notes));
|
||||
NotesCell.Value.LineBreakMode = LineBreakMode.WordWrap;
|
||||
|
||||
LoginInformationSection = new TableSection(AppResources.LoginInformation)
|
||||
LoginInformationSection = new TableSection(AppResources.ItemInformation)
|
||||
{
|
||||
nameCell
|
||||
};
|
||||
@@ -150,7 +150,7 @@ namespace Bit.App.Pages
|
||||
UriCell.Button1.WidthRequest = 75;
|
||||
}
|
||||
|
||||
Title = AppResources.ViewLogin;
|
||||
Title = AppResources.ViewItem;
|
||||
Content = Table;
|
||||
BindingContext = Model;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user