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

@ -49,7 +49,7 @@ const DeviceNameEditor: React.FC<Props & { stopEditing: () => void }> = ({ devic
await saveDeviceName(deviceName);
stopEditing();
} catch (error) {
setError(_t("Failed to set display name"));
setError(_t("settings|sessions|error_set_name"));
setIsLoading(false);
}
};

View file

@ -71,7 +71,7 @@ export const deleteDevicesWithInteractiveAuth = async (
},
};
Modal.createDialog(InteractiveAuthDialog, {
title: _t("Authentication"),
title: _t("common|authentication"),
matrixClient: matrixClient,
authData: error.data as IAuthData,
onFinished,

View file

@ -194,8 +194,8 @@ export const useOwnDevices = (): DevicesState => {
await matrixClient.setDeviceDetails(deviceId, { display_name: deviceName });
await refreshDevices();
} catch (error) {
logger.error("Error setting session display name", error);
throw new Error(_t("Failed to set display name"));
logger.error("Error setting device name", error);
throw new Error(_t("settings|sessions|error_set_name"));
}
},
[matrixClient, devices, refreshDevices],
@ -217,7 +217,7 @@ export const useOwnDevices = (): DevicesState => {
}
} catch (error) {
logger.error("Error setting pusher state", error);
throw new Error(_t("Failed to set pusher state"));
throw new Error(_t("settings|sessions|error_pusher_state"));
} finally {
await refreshDevices();
}