From 87227c601a85557c9be59f7b870d7a476d008ce9 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sat, 27 Feb 2021 11:13:39 +0100 Subject: [PATCH] change: Rename contacts to friends --- lib/components/default_bottom_navigation_bar.dart | 2 +- lib/l10n/intl_en.arb | 8 ++++---- lib/views/contacts.dart | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/components/default_bottom_navigation_bar.dart b/lib/components/default_bottom_navigation_bar.dart index 3ef5621e..5bd96f7a 100644 --- a/lib/components/default_bottom_navigation_bar.dart +++ b/lib/components/default_bottom_navigation_bar.dart @@ -35,7 +35,7 @@ class DefaultBottomNavigationBar extends StatelessWidget { items: [ BottomNavigationBarItem( icon: Icon(currentIndex == 0 ? Icons.people : Icons.people_outlined), - label: L10n.of(context).contacts, + label: L10n.of(context).friends, ), BottomNavigationBarItem( icon: Icon(currentIndex == 1 diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index 79072986..c371a5ce 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -1158,8 +1158,8 @@ "type": "text", "placeholders": {} }, - "addNewContact": "Add new contact", - "@addNewContact": { + "addNewFriend": "Add new friend", + "@addNewFriend": { "type": "text", "placeholders": {} }, @@ -1485,8 +1485,8 @@ "type": "text", "placeholders": {} }, - "contacts": "Contacts", - "@contacts": { + "friends": "Friends", + "@friends": { "type": "text", "placeholders": {} }, diff --git a/lib/views/contacts.dart b/lib/views/contacts.dart index b5b71a47..1512c727 100644 --- a/lib/views/contacts.dart +++ b/lib/views/contacts.dart @@ -87,7 +87,7 @@ class _ContactsState extends State { appBar: AppBar( automaticallyImplyLeading: false, elevation: 1, - title: Text(L10n.of(context).contacts), + title: Text(L10n.of(context).friends), actions: [ TextButton.icon( label: Text( @@ -123,7 +123,7 @@ class _ContactsState extends State { backgroundColor: Theme.of(context).primaryColor, foregroundColor: Colors.white, ), - title: Text(L10n.of(context).addNewContact), + title: Text(L10n.of(context).addNewFriend), onTap: () => AdaptivePageLayout.of(context) .pushNamed('/newprivatechat'), ),