Migrate more strings to translation keys (#11671)

This commit is contained in:
Michael Telatynski 2023-09-26 18:35:55 +01:00 committed by GitHub
parent 13aed62a91
commit 4d0d024e86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
125 changed files with 7066 additions and 6607 deletions

View file

@ -345,7 +345,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
<AccessibleTooltipButton
className="mx_LeftPanel_exploreButton"
onClick={this.onExplore}
title={_t("Explore rooms")}
title={_t("action|explore_rooms")}
/>
);
}

View file

@ -384,7 +384,7 @@ export const showRoom = (cli: MatrixClient, hierarchy: RoomHierarchy, roomId: st
oob_data: {
avatarUrl: room?.avatar_url,
// XXX: This logic is duplicated from the JS SDK which would normally decide what the name is.
name: room?.name || roomAlias || _t("Unnamed room"),
name: room?.name || roomAlias || _t("common|unnamed_room"),
roomType,
} as IOOBData,
metricsTrigger: "RoomDirectory",

View file

@ -124,7 +124,7 @@ const SpaceLandingAddButton: React.FC<{ space: Room }> = ({ space }) => {
{canCreateRoom && (
<>
<IconizedContextMenuOption
label={_t("New room")}
label={_t("action|new_room")}
iconClassName="mx_RoomList_iconNewRoom"
onClick={async (e): Promise<void> => {
e.preventDefault();
@ -139,7 +139,7 @@ const SpaceLandingAddButton: React.FC<{ space: Room }> = ({ space }) => {
/>
{videoRoomsEnabled && (
<IconizedContextMenuOption
label={_t("New video room")}
label={_t("action|new_video_room")}
iconClassName="mx_RoomList_iconNewVideoRoom"
onClick={async (e): Promise<void> => {
e.preventDefault();
@ -164,7 +164,7 @@ const SpaceLandingAddButton: React.FC<{ space: Room }> = ({ space }) => {
</>
)}
<IconizedContextMenuOption
label={_t("Add existing room")}
label={_t("action|add_existing_room")}
iconClassName="mx_RoomList_iconAddExistingRoom"
onClick={(e) => {
e.preventDefault();