Line data Source code
1 : /* 2 : * Famedly Matrix SDK 3 : * Copyright (C) 2019, 2020 Famedly GmbH 4 : * 5 : * This program is free software: you can redistribute it and/or modify 6 : * it under the terms of the GNU Affero General Public License as 7 : * published by the Free Software Foundation, either version 3 of the 8 : * License, or (at your option) any later version. 9 : * 10 : * This program is distributed in the hope that it will be useful, 11 : * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 : * GNU Affero General Public License for more details. 14 : * 15 : * You should have received a copy of the GNU Affero General Public License 16 : * along with this program. If not, see <https://www.gnu.org/licenses/>. 17 : */ 18 : 19 : import 'package:matrix/matrix.dart'; 20 : 21 : class MatrixDefaultLocalizations extends MatrixLocalizations { 22 167 : const MatrixDefaultLocalizations(); 23 1 : @override 24 : String acceptedTheInvitation(String targetName) => 25 1 : '$targetName accepted the invitation'; 26 : 27 1 : @override 28 : String activatedEndToEndEncryption(String senderName) => 29 1 : '$senderName activated end to end encryption'; 30 : 31 3 : @override 32 : String get anyoneCanJoin => 'Anyone can join'; 33 : 34 1 : @override 35 : String bannedUser(String senderName, String targetName) => 36 1 : '$senderName banned $targetName'; 37 : 38 1 : @override 39 : String changedTheChatAvatar(String senderName) => 40 1 : '$senderName changed the chat avatar'; 41 : 42 1 : @override 43 : String changedTheChatDescriptionTo(String senderName, String content) => 44 1 : '$senderName changed the chat description to $content'; 45 : 46 1 : @override 47 : String changedTheChatNameTo(String senderName, String content) => 48 1 : '$senderName changed the chat name to $content'; 49 : 50 1 : @override 51 : String changedTheChatPermissions(String senderName) => 52 1 : '$senderName changed the chat permissions'; 53 : 54 0 : @override 55 : String changedTheDisplaynameTo(String targetName, String newDisplayname) => 56 0 : '$targetName changed the displayname to $newDisplayname'; 57 : 58 0 : @override 59 : String changedTheGuestAccessRules(String senderName) => 60 0 : '$senderName changed the guest access rules'; 61 : 62 0 : @override 63 : String changedTheGuestAccessRulesTo( 64 : String senderName, String localizedString) => 65 0 : '$senderName changed the guest access rules to $localizedString'; 66 : 67 0 : @override 68 : String changedTheHistoryVisibility(String senderName) => 69 0 : '$senderName changed the history visibility'; 70 : 71 1 : @override 72 : String changedTheHistoryVisibilityTo( 73 : String senderName, String localizedString) => 74 1 : '$senderName changed the history visibility to $localizedString'; 75 : 76 0 : @override 77 : String changedTheJoinRules(String senderName) => 78 0 : '$senderName changed the join rules'; 79 : 80 1 : @override 81 : String changedTheJoinRulesTo(String senderName, String localizedString) => 82 1 : '$senderName changed the join rules to $localizedString'; 83 : 84 0 : @override 85 : String changedTheProfileAvatar(String targetName) => 86 0 : '$targetName changed the profile avatar'; 87 : 88 1 : @override 89 : String changedTheRoomAliases(String senderName) => 90 1 : '$senderName changed the room aliases'; 91 : 92 1 : @override 93 : String changedTheRoomInvitationLink(String senderName) => 94 1 : '$senderName changed the room invitation link'; 95 : 96 0 : @override 97 : String get channelCorruptedDecryptError => 98 : 'The secure channel has been corrupted'; 99 : 100 0 : @override 101 : String couldNotDecryptMessage(String errorText) => 102 0 : 'Could not decrypt message: $errorText'; 103 : 104 1 : @override 105 1 : String createdTheChat(String senderName) => '$senderName created the chat'; 106 : 107 7 : @override 108 : String get emptyChat => 'Empty chat'; 109 : 110 0 : @override 111 : String get encryptionNotEnabled => 'Encryption not enabled'; 112 : 113 2 : @override 114 : String get fromJoining => 'From joining'; 115 : 116 2 : @override 117 : String get fromTheInvitation => 'From the invitation'; 118 : 119 2 : @override 120 2 : String groupWith(String displayname) => 'Group with $displayname'; 121 : 122 2 : @override 123 : String get guestsAreForbidden => 'Guests are forbidden'; 124 : 125 2 : @override 126 : String get guestsCanJoin => 'Guests can join'; 127 : 128 1 : @override 129 : String hasWithdrawnTheInvitationFor(String senderName, String targetName) => 130 1 : '$senderName has withdrawn the invitation for $targetName'; 131 : 132 1 : @override 133 : String invitedUser(String senderName, String targetName) => 134 1 : '$senderName has invited $targetName'; 135 : 136 2 : @override 137 : String get invitedUsersOnly => 'Invited users only'; 138 : 139 1 : @override 140 1 : String joinedTheChat(String targetName) => '$targetName joined the chat'; 141 : 142 1 : @override 143 : String kicked(String senderName, String targetName) => 144 1 : '$senderName kicked $targetName'; 145 : 146 0 : @override 147 : String kickedAndBanned(String senderName, String targetName) => 148 0 : '$senderName banned $targetName'; 149 : 150 1 : @override 151 : String get needPantalaimonWarning => 'Need pantalaimon'; 152 : 153 0 : @override 154 : String get noPermission => 'No permission'; 155 : 156 1 : @override 157 : String redactedAnEvent(Event redactedEvent) => 158 3 : '${redactedEvent.senderFromMemoryOrFallback.calcDisplayname()} redacted an event'; 159 : 160 1 : @override 161 : String rejectedTheInvitation(String targetName) => 162 1 : '$targetName rejected the invitation'; 163 : 164 1 : @override 165 : String removedBy(Event redactedEvent) => 166 3 : 'Removed by ${redactedEvent.senderFromMemoryOrFallback.calcDisplayname()}'; 167 : 168 1 : @override 169 : String get roomHasBeenUpgraded => 'Room has been upgraded'; 170 : 171 1 : @override 172 1 : String sentAFile(String senderName) => '$senderName sent a file'; 173 : 174 1 : @override 175 1 : String sentAPicture(String senderName) => '$senderName sent a picture'; 176 : 177 1 : @override 178 1 : String sentASticker(String senderName) => '$senderName sent a sticker'; 179 : 180 1 : @override 181 1 : String sentAVideo(String senderName) => '$senderName sent a video'; 182 : 183 1 : @override 184 1 : String sentAnAudio(String senderName) => '$senderName sent an audio'; 185 : 186 1 : @override 187 : String sharedTheLocation(String senderName) => 188 1 : '$senderName shared the location'; 189 : 190 0 : @override 191 : String unbannedUser(String senderName, String targetName) => 192 0 : '$senderName unbanned $targetName'; 193 : 194 0 : @override 195 : String get unknownEncryptionAlgorithm => 'Unknown encryption algorithm'; 196 : 197 1 : @override 198 1 : String unknownEvent(String typeKey) => 'Unknown event $typeKey'; 199 : 200 0 : @override 201 0 : String userLeftTheChat(String targetName) => '$targetName left the chat'; 202 : 203 3 : @override 204 : String get visibleForAllParticipants => 'Visible for all participants'; 205 : 206 2 : @override 207 : String get visibleForEveryone => 'Visible for everyone'; 208 : 209 0 : @override 210 : String get you => 'You'; 211 : 212 0 : @override 213 : String answeredTheCall(String senderName) { 214 : return 'answeredTheCall'; 215 : } 216 : 217 0 : @override 218 : String endedTheCall(String senderName) { 219 : return 'endedTheCall'; 220 : } 221 : 222 0 : @override 223 : String sentCallInformations(String senderName) { 224 : return 'sentCallInformations'; 225 : } 226 : 227 0 : @override 228 : String startedACall(String senderName) { 229 : return 'startedACall'; 230 : } 231 : 232 0 : @override 233 : String sentReaction(String senderName, String reactionKey) { 234 0 : return '$senderName reacted with $reactionKey'; 235 : } 236 : 237 0 : @override 238 : String get youAcceptedTheInvitation => 'You accepted the invitation'; 239 : 240 0 : @override 241 0 : String youBannedUser(String targetName) => 'You have banned $targetName'; 242 : 243 0 : @override 244 : String youHaveWithdrawnTheInvitationFor(String targetName) => 245 0 : 'You have withdrawn the invitation for $targetName'; 246 : 247 0 : @override 248 : String youInvitedBy(String senderName) => 249 0 : 'You have been invited by $senderName'; 250 : 251 0 : @override 252 0 : String youInvitedUser(String targetName) => 'You invited $targetName'; 253 : 254 0 : @override 255 : String get youJoinedTheChat => 'You joined the chat'; 256 : 257 0 : @override 258 0 : String youKicked(String targetName) => 'You kicked $targetName'; 259 : 260 0 : @override 261 : String youKickedAndBanned(String targetName) => 262 0 : 'You kicked and banned $targetName'; 263 : 264 0 : @override 265 : String get youRejectedTheInvitation => 'You have rejected the invitation'; 266 : 267 0 : @override 268 0 : String youUnbannedUser(String targetName) => 'You unbanned $targetName'; 269 : 270 0 : @override 271 : String wasDirectChatDisplayName(String oldDisplayName) => 272 0 : 'Empty chat (was $oldDisplayName)'; 273 : 274 2 : @override 275 : String get unknownUser => 'Unknown user'; 276 : 277 0 : @override 278 0 : String hasKnocked(String targetName) => '$targetName has knocked'; 279 : 280 1 : @override 281 : String acceptedKeyVerification(String senderName) => 282 1 : '$senderName accepted key verification request'; 283 : 284 1 : @override 285 : String canceledKeyVerification(String senderName) => 286 1 : '$senderName canceled key verification'; 287 : 288 1 : @override 289 : String completedKeyVerification(String senderName) => 290 1 : '$senderName completed key verification'; 291 : 292 1 : @override 293 : String isReadyForKeyVerification(String senderName) => 294 1 : '$senderName is ready for key verification'; 295 : 296 1 : @override 297 : String requestedKeyVerification(String senderName) => 298 1 : '$senderName requested key verification'; 299 : 300 1 : @override 301 : String startedKeyVerification(String senderName) => 302 1 : '$senderName started key verification'; 303 : }