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-11-12 07:37:08 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         170 :   const MatrixDefaultLocalizations();
      23           2 :   @override
      24             :   String acceptedTheInvitation(String targetName) =>
      25           2 :       '$targetName accepted the invitation';
      26             : 
      27           2 :   @override
      28             :   String activatedEndToEndEncryption(String senderName) =>
      29           2 :       '$senderName activated end to end encryption';
      30             : 
      31           4 :   @override
      32             :   String get anyoneCanJoin => 'Anyone can join';
      33             : 
      34           2 :   @override
      35             :   String bannedUser(String senderName, String targetName) =>
      36           2 :       '$senderName banned $targetName';
      37             : 
      38           2 :   @override
      39             :   String changedTheChatAvatar(String senderName) =>
      40           2 :       '$senderName changed the chat avatar';
      41             : 
      42           2 :   @override
      43             :   String changedTheChatDescriptionTo(String senderName, String content) =>
      44           2 :       '$senderName changed the chat description to $content';
      45             : 
      46           2 :   @override
      47             :   String changedTheChatNameTo(String senderName, String content) =>
      48           2 :       '$senderName changed the chat name to $content';
      49             : 
      50           2 :   @override
      51             :   String changedTheChatPermissions(String senderName) =>
      52           2 :       '$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,
      65             :     String localizedString,
      66             :   ) =>
      67           0 :       '$senderName changed the guest access rules to $localizedString';
      68             : 
      69           0 :   @override
      70             :   String changedTheHistoryVisibility(String senderName) =>
      71           0 :       '$senderName changed the history visibility';
      72             : 
      73           2 :   @override
      74             :   String changedTheHistoryVisibilityTo(
      75             :     String senderName,
      76             :     String localizedString,
      77             :   ) =>
      78           2 :       '$senderName changed the history visibility to $localizedString';
      79             : 
      80           0 :   @override
      81             :   String changedTheJoinRules(String senderName) =>
      82           0 :       '$senderName changed the join rules';
      83             : 
      84           2 :   @override
      85             :   String changedTheJoinRulesTo(String senderName, String localizedString) =>
      86           2 :       '$senderName changed the join rules to $localizedString';
      87             : 
      88           0 :   @override
      89             :   String changedTheProfileAvatar(String targetName) =>
      90           0 :       '$targetName changed the profile avatar';
      91             : 
      92           2 :   @override
      93             :   String changedTheRoomAliases(String senderName) =>
      94           2 :       '$senderName changed the room aliases';
      95             : 
      96           2 :   @override
      97             :   String changedTheRoomInvitationLink(String senderName) =>
      98           2 :       '$senderName changed the room invitation link';
      99             : 
     100           0 :   @override
     101             :   String get channelCorruptedDecryptError =>
     102             :       'The secure channel has been corrupted';
     103             : 
     104           0 :   @override
     105             :   String couldNotDecryptMessage(String errorText) =>
     106           0 :       'Could not decrypt message: $errorText';
     107             : 
     108           2 :   @override
     109           2 :   String createdTheChat(String senderName) => '$senderName created the chat';
     110             : 
     111           2 :   @override
     112             :   String get emptyChat => 'Empty chat';
     113             : 
     114           0 :   @override
     115             :   String get encryptionNotEnabled => 'Encryption not enabled';
     116             : 
     117           2 :   @override
     118             :   String get fromJoining => 'From joining';
     119             : 
     120           2 :   @override
     121             :   String get fromTheInvitation => 'From the invitation';
     122             : 
     123           2 :   @override
     124           2 :   String groupWith(String displayname) => 'Group with $displayname';
     125             : 
     126           2 :   @override
     127             :   String get guestsAreForbidden => 'Guests are forbidden';
     128             : 
     129           2 :   @override
     130             :   String get guestsCanJoin => 'Guests can join';
     131             : 
     132           2 :   @override
     133             :   String get cancelledSend => 'Cancelled sending message';
     134             : 
     135           2 :   @override
     136             :   String hasWithdrawnTheInvitationFor(String senderName, String targetName) =>
     137           2 :       '$senderName has withdrawn the invitation for $targetName';
     138             : 
     139           2 :   @override
     140             :   String invitedUser(String senderName, String targetName) =>
     141           2 :       '$senderName has invited $targetName';
     142             : 
     143           2 :   @override
     144             :   String get invitedUsersOnly => 'Invited users only';
     145             : 
     146           2 :   @override
     147           2 :   String joinedTheChat(String targetName) => '$targetName joined the chat';
     148             : 
     149           2 :   @override
     150             :   String kicked(String senderName, String targetName) =>
     151           2 :       '$senderName kicked $targetName';
     152             : 
     153           0 :   @override
     154             :   String kickedAndBanned(String senderName, String targetName) =>
     155           0 :       '$senderName banned $targetName';
     156             : 
     157           2 :   @override
     158             :   String get needPantalaimonWarning => 'Need pantalaimon';
     159             : 
     160           0 :   @override
     161             :   String get noPermission => 'No permission';
     162             : 
     163           2 :   @override
     164             :   String redactedAnEvent(Event redactedEvent) =>
     165           6 :       '${redactedEvent.senderFromMemoryOrFallback.calcDisplayname()} redacted an event';
     166             : 
     167           2 :   @override
     168             :   String rejectedTheInvitation(String targetName) =>
     169           2 :       '$targetName rejected the invitation';
     170             : 
     171           2 :   @override
     172             :   String removedBy(Event redactedEvent) =>
     173           6 :       'Removed by ${redactedEvent.senderFromMemoryOrFallback.calcDisplayname()}';
     174             : 
     175           2 :   @override
     176             :   String get roomHasBeenUpgraded => 'Room has been upgraded';
     177             : 
     178           2 :   @override
     179           2 :   String sentAFile(String senderName) => '$senderName sent a file';
     180             : 
     181           2 :   @override
     182           2 :   String sentAPicture(String senderName) => '$senderName sent a picture';
     183             : 
     184           2 :   @override
     185           2 :   String sentASticker(String senderName) => '$senderName sent a sticker';
     186             : 
     187           2 :   @override
     188           2 :   String sentAVideo(String senderName) => '$senderName sent a video';
     189             : 
     190           2 :   @override
     191           2 :   String sentAnAudio(String senderName) => '$senderName sent an audio';
     192             : 
     193           2 :   @override
     194             :   String sharedTheLocation(String senderName) =>
     195           2 :       '$senderName shared the location';
     196             : 
     197           0 :   @override
     198             :   String unbannedUser(String senderName, String targetName) =>
     199           0 :       '$senderName unbanned $targetName';
     200             : 
     201           0 :   @override
     202             :   String get unknownEncryptionAlgorithm => 'Unknown encryption algorithm';
     203             : 
     204           2 :   @override
     205           2 :   String unknownEvent(String typeKey) => 'Unknown event $typeKey';
     206             : 
     207           0 :   @override
     208           0 :   String userLeftTheChat(String targetName) => '$targetName left the chat';
     209             : 
     210           4 :   @override
     211             :   String get visibleForAllParticipants => 'Visible for all participants';
     212             : 
     213           2 :   @override
     214             :   String get visibleForEveryone => 'Visible for everyone';
     215             : 
     216           0 :   @override
     217             :   String get you => 'You';
     218             : 
     219           0 :   @override
     220             :   String answeredTheCall(String senderName) {
     221             :     return 'answeredTheCall';
     222             :   }
     223             : 
     224           0 :   @override
     225             :   String endedTheCall(String senderName) {
     226             :     return 'endedTheCall';
     227             :   }
     228             : 
     229           0 :   @override
     230             :   String sentCallInformations(String senderName) {
     231             :     return 'sentCallInformations';
     232             :   }
     233             : 
     234           0 :   @override
     235             :   String startedACall(String senderName) {
     236             :     return 'startedACall';
     237             :   }
     238             : 
     239           0 :   @override
     240             :   String sentReaction(String senderName, String reactionKey) {
     241           0 :     return '$senderName reacted with $reactionKey';
     242             :   }
     243             : 
     244           0 :   @override
     245             :   String get youAcceptedTheInvitation => 'You accepted the invitation';
     246             : 
     247           0 :   @override
     248           0 :   String youBannedUser(String targetName) => 'You have banned $targetName';
     249             : 
     250           0 :   @override
     251             :   String youHaveWithdrawnTheInvitationFor(String targetName) =>
     252           0 :       'You have withdrawn the invitation for $targetName';
     253             : 
     254           0 :   @override
     255             :   String youInvitedBy(String senderName) =>
     256           0 :       'You have been invited by $senderName';
     257             : 
     258           0 :   @override
     259           0 :   String invitedBy(String senderName) => 'Invited by $senderName';
     260             : 
     261           0 :   @override
     262           0 :   String youInvitedUser(String targetName) => 'You invited $targetName';
     263             : 
     264           0 :   @override
     265             :   String get youJoinedTheChat => 'You joined the chat';
     266             : 
     267           0 :   @override
     268           0 :   String youKicked(String targetName) => 'You kicked $targetName';
     269             : 
     270           0 :   @override
     271             :   String youKickedAndBanned(String targetName) =>
     272           0 :       'You kicked and banned $targetName';
     273             : 
     274           0 :   @override
     275             :   String get youRejectedTheInvitation => 'You have rejected the invitation';
     276             : 
     277           0 :   @override
     278           0 :   String youUnbannedUser(String targetName) => 'You unbanned $targetName';
     279             : 
     280           0 :   @override
     281             :   String wasDirectChatDisplayName(String oldDisplayName) =>
     282           0 :       'Empty chat (was $oldDisplayName)';
     283             : 
     284           2 :   @override
     285             :   String get unknownUser => 'Unknown user';
     286             : 
     287           0 :   @override
     288           0 :   String hasKnocked(String targetName) => '$targetName has knocked';
     289             : 
     290           2 :   @override
     291             :   String acceptedKeyVerification(String senderName) =>
     292           2 :       '$senderName accepted key verification request';
     293             : 
     294           2 :   @override
     295             :   String canceledKeyVerification(String senderName) =>
     296           2 :       '$senderName canceled key verification';
     297             : 
     298           2 :   @override
     299             :   String completedKeyVerification(String senderName) =>
     300           2 :       '$senderName completed key verification';
     301             : 
     302           2 :   @override
     303             :   String isReadyForKeyVerification(String senderName) =>
     304           2 :       '$senderName is ready for key verification';
     305             : 
     306           2 :   @override
     307             :   String requestedKeyVerification(String senderName) =>
     308           2 :       '$senderName requested key verification';
     309             : 
     310           2 :   @override
     311             :   String startedKeyVerification(String senderName) =>
     312           2 :       '$senderName started key verification';
     313             : }

Generated by: LCOV version 1.14