diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2022-10-18 16:29:17 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2022-10-21 10:10:57 +0200 |
| commit | 53197da19570ba288b9be9bbbee7984db9abbde7 (patch) | |
| tree | 5c824b368ba5931855779b1b1d374b112b8806ff /gui/src/renderer/components/TooManyDevices.tsx | |
| parent | d667ef8b470f4749e18ac59fc2607c369215a644 (diff) | |
| download | mullvadvpn-53197da19570ba288b9be9bbbee7984db9abbde7.tar.xz mullvadvpn-53197da19570ba288b9be9bbbee7984db9abbde7.zip | |
Switch to html formatting in translated strings
Diffstat (limited to 'gui/src/renderer/components/TooManyDevices.tsx')
| -rw-r--r-- | gui/src/renderer/components/TooManyDevices.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/src/renderer/components/TooManyDevices.tsx b/gui/src/renderer/components/TooManyDevices.tsx index 1d824d2d50..b23fe3f2df 100644 --- a/gui/src/renderer/components/TooManyDevices.tsx +++ b/gui/src/renderer/components/TooManyDevices.tsx @@ -9,9 +9,9 @@ import log from '../../shared/logging'; import { capitalizeEveryWord } from '../../shared/string-helpers'; import { useAppContext } from '../context'; import { transitions, useHistory } from '../lib/history'; +import { formatHtml } from '../lib/html-formatter'; import { RoutePath } from '../lib/routes'; import { useBoolean } from '../lib/utilityHooks'; -import { formatMarkdown } from '../markdown-formatter'; import { useSelector } from '../redux/store'; import * as AppButton from './AppButton'; import * as Cell from './cell'; @@ -253,15 +253,15 @@ function Device(props: IDeviceProps) { ]} close={hideConfirmation}> <ModalMessage> - {formatMarkdown( + {formatHtml( sprintf( // TRANSLATORS: Text displayed above button which logs out another device. - // TRANSLATORS: The text enclosed in "**" will appear bold. + // TRANSLATORS: The text enclosed in "<b></b>" will appear bold. // TRANSLATORS: Available placeholders: // TRANSLATORS: %(deviceName)s - The name of the device to log out. messages.pgettext( 'device-management', - 'Are you sure you want to log **%(deviceName)s** out?', + 'Are you sure you want to log <b>%(deviceName)s</b> out?', ), { deviceName: capitalizedDeviceName }, ), |
