Show public address in chat details

parent 758d21e7
{
"@@last_modified": "2020-06-04T16:02:06.691997",
"@@last_modified": "2020-06-06T18:19:25.574081",
"appName": "Pattle",
"@appName": {
"type": "text",
......@@ -263,6 +263,18 @@
"count": {}
}
},
"_ChatDetails_publicAddress": "Public address",
"@_ChatDetails_publicAddress": {
"type": "text",
"placeholders": {}
},
"_ChatDetails_publicAddressInfo": "{isChannel,select, true{People can use a channel''s address to find and join this channel.}false{People can use a group''s address to find this group.}}",
"@_ChatDetails_publicAddressInfo": {
"type": "text",
"placeholders": {
"isChannel": {}
}
},
"_Chats_chats": "Chats",
"@_Chats_chats": {
"type": "text",
......
......@@ -263,6 +263,18 @@
"count": {}
}
},
"_ChatDetails_publicAddress": "Openbaar adres",
"@_ChatDetails_publicAddress": {
"type": "text",
"placeholders": {}
},
"_ChatDetails_publicAddressInfo": "{isChannel,select, true{Mensen kunnen een adres van een kanaal gebruiken om dit kanaal te vinden en deel te nemen.}false{Mensen kunnen een adres van een groep gebruiken om deze groep te vinden.}}",
"@_ChatDetails_publicAddressInfo": {
"type": "text",
"placeholders": {
"isChannel": {}
}
},
"_Chats_chats": "Chats",
"@_Chats_chats": {
"type": "text",
......
......@@ -687,6 +687,29 @@ class _ChatDetails extends _Category {
locale: _localeName,
);
}
String get publicAddress {
return Intl.message(
'Public address',
name: '_ChatDetails_publicAddress',
locale: _localeName,
);
}
// ignore: avoid_positional_boolean_parameters
String publicAddressInfo(bool isChannel) {
return Intl.select(
isChannel,
{
true: 'People can use a channel\'s address'
' to find and join this channel.',
false: 'People can use a group\'s address to find this group.',
},
args: [isChannel],
name: '_ChatDetails_publicAddressInfo',
locale: _localeName,
);
}
}
class _Chats extends _Category {
......
......@@ -25,73 +25,79 @@ class MessageLookup extends MessageLookupByLibrary {
static m1(count) =>
"${Intl.plural(count, zero: 'No participants', one: '${count} participant', other: '${count} participants')}";
static m2(person, bannee, banner) => "${Intl.select(person, {
static m2(isChannel) => "${Intl.select(isChannel, {
'true':
'People can use a channel\'s address to find and join this channel.',
'false': 'People can use a group\'s address to find this group.',
})}";
static m3(person, bannee, banner) => "${Intl.select(person, {
'secondOnSecond': 'You were banned by yourself',
'secondOnThird': 'You were banned by ${banner}',
'thirdOnThird': '${bannee} was banned by ${banner}',
'thirdOnSecond': '${bannee} was banned by you',
})}";
static m3(person, name) => "${Intl.select(person, {
static m4(person, name) => "${Intl.select(person, {
'second': 'You created this group',
'third': '${name} created this group',
})}";
static m4(person, name) => "${Intl.select(person, {
static m5(person, name) => "${Intl.select(person, {
'second': 'You deleted this message',
'third': '${name} deleted this message',
})}";
static m5(person, name) => "${Intl.select(person, {
static m6(person, name) => "${Intl.select(person, {
'second': 'You changed the description of this group',
'third': '${name} changed the description of this group',
})}";
static m6(person, name) => "${Intl.select(person, {
static m7(person, name) => "${Intl.select(person, {
'second': 'You changed this group\'s icon',
'third': '${name} changed this group\'s icon',
})}";
static m7(person, name) => "${Intl.select(person, {
static m8(person, name) => "${Intl.select(person, {
'second': 'You changed this group\'s icon to',
'third': '${name} changed this group\'s icon to',
})}";
static m8(person, invitee, inviter) => "${Intl.select(person, {
static m9(person, invitee, inviter) => "${Intl.select(person, {
'secondOnSecond': 'You were invited by yourself',
'secondOnThird': 'You were invited by ${inviter}',
'thirdOnThird': '${invitee} was invited by ${inviter}',
'thirdOnSecond': '${invitee} was invited by you',
})}";
static m9(person, name) => "${Intl.select(person, {
static m10(person, name) => "${Intl.select(person, {
'second': 'You joined',
'third': '${name} joined',
})}";
static m10(person, name) => "${Intl.select(person, {
static m11(person, name) => "${Intl.select(person, {
'second': 'You left',
'third': '${name} left',
})}";
static m11(person, name) => "${Intl.select(person, {
static m12(person, name) => "${Intl.select(person, {
'second': 'You changed the name of this group',
'third': '${name} changed the name of this group',
})}";
static m12(person, name) => "${Intl.select(person, {
static m13(person, name) => "${Intl.select(person, {
'second': 'You upgraded this group',
'third': '${name} upgraded this group',
})}";
static m13(andMore, first, second) => "${Intl.select(andMore, {
static m14(andMore, first, second) => "${Intl.select(andMore, {
'false': '${first} and ${second} are typing...',
'true': '${first}, ${second} and more are typing...',
})}";
static m14(name) => "${name} is typing...";
static m15(name) => "${name} is typing...";
static m15(version) => "Version ${version}";
static m16(version) => "Version ${version}";
final messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function>{
......@@ -103,21 +109,24 @@ class MessageLookup extends MessageLookupByLibrary {
"_ChatDetails_noDescriptionSet":
MessageLookupByLibrary.simpleMessage("No description has been set"),
"_ChatDetails_participants": m1,
"_ChatMessage_ban": m2,
"_ChatMessage_creation": m3,
"_ChatMessage_deletion": m4,
"_ChatMessage_descriptionChange": m5,
"_ChatMessage_iconChange": m6,
"_ChatMessage_iconChangeTo": m7,
"_ChatMessage_invite": m8,
"_ChatMessage_join": m9,
"_ChatMessage_leave": m10,
"_ChatMessage_nameChange": m11,
"_ChatMessage_upgrade": m12,
"_Chat_areTyping": m13,
"_ChatDetails_publicAddress":
MessageLookupByLibrary.simpleMessage("Public address"),
"_ChatDetails_publicAddressInfo": m2,
"_ChatMessage_ban": m3,
"_ChatMessage_creation": m4,
"_ChatMessage_deletion": m5,
"_ChatMessage_descriptionChange": m6,
"_ChatMessage_iconChange": m7,
"_ChatMessage_iconChangeTo": m8,
"_ChatMessage_invite": m9,
"_ChatMessage_join": m10,
"_ChatMessage_leave": m11,
"_ChatMessage_nameChange": m12,
"_ChatMessage_upgrade": m13,
"_Chat_areTyping": m14,
"_Chat_cantSendMessages": MessageLookupByLibrary.simpleMessage(
"You can\'t send messages to this group because you\'re no longer a participant."),
"_Chat_isTyping": m14,
"_Chat_isTyping": m15,
"_Chat_typeAMessage":
MessageLookupByLibrary.simpleMessage("Type a message"),
"_Chat_typing": MessageLookupByLibrary.simpleMessage("typing..."),
......@@ -173,7 +182,7 @@ class MessageLookup extends MessageLookupByLibrary {
"_Settings_editNameDescription": MessageLookupByLibrary.simpleMessage(
"This is not your username. This is the name that will be visible to others."),
"_Settings_title": MessageLookupByLibrary.simpleMessage("Settings"),
"_Settings_version": m15,
"_Settings_version": m16,
"_StartUsername_hostnameInvalidError":
MessageLookupByLibrary.simpleMessage("Invalid hostname"),
"_StartUsername_title":
......
......@@ -25,73 +25,73 @@ class MessageLookup extends MessageLookupByLibrary {
static m1(count) =>
"${Intl.plural(count, zero: 'Geen deelnemers', one: '${count} deelnemer', other: '${count} deelnemers')}";
static m2(person, bannee, banner) => "${Intl.select(person, {
static m3(person, bannee, banner) => "${Intl.select(person, {
'secondOnSecond': 'Je bent door jezelf verbannen',
'secondOnThird': 'Je bent verbannen door ${banner}',
'thirdOnThird': '${bannee} is verbannen door ${banner}',
'thirdOnSecond': '${bannee} is verbannen door jou',
})}";
static m3(person, name) => "${Intl.select(person, {
static m4(person, name) => "${Intl.select(person, {
'second': 'Je hebt deze groep gemaakt',
'third': '${name} heeft deze groep gemaakt',
})}";
static m4(person, name) => "${Intl.select(person, {
static m5(person, name) => "${Intl.select(person, {
'second': 'Je hebt dit bericht verwijderd',
'third': '${name} heeft dit bericht verwijderd',
})}";
static m5(person, name) => "${Intl.select(person, {
static m6(person, name) => "${Intl.select(person, {
'second': 'Je hebt de beschrijving van de groep aangepast',
'third': '${name} heeft de beschrijving van de groep aangepast',
})}";
static m6(person, name) => "${Intl.select(person, {
static m7(person, name) => "${Intl.select(person, {
'second': 'Je hebt het icoon van de groep verandert',
'third': '${name} heeft het icoon van de groep verandert',
})}";
static m7(person, name) => "${Intl.select(person, {
static m8(person, name) => "${Intl.select(person, {
'second': 'Je hebt het icoon van de groep verandert naar',
'third': '${name} heeft het icoon van de groep verandert naar',
})}";
static m8(person, invitee, inviter) => "${Intl.select(person, {
static m9(person, invitee, inviter) => "${Intl.select(person, {
'secondOnSecond': 'Je bent door jezelf uitgenodigd',
'secondOnThird': 'Je bent uitgenodigd door ${inviter}',
'thirdOnThird': '${invitee} is uitgenodigd door ${inviter}',
'thirdOnSecond': '${invitee} is uitgenodigd door jou',
})}";
static m9(person, name) => "${Intl.select(person, {
static m10(person, name) => "${Intl.select(person, {
'second': 'Je bent aan het gesprek toegevoegd',
'third': '${name} is aan het gesprek toegevoegd',
})}";
static m10(person, name) => "${Intl.select(person, {
static m11(person, name) => "${Intl.select(person, {
'second': 'Je hebt het gesprek verlaten',
'third': '${name} heeft het gesprek verlaten',
})}";
static m11(person, name) => "${Intl.select(person, {
static m12(person, name) => "${Intl.select(person, {
'second': 'Je hebt de naam van de groep aangepast',
'third': '${name} heeft de naam van de groep aangepast',
})}";
static m12(person, name) => "${Intl.select(person, {
static m13(person, name) => "${Intl.select(person, {
'second': 'Je hebt deze groep geüpgrade',
'third': '${name} heeft deze groep geüpgrade',
})}";
static m13(andMore, first, second) => "${Intl.select(andMore, {
static m14(andMore, first, second) => "${Intl.select(andMore, {
'false': '${first} en ${second} typen...',
'true': '${first}, ${second} en anderen typen...',
})}";
static m14(name) => "${name} typt...";
static m15(name) => "${name} typt...";
static m15(version) => "Versie ${version}";
static m16(version) => "Versie ${version}";
final messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function>{
......@@ -103,21 +103,21 @@ class MessageLookup extends MessageLookupByLibrary {
"_ChatDetails_noDescriptionSet": MessageLookupByLibrary.simpleMessage(
"Er is geen beschrijving ingesteld"),
"_ChatDetails_participants": m1,
"_ChatMessage_ban": m2,
"_ChatMessage_creation": m3,
"_ChatMessage_deletion": m4,
"_ChatMessage_descriptionChange": m5,
"_ChatMessage_iconChange": m6,
"_ChatMessage_iconChangeTo": m7,
"_ChatMessage_invite": m8,
"_ChatMessage_join": m9,
"_ChatMessage_leave": m10,
"_ChatMessage_nameChange": m11,
"_ChatMessage_upgrade": m12,
"_Chat_areTyping": m13,
"_ChatMessage_ban": m3,
"_ChatMessage_creation": m4,
"_ChatMessage_deletion": m5,
"_ChatMessage_descriptionChange": m6,
"_ChatMessage_iconChange": m7,
"_ChatMessage_iconChangeTo": m8,
"_ChatMessage_invite": m9,
"_ChatMessage_join": m10,
"_ChatMessage_leave": m11,
"_ChatMessage_nameChange": m12,
"_ChatMessage_upgrade": m13,
"_Chat_areTyping": m14,
"_Chat_cantSendMessages": MessageLookupByLibrary.simpleMessage(
"Je kan geen berichten naar deze groep sturen omdat je geen deelnemer meer bent."),
"_Chat_isTyping": m14,
"_Chat_isTyping": m15,
"_Chat_typeAMessage":
MessageLookupByLibrary.simpleMessage("Typ een bericht"),
"_Chat_typing":
......@@ -176,7 +176,7 @@ class MessageLookup extends MessageLookupByLibrary {
"_Settings_editNameDescription": MessageLookupByLibrary.simpleMessage(
"Dit is niet je gebruikersnaam. Deze naam is zichtbaar voor anderen."),
"_Settings_title": MessageLookupByLibrary.simpleMessage("Instellingen"),
"_Settings_version": m15,
"_Settings_version": m16,
"_StartUsername_hostnameInvalidError":
MessageLookupByLibrary.simpleMessage("Ongeldige hostnaam"),
"_StartUsername_title":
......
......@@ -336,10 +336,12 @@ packages:
matrix_sdk:
dependency: "direct main"
description:
name: matrix_sdk
url: "https://pub.dartlang.org"
source: hosted
version: "0.32.0+1"
path: "."
ref: "7bee19e1ec141a19c527ea6ab9aaa029dc9a9933"
resolved-ref: "7bee19e1ec141a19c527ea6ab9aaa029dc9a9933"
url: "https://pattle.dev/pattle/library/matrix-dart-sdk"
source: git
version: "0.0.0"
mdi:
dependency: "direct main"
description:
......
......@@ -10,7 +10,10 @@ dependencies:
flutter_localizations:
sdk: flutter
matrix_sdk: ^0.32.0
matrix_sdk:
git:
url: https://pattle.dev/pattle/library/matrix-dart-sdk
ref: 7bee19e1ec141a19c527ea6ab9aaa029dc9a9933
async: ^2.3.0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment