Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Migrate more strings to translation keys #11532

Merged
merged 3 commits into from
Sep 5, 2023
Merged

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Sep 5, 2023


This change is marked as an internal change (Task), so will not be included in the changelog.

replace "Usage" "slash_command|usage"
replace "Messages" "slash_command|category_messages"
replace "Actions" "slash_command|category_actions"
replace "Admin" "slash_command|category_admin"
replace "Advanced" "slash_command|category_advanced"
replace "Effects" "slash_command|category_effects"
replace "Other" "slash_command|category_other"

replace "You joined the call" "event_preview|m.call.answer|you"
replace "%(senderName)s joined the call" "event_preview|m.call.answer|user"
replace "Call in progress" "event_preview|m.call.answer|dm"
replace "You ended the call" "event_preview|m.call.hangup|you"
replace "%(senderName)s ended the call" "event_preview|m.call.hangup|user"
replace "Call ended" "event_preview|m.call.hangup|dm"
replace "You started a call" "event_preview|m.call.invite|you"
replace "%(senderName)s started a call" "event_preview|m.call.invite|user"
replace "Waiting for answer" "event_preview|m.call.invite|dm_send"
replace "%(senderName)s is calling" "event_preview|m.call.invite|dm_receive"
replace "* %(senderName)s %(emote)s" "event_preview|m.emote"
replace "%(senderName)s: %(message)s" "event_preview|m.text"
replace "You reacted %(reaction)s to %(message)s" "event_preview|m.reaction|you"
replace "%(sender)s reacted %(reaction)s to %(message)s" "event_preview|m.reaction|user"
replace "%(senderName)s: %(stickerName)s" "event_preview|m.sticker"

replace "Collecting app version information" "bug_reporting|collecting_information"
replace "Collecting logs" "bug_reporting|collecting_logs"
replace "Uploading logs" "bug_reporting|uploading_logs"
replace "Downloading logs" "bug_reporting|downloading_logs"

replace "Stickerpack" "common|stickerpack"
replace "System Alerts" "common|system_alerts"
replace "Secure Backup" "common|secure_backup"
replace "Cross-signing" "common|cross_signing"

# These 4 get clobbered to DRY
replace "Mute the microphone" "voip|disable_microphone"
replace "Unmute the microphone" "voip|enable_microphone"
replace "Stop the camera" "voip|disable_camera"
replace "Start the camera" "voip|enable_camera"

replace "Audio devices" "voip|audio_devices"
replace "Mute microphone" "voip|disable_microphone"
replace "Unmute microphone" "voip|enable_microphone"
replace "Video devices" "voip|video_devices"
replace "Turn off camera" "voip|disable_camera"
replace "Turn on camera" "voip|enable_camera"
replace "Dial" "voip|dial"
replace "You are presenting" "voip|you_are_presenting"
replace "%(sharerName)s is presenting" "voip|user_is_presenting"
replace "Your camera is turned off" "voip|camera_disabled"
replace "Your camera is still enabled" "voip|camera_enabled"
replace "Consulting with %(transferTarget)s. <a>Transfer to %(transferee)s</a>" "voip|consulting"
replace "You held the call <a>Switch</a>" "voip|call_held_switch"
replace "You held the call <a>Resume</a>" "voip|call_held_resume"
replace "%(peerName)s held the call" "voip|call_held"
replace "Dialpad" "voip|dialpad"
replace "Stop sharing your screen" "voip|stop_screenshare"
replace "Start sharing your screen" "voip|start_screenshare"
replace "Hangup" "voip|hangup"
replace "Fill screen" "voip|maximise"
replace "Return to call" "voip|expand"
replace "%(name)s on hold" "voip|on_hold"

replace "Voice call" "voip|voice_call"
replace "Video call" "voip|video_call"
replace "Video call started" "voip|video_call_started"
replace "Sound on" "voip|unsilence"
replace "Silence call" "voip|silence"
replace "Notifications silenced" "voip|silenced"
replace "Unknown caller" "voip|unknown_caller"
copy "common|room" "devtools|category_room"
copy "slash_command|category_messages" "Messages"
copy "slash_command|category_other" "devtools|category_other"
copy "slash_command|category_other" "Other"
copy "slash_command|category_advanced" "Advanced"
replace "event_preview|m.call.hangup|dm" "timeline|m.call.hangup|dm"
```
replace "Send message" "composer|send_button_title"
replace "Reply to encrypted thread…" "composer|placeholder_thread_encrypted"
replace "Reply to thread…" "composer|placeholder_thread"
replace "Send an encrypted reply…" "composer|placeholder_reply_encrypted"
replace "Send a reply…" "composer|placeholder_reply"
replace "Send an encrypted message…" "composer|placeholder_encrypted"
replace "Send a message…" "composer|placeholder"

replace "Change space avatar" "room_settings|permissions|m.room.avatar_space"
replace "Change room avatar" "room_settings|permissions|m.room.avatar"
replace "Change space name" "room_settings|permissions|m.room.name_space"
replace "Change room name" "room_settings|permissions|m.room.name"
replace "Change main address for the space" "room_settings|permissions|m.room.canonical_alias_space"
replace "Change main address for the room" "room_settings|permissions|m.room.canonical_alias"
replace "Manage rooms in this space" "room_settings|permissions|m.space.child"
replace "Change history visibility" "room_settings|permissions|m.room.history_visibility"
replace "Change permissions" "room_settings|permissions|m.room.power_levels"
replace "Change description" "room_settings|permissions|m.room.topic_space"
replace "Change topic" "room_settings|permissions|m.room.topic"
replace "Upgrade the room" "room_settings|permissions|m.room.tombstone"
replace "Enable room encryption" "room_settings|permissions|m.room.encryption"
replace "Change server ACLs" "room_settings|permissions|m.room.server_acl"
replace "Send reactions" "room_settings|permissions|m.reaction"
replace "Remove messages sent by me" "room_settings|permissions|m.room.redaction"
replace "Modify widgets" "room_settings|permissions|m.widget"
replace "Voice broadcasts" "room_settings|permissions|io.element.voice_broadcast_info"
replace "Manage pinned events" "room_settings|permissions|m.room.pinned_events"
replace "Start %(brand)s calls" "room_settings|permissions|m.call"
replace "Join %(brand)s calls" "room_settings|permissions|m.call.member"
replace "Default role" "room_settings|permissions|users_default"
replace "Send messages" "room_settings|permissions|events_default"
replace "Invite users" "room_settings|permissions|invite"
replace "Change settings" "room_settings|permissions|state_default"
replace "Remove users" "room_settings|permissions|kick"
replace "Ban users" "room_settings|permissions|ban"
replace "Remove messages sent by others" "room_settings|permissions|redact"
replace "Notify everyone" "room_settings|permissions|notifications.room"

replace "Call Failed" "voip|call_failed"
replace "Unable to access microphone" "voip|unable_to_access_microphone"
replace "Call failed because microphone could not be accessed. Check that a microphone is plugged in and set up correctly." "voip|call_failed_microphone"
replace "Unable to access webcam / microphone" "voip|unable_to_access_media"
replace "Call failed because webcam or microphone could not be accessed. Check that:" "voip|call_failed_media"
replace "A microphone and webcam are plugged in and set up correctly" "voip|call_failed_media_connected"
replace "Permission is granted to use the webcam" "voip|call_failed_media_permissions"
replace "No other application is using the webcam" "voip|call_failed_media_applications"
replace "Already in call" "voip|already_in_call"
replace "You're already in a call with this person." "voip|already_in_call_person"
replace "Calls are unsupported" "voip|unsupported"
replace "You cannot place calls in this browser." "voip|unsupported_browser"
```
@t3chguy t3chguy added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Sep 5, 2023
@t3chguy t3chguy self-assigned this Sep 5, 2023
@t3chguy t3chguy marked this pull request as ready for review September 5, 2023 11:32
@t3chguy t3chguy requested a review from a team as a code owner September 5, 2023 11:32
Copy link
Contributor

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mostly scrolled past the changes to the translation files, but looks good, thanks!

@t3chguy t3chguy merged commit 85be845 into develop Sep 5, 2023
44 of 73 checks passed
@t3chguy t3chguy deleted the t3chguy/localazy/keys-8 branch September 5, 2023 16:52
nurjinjafar pushed a commit to nordeck/matrix-react-sdk that referenced this pull request Sep 6, 2023
github-merge-queue bot pushed a commit that referenced this pull request Sep 7, 2023
* Implement denied request mask and logic

Signed-off-by: AHMAD KADRI <52747422+ahmadkadri@users.noreply.github.com>

* refactor / fix deny requests isues

* fix tests create denied message test

Signed-off-by: AHMAD KADRI <52747422+ahmadkadri@users.noreply.github.com>

* add another test for the primary action for denied request

Signed-off-by: AHMAD KADRI <52747422+ahmadkadri@users.noreply.github.com>

* fix linter issues

Signed-off-by: nurjinn jafar <nurjin.jafar@nordeck.net>

* regenerate translation

Signed-off-by: nurjinn jafar <nurjin.jafar@nordeck.net>

* fix translation and minor refactoring
Signed-off-by: nurjinn jafar <nurjin.jafar@nordeck.net>

* segment into 4

* Remove parallel from Cypress command to avoid talking to Cypress Cloud

* Re-add --parallel flag for Percy

* Prevent event propagation when clicking icon buttons (#11515)

* Prevent event propagation when clicking icon buttons

* Inhibit view user on click behaviour for room header face pile

* Update snapshot

* Add a 'm.relates_to' to edits in receipt tests and disable failing tests (#11501)

* Add a 'm.relates_to' to edits in receipt tests

* Disable a test that fails with real edits

* Wait for the room to be read after we mark it as read

* Skip tests that are failing because of inconsistencies between local and CI behaviour

* Allow creating public knock rooms (#11481)

* Allow creating public knock rooms

Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>

* Apply PR feedback

Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>

* Apply PR feedback

Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>

---------

Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>

* Collect `console.debug` logs during cypress tests (#11478)

In order for the logs collected by cypress to actually be useful, we really
need `cons:debug`.

* Migrate more strings to translation keys (#11522)

* Only show Search button in RoomSummaryCard if new room UI enabled (#11524)

* Only show Search button in RoomSummaryCard if new room UI enabled

* Update snapshot

* Update vector-im (#11526)

* Update vector-im

* Update snapshots of Compound Avatars

* Update snapshots of Compound Avatars

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* Migrate more strings to translation keys (#11530)

* Fix regression around FacePile with overflow (#11527)

* Work around compound-web AvatarStack not applying overlap to non-Avatars

* Fix FacePile overflow tile not being layed out correctly

* Use RoomStateEvent.Update for knocks (#11516)

Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>

* Cypress tests for event shields (#11525)

* Factor downloadKey out to `utils.ts`

* Add a new `describe` block for event shields

* create a beforeEach block

* Cypress tests for event shields

* Document how to match the CI config for Cypress (#11531)

* Document how to match the CI config for Cypress

* Clarify language about needing Chrome

* Move Cypress info into the Cypress-specific docs

* Migrate more strings to translation keys (#11532)

---------

Signed-off-by: AHMAD KADRI <52747422+ahmadkadri@users.noreply.github.com>
Signed-off-by: nurjinn jafar <nurjin.jafar@nordeck.net>
Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>
Co-authored-by: AHMAD KADRI <52747422+ahmadkadri@users.noreply.github.com>
Co-authored-by: Kerry Archibald <kerrya@element.io>
Co-authored-by: Andy Balaam <andy.balaam@matrix.org>
Co-authored-by: Johannes Marbach <johannesm@element.io>
Co-authored-by: Germain <germains@element.io>
Co-authored-by: Charly Nguyen <1422657+charlynguyen@users.noreply.github.com>
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants