Element devs changed all the paths...again
This commit is contained in:
@@ -45,10 +45,10 @@ error() {
|
||||
|
||||
# Remove
|
||||
sed -i -e "s/remove/${remove_command}/g" \
|
||||
-e "s/Removes/${capital_remove_command_plural}/g" "${1}"/src/slash-commands/SlashCommands.tsx
|
||||
-e "s/Removes/${capital_remove_command_plural}/g" "${1}"/apps/web/src/slash-commands/SlashCommands.tsx
|
||||
|
||||
sed -i -e "s/\"Remove/\"${capital_remove_command}/g" \
|
||||
-e "s/Failed to remove/Failed to ${remove_command}/g" "${1}"/src/components/views/right_panel/UserInfo.tsx
|
||||
-e "s/Failed to remove/Failed to ${remove_command}/g" "${1}"/apps/web/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" \
|
||||
@@ -58,16 +58,16 @@ sed -i -e "s/Removes user/${capital_remove_command_plural} user/g" \
|
||||
-e "s/Remove from space/${capital_remove_command}/g" \
|
||||
-e "s/Remove from %(roomName)s/${capital_remove_command} from %(roomName)s/g" \
|
||||
-e "s/\"Remove them/\"${capital_remove_command} ${them}/g" \
|
||||
-e "s/removed\"/${remove_command_past_tense}\"/g" "${1}"/src/i18n/strings/en_EN.json
|
||||
-e "s/removed\"/${remove_command_past_tense}\"/g" "${1}"/apps/web/src/i18n/strings/en_EN.json
|
||||
|
||||
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
|
||||
sed -i -e "s/senderName)s removed %(targetName/senderName)s ${remove_command_past_tense} %(targetName/g" "${1}"/apps/web/src/TextForEvent.tsx
|
||||
sed -i -e "s/removed/${remove_command_past_tense}/g" "${1}"/apps/web/src/components/views/rooms/RoomPreviewBar.tsx
|
||||
sed -i -e "s/Remove users/${capital_remove_command} users/g" "${1}"/apps/web/src/components/views/settings/tabs/room/RolesRoomSettingsTab.tsx
|
||||
sed -i -e "s/${capital_remove_command} recent/Remove recent/g" "${1}"/apps/web/src/i18n/strings/en_EN.json
|
||||
sed -i -e "s/${capital_remove_command} recent/Remove recent/g" "${1}"/apps/web/src/components/views/right_panel/UserInfo.tsx
|
||||
|
||||
# Ban
|
||||
sed -i -e "s/\"Ban\"/\"${capital_ban_command}\"/g" "${1}"/src/components/views/right_panel/UserInfo.tsx || error
|
||||
sed -i -e "s/\"Ban\"/\"${capital_ban_command}\"/g" "${1}"/apps/web/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" \
|
||||
@@ -83,7 +83,7 @@ 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}"/src/i18n/strings/en_EN.json || error
|
||||
-e "s/s banned %(targetName)s\",/s ${ban_command_past_tense} %(targetName)s\",/g" "${1}"/apps/web/src/i18n/strings/en_EN.json || error
|
||||
|
||||
echo "Replacing gender neutral pronouns..."
|
||||
# Gender neutral pronouns
|
||||
@@ -98,4 +98,4 @@ sed -i -e "s/oneUser)schanged their profile picture/oneUser)schanged ${their} pr
|
||||
-e "s/before they can be invited/before ${they} can be invited/g" \
|
||||
-e "s/until they are unbanned/until ${they} is unbanned/g" \
|
||||
-e "s/them out and prevent them from logging back in. Additionally, they will leave all the rooms they are/${them} out and prevent ${them} from logging back in. Additionally, ${they} will leave all the rooms ${they} is/g" \
|
||||
-e "s/oneUser)shad their invitation/oneUser)shad ${their} invitation/g" "${1}"/src/i18n/strings/en_EN.json || error
|
||||
-e "s/oneUser)shad their invitation/oneUser)shad ${their} invitation/g" "${1}"/apps/web/src/i18n/strings/en_EN.json || error
|
||||
|
||||
Reference in New Issue
Block a user