change: Rename contacts to friends

This commit is contained in:
Christian Pauly 2021-02-27 11:13:39 +01:00
parent 9fbfca6e04
commit 87227c601a
3 changed files with 7 additions and 7 deletions

View File

@ -35,7 +35,7 @@ class DefaultBottomNavigationBar extends StatelessWidget {
items: [ items: [
BottomNavigationBarItem( BottomNavigationBarItem(
icon: Icon(currentIndex == 0 ? Icons.people : Icons.people_outlined), icon: Icon(currentIndex == 0 ? Icons.people : Icons.people_outlined),
label: L10n.of(context).contacts, label: L10n.of(context).friends,
), ),
BottomNavigationBarItem( BottomNavigationBarItem(
icon: Icon(currentIndex == 1 icon: Icon(currentIndex == 1

View File

@ -1158,8 +1158,8 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"addNewContact": "Add new contact", "addNewFriend": "Add new friend",
"@addNewContact": { "@addNewFriend": {
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
@ -1485,8 +1485,8 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"contacts": "Contacts", "friends": "Friends",
"@contacts": { "@friends": {
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },

View File

@ -87,7 +87,7 @@ class _ContactsState extends State<Contacts> {
appBar: AppBar( appBar: AppBar(
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
elevation: 1, elevation: 1,
title: Text(L10n.of(context).contacts), title: Text(L10n.of(context).friends),
actions: [ actions: [
TextButton.icon( TextButton.icon(
label: Text( label: Text(
@ -123,7 +123,7 @@ class _ContactsState extends State<Contacts> {
backgroundColor: Theme.of(context).primaryColor, backgroundColor: Theme.of(context).primaryColor,
foregroundColor: Colors.white, foregroundColor: Colors.white,
), ),
title: Text(L10n.of(context).addNewContact), title: Text(L10n.of(context).addNewFriend),
onTap: () => AdaptivePageLayout.of(context) onTap: () => AdaptivePageLayout.of(context)
.pushNamed('/newprivatechat'), .pushNamed('/newprivatechat'),
), ),