LCOV - code coverage report
Current view: top level - lib/src/utils - matrix_default_localizations.dart (source / functions) Hit Total Coverage
Test: merged.info Lines: 80 134 59.7 %
Date: 2024-09-04 20:26:16 Functions: 0 0 -

          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         169 :   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           2 :   @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           2 :   @override
     129             :   String get cancelledSend => 'Cancelled sending message';
     130             : 
     131           1 :   @override
     132             :   String hasWithdrawnTheInvitationFor(String senderName, String targetName) =>
     133           1 :       '$senderName has withdrawn the invitation for $targetName';
     134             : 
     135           1 :   @override
     136             :   String invitedUser(String senderName, String targetName) =>
     137           1 :       '$senderName has invited $targetName';
     138             : 
     139           2 :   @override
     140             :   String get invitedUsersOnly => 'Invited users only';
     141             : 
     142           1 :   @override
     143           1 :   String joinedTheChat(String targetName) => '$targetName joined the chat';
     144             : 
     145           1 :   @override
     146             :   String kicked(String senderName, String targetName) =>
     147           1 :       '$senderName kicked $targetName';
     148             : 
     149           0 :   @override
     150             :   String kickedAndBanned(String senderName, String targetName) =>
     151           0 :       '$senderName banned $targetName';
     152             : 
     153           1 :   @override
     154             :   String get needPantalaimonWarning => 'Need pantalaimon';
     155             : 
     156           0 :   @override
     157             :   String get noPermission => 'No permission';
     158             : 
     159           1 :   @override
     160             :   String redactedAnEvent(Event redactedEvent) =>
     161           3 :       '${redactedEvent.senderFromMemoryOrFallback.calcDisplayname()} redacted an event';
     162             : 
     163           1 :   @override
     164             :   String rejectedTheInvitation(String targetName) =>
     165           1 :       '$targetName rejected the invitation';
     166             : 
     167           1 :   @override
     168             :   String removedBy(Event redactedEvent) =>
     169           3 :       'Removed by ${redactedEvent.senderFromMemoryOrFallback.calcDisplayname()}';
     170             : 
     171           1 :   @override
     172             :   String get roomHasBeenUpgraded => 'Room has been upgraded';
     173             : 
     174           1 :   @override
     175           1 :   String sentAFile(String senderName) => '$senderName sent a file';
     176             : 
     177           1 :   @override
     178           1 :   String sentAPicture(String senderName) => '$senderName sent a picture';
     179             : 
     180           1 :   @override
     181           1 :   String sentASticker(String senderName) => '$senderName sent a sticker';
     182             : 
     183           1 :   @override
     184           1 :   String sentAVideo(String senderName) => '$senderName sent a video';
     185             : 
     186           1 :   @override
     187           1 :   String sentAnAudio(String senderName) => '$senderName sent an audio';
     188             : 
     189           1 :   @override
     190             :   String sharedTheLocation(String senderName) =>
     191           1 :       '$senderName shared the location';
     192             : 
     193           0 :   @override
     194             :   String unbannedUser(String senderName, String targetName) =>
     195           0 :       '$senderName unbanned $targetName';
     196             : 
     197           0 :   @override
     198             :   String get unknownEncryptionAlgorithm => 'Unknown encryption algorithm';
     199             : 
     200           1 :   @override
     201           1 :   String unknownEvent(String typeKey) => 'Unknown event $typeKey';
     202             : 
     203           0 :   @override
     204           0 :   String userLeftTheChat(String targetName) => '$targetName left the chat';
     205             : 
     206           3 :   @override
     207             :   String get visibleForAllParticipants => 'Visible for all participants';
     208             : 
     209           2 :   @override
     210             :   String get visibleForEveryone => 'Visible for everyone';
     211             : 
     212           0 :   @override
     213             :   String get you => 'You';
     214             : 
     215           0 :   @override
     216             :   String answeredTheCall(String senderName) {
     217             :     return 'answeredTheCall';
     218             :   }
     219             : 
     220           0 :   @override
     221             :   String endedTheCall(String senderName) {
     222             :     return 'endedTheCall';
     223             :   }
     224             : 
     225           0 :   @override
     226             :   String sentCallInformations(String senderName) {
     227             :     return 'sentCallInformations';
     228             :   }
     229             : 
     230           0 :   @override
     231             :   String startedACall(String senderName) {
     232             :     return 'startedACall';
     233             :   }
     234             : 
     235           0 :   @override
     236             :   String sentReaction(String senderName, String reactionKey) {
     237           0 :     return '$senderName reacted with $reactionKey';
     238             :   }
     239             : 
     240           0 :   @override
     241             :   String get youAcceptedTheInvitation => 'You accepted the invitation';
     242             : 
     243           0 :   @override
     244           0 :   String youBannedUser(String targetName) => 'You have banned $targetName';
     245             : 
     246           0 :   @override
     247             :   String youHaveWithdrawnTheInvitationFor(String targetName) =>
     248           0 :       'You have withdrawn the invitation for $targetName';
     249             : 
     250           0 :   @override
     251             :   String youInvitedBy(String senderName) =>
     252           0 :       'You have been invited by $senderName';
     253             : 
     254           0 :   @override
     255           0 :   String invitedBy(String senderName) => 'Invited by $senderName';
     256             : 
     257           0 :   @override
     258           0 :   String youInvitedUser(String targetName) => 'You invited $targetName';
     259             : 
     260           0 :   @override
     261             :   String get youJoinedTheChat => 'You joined the chat';
     262             : 
     263           0 :   @override
     264           0 :   String youKicked(String targetName) => 'You kicked $targetName';
     265             : 
     266           0 :   @override
     267             :   String youKickedAndBanned(String targetName) =>
     268           0 :       'You kicked and banned $targetName';
     269             : 
     270           0 :   @override
     271             :   String get youRejectedTheInvitation => 'You have rejected the invitation';
     272             : 
     273           0 :   @override
     274           0 :   String youUnbannedUser(String targetName) => 'You unbanned $targetName';
     275             : 
     276           0 :   @override
     277             :   String wasDirectChatDisplayName(String oldDisplayName) =>
     278           0 :       'Empty chat (was $oldDisplayName)';
     279             : 
     280           2 :   @override
     281             :   String get unknownUser => 'Unknown user';
     282             : 
     283           0 :   @override
     284           0 :   String hasKnocked(String targetName) => '$targetName has knocked';
     285             : 
     286           1 :   @override
     287             :   String acceptedKeyVerification(String senderName) =>
     288           1 :       '$senderName accepted key verification request';
     289             : 
     290           1 :   @override
     291             :   String canceledKeyVerification(String senderName) =>
     292           1 :       '$senderName canceled key verification';
     293             : 
     294           1 :   @override
     295             :   String completedKeyVerification(String senderName) =>
     296           1 :       '$senderName completed key verification';
     297             : 
     298           1 :   @override
     299             :   String isReadyForKeyVerification(String senderName) =>
     300           1 :       '$senderName is ready for key verification';
     301             : 
     302           1 :   @override
     303             :   String requestedKeyVerification(String senderName) =>
     304           1 :       '$senderName requested key verification';
     305             : 
     306           1 :   @override
     307             :   String startedKeyVerification(String senderName) =>
     308           1 :       '$senderName started key verification';
     309             : }

Generated by: LCOV version 1.14