diff --git a/public/locales/de.json b/public/locales/de.json index e199b24..b3de0e7 100644 --- a/public/locales/de.json +++ b/public/locales/de.json @@ -8,5 +8,9 @@ "GeneralSettings": "Generell", "Downloading": "wird Heruntergeladen...", "GameDownloaded": "Spiel würde erfolgreich heruntergeladen", - "ApplyPatch": "Patch wird angewendet" + "ApplyPatch": "Patch wird angewendet", + "PatchRequired": "Patch required", + "PatchRequiredHint": "This game version doesn't have an anti-cheat patch. Please, wait a few days and try again.", + "TestPatch": "Apply test patch", + "TestPatchHint": "This game version has an anti-cheat patch, but it is in the testing phase. You can wait a few days until it is stable or apply it at your own risk." } \ No newline at end of file diff --git a/public/locales/en-us.json b/public/locales/en-us.json index 50585f8..83aecad 100644 --- a/public/locales/en-us.json +++ b/public/locales/en-us.json @@ -8,5 +8,9 @@ "GeneralSettings": "General", "Downloading": "Downloading...", "GameDownloaded": "Game was successfully installed", - "ApplyPatch": "Applying patch..." + "ApplyPatch": "Applying patch...", + "PatchRequired": "Patch required", + "PatchRequiredHint": "This game version doesn't have an anti-cheat patch. Please, wait a few days and try again.", + "TestPatch": "Apply test patch", + "TestPatchHint": "This game version has an anti-cheat patch, but it is in the testing phase. You can wait a few days until it is stable or apply it at your own risk." } \ No newline at end of file diff --git a/public/locales/en.json b/public/locales/en.json index 50585f8..83aecad 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -8,5 +8,9 @@ "GeneralSettings": "General", "Downloading": "Downloading...", "GameDownloaded": "Game was successfully installed", - "ApplyPatch": "Applying patch..." + "ApplyPatch": "Applying patch...", + "PatchRequired": "Patch required", + "PatchRequiredHint": "This game version doesn't have an anti-cheat patch. Please, wait a few days and try again.", + "TestPatch": "Apply test patch", + "TestPatchHint": "This game version has an anti-cheat patch, but it is in the testing phase. You can wait a few days until it is stable or apply it at your own risk." } \ No newline at end of file diff --git a/src/ts/LauncherUI.ts b/src/ts/LauncherUI.ts index 0a42bc0..0c7a82e 100644 --- a/src/ts/LauncherUI.ts +++ b/src/ts/LauncherUI.ts @@ -26,24 +26,24 @@ export class LauncherUI switch (state) { case 'patch-unavailable': - $('#launch').text('Patch required'); + $('#launch').text(i18n.translate('PatchRequired')); $('#launch').attr('disabled', 'disabled'); $('#launch').addClass('hint--top') .addClass('hint--medium'); - $('#launch').attr('data-hint', 'This game version doesn\'t have the anti-cheat patch. Please, wait a few days before it will be created'); + $('#launch').attr('data-hint', i18n.translate('PatchRequiredHint')); break; case 'test-patch-available': - $('#launch').text('Apply test patch'); + $('#launch').text(i18n.translate('TestPatch')); $('#launch').addClass('button-blue') .addClass('hint--top') .addClass('hint--large'); - $('#launch').attr('data-hint', 'This game version has the anti-cheat patch, but it is in the test phase. You can wait a few days until it will become stable or apply it on your own risc'); + $('#launch').attr('data-hint', i18n.translate('TestPatchHint')); break;