Use brand variable consistently (#10867)

This commit is contained in:
Michael Telatynski 2023-05-12 11:25:20 +01:00 committed by GitHub
parent 684141d310
commit e6421fded5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -28,6 +28,7 @@ import EventTileBubble from "../views/messages/EventTileBubble";
import NewRoomIntro from "../views/rooms/NewRoomIntro"; import NewRoomIntro from "../views/rooms/NewRoomIntro";
import { UnwrappedEventTile } from "../views/rooms/EventTile"; import { UnwrappedEventTile } from "../views/rooms/EventTile";
import { _t } from "../../languageHandler"; import { _t } from "../../languageHandler";
import SdkConfig from "../../SdkConfig";
interface Props { interface Props {
roomView: RefObject<HTMLElement>; roomView: RefObject<HTMLElement>;
@ -42,6 +43,7 @@ interface Props {
*/ */
export const WaitingForThirdPartyRoomView: React.FC<Props> = ({ roomView, resizeNotifier, inviteEvent }) => { export const WaitingForThirdPartyRoomView: React.FC<Props> = ({ roomView, resizeNotifier, inviteEvent }) => {
const context = useRoomContext(); const context = useRoomContext();
const brand = SdkConfig.get().brand;
return ( return (
<div className="mx_RoomView mx_RoomView--local"> <div className="mx_RoomView mx_RoomView--local">
@ -66,9 +68,11 @@ export const WaitingForThirdPartyRoomView: React.FC<Props> = ({ roomView, resize
<ScrollPanel className="mx_RoomView_messagePanel" resizeNotifier={resizeNotifier}> <ScrollPanel className="mx_RoomView_messagePanel" resizeNotifier={resizeNotifier}>
<EventTileBubble <EventTileBubble
className="mx_cryptoEvent mx_cryptoEvent_icon" className="mx_cryptoEvent mx_cryptoEvent_icon"
title={_t("Waiting for users to join Element")} title={_t("Waiting for users to join %(brand)s", { brand })}
subtitle={_t( subtitle={_t(
"Once invited users have joined Element, you will be able to chat and the room will be end-to-end encrypted", "Once invited users have joined %(brand)s, " +
"you will be able to chat and the room will be end-to-end encrypted",
{ brand },
)} )}
/> />
<NewRoomIntro /> <NewRoomIntro />

View file

@ -3529,8 +3529,8 @@
"Original event source": "Original event source", "Original event source": "Original event source",
"Event ID: %(eventId)s": "Event ID: %(eventId)s", "Event ID: %(eventId)s": "Event ID: %(eventId)s",
"Thread root ID: %(threadRootId)s": "Thread root ID: %(threadRootId)s", "Thread root ID: %(threadRootId)s": "Thread root ID: %(threadRootId)s",
"Waiting for users to join Element": "Waiting for users to join Element", "Waiting for users to join %(brand)s": "Waiting for users to join %(brand)s",
"Once invited users have joined Element, you will be able to chat and the room will be end-to-end encrypted": "Once invited users have joined Element, you will be able to chat and the room will be end-to-end encrypted", "Once invited users have joined %(brand)s, you will be able to chat and the room will be end-to-end encrypted": "Once invited users have joined %(brand)s, you will be able to chat and the room will be end-to-end encrypted",
"Unable to verify this device": "Unable to verify this device", "Unable to verify this device": "Unable to verify this device",
"Verify this device": "Verify this device", "Verify this device": "Verify this device",
"Device verified": "Device verified", "Device verified": "Device verified",