Fix patches to account for matrix-react-sdk being merged into element-web
This commit is contained in:
@@ -41,26 +41,26 @@ error() {
|
||||
|
||||
# Remove
|
||||
sed -i -e "s/remove/${remove_command}/g" \
|
||||
-e "s/Removes/${capital_remove_command_plural}/g" "${1}"/node_modules/matrix-react-sdk/src/SlashCommands.tsx
|
||||
-e "s/Removes/${capital_remove_command_plural}/g" "${1}"/src/SlashCommands.tsx
|
||||
|
||||
sed -i -e "s/\"Remove/\"${capital_remove_command}/g" \
|
||||
-e "s/Failed to remove/Failed to ${remove_command}/g" "${1}"/node_modules/matrix-react-sdk/src/components/views/right_panel/UserInfo.tsx
|
||||
-e "s/Failed to remove/Failed to ${remove_command}/g" "${1}"/src/components/views/right_panel/UserInfo.tsx
|
||||
|
||||
sed -i -e "s/Removes user/${capital_remove_command_plural} user/g" \
|
||||
-e "s/)s removed %(tar/)s ${remove_command_past_tense} %(tar/g" \
|
||||
-e "s/\"Remove,/\"${capital_remove_command},/g" \
|
||||
-e "s/You were removed/You were ${remove_command_past_tense}/g" \
|
||||
-e "s/Remove from/${capital_remove_command} from/g" \
|
||||
-e "s/removed\"/${remove_command_past_tense}\"/g" "${1}"/node_modules/matrix-react-sdk/src/i18n/strings/en_EN.json
|
||||
-e "s/removed\"/${remove_command_past_tense}\"/g" "${1}"/src/i18n/strings/en_EN.json
|
||||
|
||||
sed -i -e "s/senderName)s removed %(targetName/senderName)s ${remove_command_past_tense} %(targetName/g" "${1}"/node_modules/matrix-react-sdk/src/TextForEvent.tsx
|
||||
sed -i -e "s/removed/${remove_command_past_tense}/g" "${1}"/node_modules/matrix-react-sdk/src/components/views/rooms/RoomPreviewBar.tsx
|
||||
sed -i -e "s/Remove users/${capital_remove_command} users/g" "${1}"/node_modules/matrix-react-sdk/src/components/views/settings/tabs/room/RolesRoomSettingsTab.tsx
|
||||
sed -i -e "s/${capital_remove_command} recent/Remove recent/g" "${1}"/node_modules/matrix-react-sdk/src/i18n/strings/en_EN.json
|
||||
sed -i -e "s/${capital_remove_command} recent/Remove recent/g" "${1}"/node_modules/matrix-react-sdk/src/components/views/right_panel/UserInfo.tsx
|
||||
sed -i -e "s/senderName)s removed %(targetName/senderName)s ${remove_command_past_tense} %(targetName/g" "${1}"/src/TextForEvent.tsx
|
||||
sed -i -e "s/removed/${remove_command_past_tense}/g" "${1}"/src/components/views/rooms/RoomPreviewBar.tsx
|
||||
sed -i -e "s/Remove users/${capital_remove_command} users/g" "${1}"/src/components/views/settings/tabs/room/RolesRoomSettingsTab.tsx
|
||||
sed -i -e "s/${capital_remove_command} recent/Remove recent/g" "${1}"/src/i18n/strings/en_EN.json
|
||||
sed -i -e "s/${capital_remove_command} recent/Remove recent/g" "${1}"/src/components/views/right_panel/UserInfo.tsx
|
||||
|
||||
# Ban
|
||||
sed -i -e "s/\"Ban\"/\"${capital_ban_command}\"/g" "${1}"/node_modules/matrix-react-sdk/src/components/views/right_panel/UserInfo.tsx || error
|
||||
sed -i -e "s/\"Ban\"/\"${capital_ban_command}\"/g" "${1}"/src/components/views/right_panel/UserInfo.tsx || error
|
||||
|
||||
sed -i -e "s/Bans user with given id\",/${capital_ban_command_plural} user with given id\",/g" \
|
||||
-e "s/\"Ban from %(roomName)s\",/\"${capital_ban_command} from %(roomName)s\",/g" \
|
||||
@@ -73,4 +73,4 @@ sed -i -e "s/Bans user with given id\",/${capital_ban_command_plural} user with
|
||||
-e "s/banned from %(roomName)s by %(memberName)s\",/${ban_command_past_tense} from %(roomName)s by %(memberName)s\",/g" \
|
||||
-e "s/were banned %(count)s times\",/were ${ban_command_past_tense} %(count)s times\",/g" \
|
||||
-e "s/s banned %(targetName)s: %(reason)s\",/s ${ban_command_past_tense} %(targetName)s: %(reason)s\",/g" \
|
||||
-e "s/s banned %(targetName)s\",/s ${ban_command_past_tense} %(targetName)s\",/g" "${1}"/node_modules/matrix-react-sdk/src/i18n/strings/en_EN.json || error
|
||||
-e "s/s banned %(targetName)s\",/s ${ban_command_past_tense} %(targetName)s\",/g" "${1}"/src/i18n/strings/en_EN.json || error
|
||||
|
Reference in New Issue
Block a user