Simplified the translation error.

This commit is contained in:
Marco Rodolfi
2023-05-27 19:23:15 +02:00
parent 9cd219fab7
commit 687f7bf5db
3 changed files with 8 additions and 11 deletions

View File

@@ -56,7 +56,7 @@
"decky_title": "Decky",
"decky_update_available": "Update to {{tag_name}} available!",
"error": "Error",
"plugin_error_uninstall": "Loading {{name}} has caused an exception as shown above. This usually means that the plugin requires an update for the new version of SteamUI. Check if an update is present or evaluate his removal in <0></0> <1></1> <2></2> Plugins.",
"plugin_error_uninstall": "Loading {{name}} caused an exception as shown above. This usually means that the plugin requires an update for the new version of SteamUI. Check if an update is present or evaluate his removal in the Decky settings, in the Plugins section.",
"plugin_load_error": {
"message": "Error loading plugin {{name}}",
"toast": "Error loading {{name}}"

View File

@@ -56,7 +56,7 @@
"decky_title": "Decky",
"decky_update_available": "Disponibile aggiornamento a {{tag_name}}!",
"error": "Errore",
"plugin_error_uninstall": "Il plugin {{name}} ha causato un'eccezione che è descritta sopra. Questo tipicamente significa che il plugin deve essere aggiornato per funzionare sulla nuova versione di SteamUI. Controlla se è disponibile un'aggiornamento o valutane la rimozione andando in <0></0> <1></1> <2></2> Plugins.",
"plugin_error_uninstall": "Il plugin {{name}} ha causato un'eccezione che è descritta sopra. Questo tipicamente significa che il plugin deve essere aggiornato per funzionare sulla nuova versione di SteamUI. Controlla se è disponibile un'aggiornamento o valutane la rimozione andando nelle impostazioni di Decky nella sezione Plugins.",
"plugin_load_error": {
"message": "Errore caricando il plugin {{name}}",
"toast": "Errore caricando {{name}}"

View File

@@ -10,10 +10,8 @@ import {
sleep,
staticClasses,
} from 'decky-frontend-lib';
import { CSSProperties, FC, lazy } from 'react';
import { Trans } from 'react-i18next';
import { BsGearFill } from 'react-icons/bs';
import { FaArrowRight, FaExclamationCircle, FaPlug } from 'react-icons/fa';
import { FC, lazy } from 'react';
import { FaExclamationCircle, FaPlug } from 'react-icons/fa';
import { DeckyState, DeckyStateContextProvider, useDeckyState } from './components/DeckyState';
import LegacyPlugin from './components/LegacyPlugin';
@@ -276,7 +274,6 @@ class PluginLoader extends Logger {
});
} catch (e) {
this.error('Error loading plugin ' + name, e);
const style: CSSProperties = { verticalAlign: 'middle' };
const TheError: FC<{}> = () => (
<PanelSection>
<PanelSectionRow>
@@ -291,10 +288,10 @@ class PluginLoader extends Logger {
</PanelSectionRow>
<PanelSectionRow>
<div className={staticClasses.Text}>
<Trans
i18nKey="PluginLoader.plugin_error_uninstall"
values={{ name: name }}
components={[<BsGearFill style={style} />, <FaArrowRight style={style} />, <FaPlug style={style} />]}
<TranslationHelper
trans_class={TranslationClass.PLUGIN_LOADER}
trans_text="plugin_error_uninstall"
i18n_args={{ name: name }}
/>
</div>
</PanelSectionRow>