diff --git a/public/locales/en/gamepage.json b/public/locales/en/gamepage.json index f31785437d..a6d2963cd2 100644 --- a/public/locales/en/gamepage.json +++ b/public/locales/en/gamepage.json @@ -149,7 +149,7 @@ "install": { "anticheat-warning": { "cancel": "No", - "disabled_installation": "The anticheat support is broken or denied and the multiplayer features will not work. The game cannot be installed. To install this game, disable this check in the advanced settings.", + "disabled_installation": "This game uses anticheat software that is not compatible with your operating system or the support was not enabled by the game developers. This means that the multiplayer features will not work, and there is nothing you (or the Heroic team) can do about it.<1><2>To install this game and try it anyway, go to Settings, Advanced, and check the option to allow the installation of games with broken or denied anticheat.<4><5>Note that there is no solution for this and you will risk getting banned in the game.", "install_anyway": "Yes (I understand the multiplayer features will not work)", "multiplayer_message": "The anticheat support is broken or denied. The game may open but the multiplayer features will not work. Do you want to install it anyway?", "ok": "Ok", diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 7460dd95a0..fba32eff33 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -244,7 +244,7 @@ "title": "Downloads" }, "emptyLibrary": { - "noGames": "Your library is empty. You can <1>log in using a store or click <3> to add one manually.", + "noGames": "Your library is empty.<1><2>Click <4>here to log in with your Epic, GOG.com, or Amazon accounts. Then, your games will show up here in the Library.<6><7>To use games or apps from other sources, click <9> to add them manually.", "noResults": "The current filters produced no results." }, "epic": { diff --git a/src/frontend/components/UI/DialogHandler/components/MessageBoxModal/index.tsx b/src/frontend/components/UI/DialogHandler/components/MessageBoxModal/index.tsx index 9a92128c91..4aca65a0e7 100644 --- a/src/frontend/components/UI/DialogHandler/components/MessageBoxModal/index.tsx +++ b/src/frontend/components/UI/DialogHandler/components/MessageBoxModal/index.tsx @@ -1,5 +1,5 @@ import './index.css' -import React, { useMemo } from 'react' +import React, { ReactElement, useMemo } from 'react' import { Dialog, DialogContent, @@ -11,7 +11,7 @@ import { useTranslation } from 'react-i18next' import { DialogType, ButtonOptions } from 'common/types' interface MessageBoxModalProps { title: string - message: string + message: string | ReactElement onClose: () => void buttons: Array type: DialogType @@ -34,7 +34,10 @@ function decodeHTML(html: string): Array { const MessageBoxModal: React.FC = function (props) { const { t } = useTranslation() - const message = useMemo(() => decodeHTML(props.message), [props.message]) + const message = useMemo(() => { + if (typeof props.message === 'string') return decodeHTML(props.message) + else return props.message + }, [props.message]) const getButtons = function () { const allButtons = [] diff --git a/src/frontend/screens/Library/components/EmptyLibrary/index.tsx b/src/frontend/screens/Library/components/EmptyLibrary/index.tsx index d8b70d109c..ac8d1394cc 100644 --- a/src/frontend/screens/Library/components/EmptyLibrary/index.tsx +++ b/src/frontend/screens/Library/components/EmptyLibrary/index.tsx @@ -11,8 +11,16 @@ function EmptyLibraryMessage() { let message = ( - Your library is empty. You can log in using - a store or click to add one manually. + Your library is empty. +
+
+ Click here to log in with your Epic, + GOG.com, or Amazon accounts. Then, your games will show up here in the + Library. +
+
+ To use games or apps from other sources, click to add + them manually.
) diff --git a/src/frontend/screens/Library/components/InstallModal/DownloadDialog/index.tsx b/src/frontend/screens/Library/components/InstallModal/DownloadDialog/index.tsx index 250d59a477..e456a1d497 100644 --- a/src/frontend/screens/Library/components/InstallModal/DownloadDialog/index.tsx +++ b/src/frontend/screens/Library/components/InstallModal/DownloadDialog/index.tsx @@ -43,7 +43,7 @@ import React, { useMemo, useState } from 'react' -import { useTranslation } from 'react-i18next' +import { Trans, useTranslation } from 'react-i18next' import { AvailablePlatforms } from '../index' import { configStore } from 'frontend/helpers/electronStores' import DLCDownloadListing from './DLCDownloadListing' @@ -222,9 +222,25 @@ export default function DownloadDialog({ } else { showDialogModal({ title, - message: t( - 'install.anticheat-warning.disabled_installation', - 'The anticheat support is broken or denied and the multiplayer features will not work. The game cannot be installed. To install this game, disable this check in the advanced settings.' + message: ( + + This game uses anticheat software that is not compatible with your + operating system or the support was not enabled by the game + developers. This means that the multiplayer features will not work, + and there is nothing you (or the Heroic team) can do about it. +
+
+ To install this game and try it anyway, go to Settings, Advanced, + and check the option to allow the installation of games with broken + or denied anticheat. +
+
+ Note that there is no solution for this and you will risk getting + banned in the game. +
), buttons: [ { diff --git a/src/frontend/types.ts b/src/frontend/types.ts index 958e6bcea2..9fbe230275 100644 --- a/src/frontend/types.ts +++ b/src/frontend/types.ts @@ -127,7 +127,7 @@ export interface ContextType { export type DialogModalOptions = { showDialog?: boolean title?: string - message?: string + message?: string | React.ReactElement buttons?: Array type?: DialogType }