From 071301432b4d1b40e2b7fc59181228f6886473f3 Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Sun, 23 Mar 2025 16:02:46 +0100 Subject: [PATCH] Make Save Screen Localizable --- P3D/Content/Localization/Tokens_de.dat | 14 +++-- P3D/Content/Localization/Tokens_en.dat | 14 +++-- P3D/Content/Localization/Tokens_es.dat | 14 +++-- P3D/Content/Localization/Tokens_fr.dat | 14 +++-- P3D/Content/Localization/Tokens_nl.dat | 14 +++-- P3D/Content/Localization/Tokens_ptbr.dat | 14 +++-- P3D/Screens/SaveScreen.vb | 67 ++++++++++++++---------- 7 files changed, 98 insertions(+), 53 deletions(-) diff --git a/P3D/Content/Localization/Tokens_de.dat b/P3D/Content/Localization/Tokens_de.dat index f5e3324e4..f086340ad 100644 --- a/P3D/Content/Localization/Tokens_de.dat +++ b/P3D/Content/Localization/Tokens_de.dat @@ -392,10 +392,16 @@ trainer_screen_badge, Orden trainer_screen_empty_badge,??? --- Save Screen: -save_screen_name,Name -save_screen_badges,Orden -save_screen_money,Geld -save_screen_time,Zeit +save_screen_question1,Would you like to +save_screen_question2,save the game? +save_screen_progress_validating,Validating data +save_screen_progress_saving,Saving, please wait +save_screen_fail_title,Saving failed! +save_screen_fail_message1,Press [] to close this~screen and try to save again~in order to prevent data~corruption.~~~If the problem persists, the~GameJolt servers could be~down for maintenance right~now. +save_screen_fail_message2,Please try again later,~or contact us here:~~Discord Server:~www.discord.me/p3d~~Official News:~pokemon3d.net/blog +save_screen_success,Saved the game. +save_screen_press,Press +save_screen_to_continue,to continue. --- Apricorn Screen: apricorn_screen_apricorns,Aprikokos diff --git a/P3D/Content/Localization/Tokens_en.dat b/P3D/Content/Localization/Tokens_en.dat index fb2f84577..a92239038 100644 --- a/P3D/Content/Localization/Tokens_en.dat +++ b/P3D/Content/Localization/Tokens_en.dat @@ -393,10 +393,16 @@ trainer_screen_badge, Badge trainer_screen_empty_badge,??? --- Save Screen: -save_screen_name,Name -save_screen_badges,Badges -save_screen_money,Money -save_screen_time,Time +save_screen_question1,Would you like to +save_screen_question2,save the game? +save_screen_progress_validating,Validating data +save_screen_progress_saving,Saving, please wait +save_screen_fail_title,Saving failed! +save_screen_fail_message1,Press Dismiss to close this~screen and try to save again~in order to prevent data~corruption.~~~If the problem persists, the~GameJolt servers could be~down for maintenance right~now. +save_screen_fail_message2,Please try again later,~or contact us here:~~Discord Server:~www.discord.me/p3d~~Official News:~pokemon3d.net/blog +save_screen_success,Saved the game. +save_screen_press,Press +save_screen_to_continue,to continue. --- Apricorn Screen: apricorn_screen_apricorns,Apricorns diff --git a/P3D/Content/Localization/Tokens_es.dat b/P3D/Content/Localization/Tokens_es.dat index 46d93b03e..031664fff 100644 --- a/P3D/Content/Localization/Tokens_es.dat +++ b/P3D/Content/Localization/Tokens_es.dat @@ -395,10 +395,16 @@ trainer_screen_badge, Medalla trainer_screen_empty_badge,??? --- Save Screen: -save_screen_name,Nombre -save_screen_badges,Insignias -save_screen_money,Dinero -save_screen_time,Tiempo +save_screen_question1,Would you like to +save_screen_question2,save the game? +save_screen_progress_validating,Validating data +save_screen_progress_saving,Saving, please wait +save_screen_fail_title,Saving failed! +save_screen_fail_message1,Press [] to close this~screen and try to save again~in order to prevent data~corruption.~~~If the problem persists, the~GameJolt servers could be~down for maintenance right~now. +save_screen_fail_message2,Please try again later,~or contact us here:~~Discord Server:~www.discord.me/p3d~~Official News:~pokemon3d.net/blog +save_screen_success,Saved the game. +save_screen_press,Press +save_screen_to_continue,to continue. --- Apricorn Screen: apricorn_screen_apricorns,Albaricoques diff --git a/P3D/Content/Localization/Tokens_fr.dat b/P3D/Content/Localization/Tokens_fr.dat index df71610c3..10a9744e8 100644 --- a/P3D/Content/Localization/Tokens_fr.dat +++ b/P3D/Content/Localization/Tokens_fr.dat @@ -391,10 +391,16 @@ trainer_screen_badge,Badge trainer_screen_empty_badge,??? --- Save Screen: -save_screen_name,Nom -save_screen_badges,Badges -save_screen_money,Argent -save_screen_time,Temps +save_screen_question1,Would you like to +save_screen_question2,save the game? +save_screen_progress_validating,Validating data +save_screen_progress_saving,Saving, please wait +save_screen_fail_title,Saving failed! +save_screen_fail_message1,Press [] to close this~screen and try to save again~in order to prevent data~corruption.~~~If the problem persists, the~GameJolt servers could be~down for maintenance right~now. +save_screen_fail_message2,Please try again later,~or contact us here:~~Discord Server:~www.discord.me/p3d~~Official News:~pokemon3d.net/blog +save_screen_success,Saved the game. +save_screen_press,Press +save_screen_to_continue,to continue. --- Apricorn Screen: apricorn_screen_apricorns,Noigrumes diff --git a/P3D/Content/Localization/Tokens_nl.dat b/P3D/Content/Localization/Tokens_nl.dat index 1f04dae5d..86227bbb4 100644 --- a/P3D/Content/Localization/Tokens_nl.dat +++ b/P3D/Content/Localization/Tokens_nl.dat @@ -392,10 +392,16 @@ trainer_screen_badge, Badge trainer_screen_empty_badge,??? --- Save Screen: -save_screen_name,Naam -save_screen_badges,Badges -save_screen_money,Geld -save_screen_time,Tijd +save_screen_question1,Wil je het spel +save_screen_question2,opslaan? +save_screen_progress_validating,Data controleren +save_screen_progress_saving,Opslaan, even geduld +save_screen_fail_title,Opslaan mislukt! +save_screen_fail_message1,Druk op [] om dit scherm te~sluiten en probeer opnieuw op te~slaan om datacorruptie te~voorkomen.~~~Als het opnieuw mislukt,~zijn de GameJolt servers~misschien momenteel offline~voor onderhoud. +save_screen_fail_message2,Probeer het later nog eens,~of stuur ons hier een~bericht:~Discord Server:~www.discord.me/p3d~~Official News:~pokemon3d.net/blog +save_screen_success,Spel opgeslagen. +save_screen_press,Druk op +save_screen_to_continue,om door te gaan. --- Apricornscherm: apricorn_screen_apricorns,Apricorns diff --git a/P3D/Content/Localization/Tokens_ptbr.dat b/P3D/Content/Localization/Tokens_ptbr.dat index 106f5da03..0c296ea55 100644 --- a/P3D/Content/Localization/Tokens_ptbr.dat +++ b/P3D/Content/Localization/Tokens_ptbr.dat @@ -392,10 +392,16 @@ trainer_screen_badge, Insígnia trainer_screen_empty_badge,??? --- Save Screen: -save_screen_name,Nome -save_screen_badges,Insígnias -save_screen_money,Dinheiro -save_screen_time,Tempo +save_screen_question1,Would you like to +save_screen_question2,save the game? +save_screen_progress_validating,Validating data +save_screen_progress_saving,Saving, please wait +save_screen_fail_title,Saving failed! +save_screen_fail_message1,Press [] to close this~screen and try to save again~in order to prevent data~corruption.~~~If the problem persists, the~GameJolt servers could be~down for maintenance right~now. +save_screen_fail_message2,Please try again later,~or contact us here:~~Discord Server:~www.discord.me/p3d~~Official News:~pokemon3d.net/blog +save_screen_success,Saved the game. +save_screen_press,Press +save_screen_to_continue,to continue. --- Apricorn Screen: apricorn_screen_apricorns,Bolotas diff --git a/P3D/Screens/SaveScreen.vb b/P3D/Screens/SaveScreen.vb index 2bfeddfe9..995306fa2 100644 --- a/P3D/Screens/SaveScreen.vb +++ b/P3D/Screens/SaveScreen.vb @@ -61,17 +61,17 @@ .Draw(menuTexture, New Rectangle(Delta_X, Delta_Y, 700, 440), Color.White) If saveSessionFailed = True Then - .DrawString(FontManager.InGameFont, "Saving failed!", New Vector2(Delta_X + 90, Delta_Y + 50), Color.Red) + .DrawString(FontManager.InGameFont, Localization.GetString("save_screen_fail_title", "Saving failed!"), New Vector2(Delta_X + 90, Delta_Y + 50), Color.Red) If Core.GameOptions.Extras.Contains("Backup Save Feature") Then .DrawString(FontManager.MiniFont, - "Press Dismiss to close this" & Environment.NewLine & + "Press [] to close this" & Environment.NewLine & "screen and try to save again" & Environment.NewLine & "in order to prevent data" & Environment.NewLine & "corruption." & Environment.NewLine & Environment.NewLine & Environment.NewLine & "Your save has been backed" & Environment.NewLine & "up in the event of the" & Environment.NewLine & - "Gamejolt API being down.", New Vector2(Delta_X + 90, Delta_Y + 100), Color.Black) + "Gamejolt API being down.".Replace("", KeyBindings.BackKey1.ToString()), New Vector2(Delta_X + 90, Delta_Y + 100), Color.Black) .DrawString(FontManager.MiniFont, "You may safely quit the" & Environment.NewLine & "game now or try to save" & Environment.NewLine & @@ -81,52 +81,61 @@ "folder", New Vector2(Delta_X + 390, Delta_Y + 100), Color.Black) Else .DrawString(FontManager.MiniFont, - "Press Dismiss to close this" & Environment.NewLine & - "screen and try to save again" & Environment.NewLine & - "in order to prevent data" & Environment.NewLine & - "corruption." & Environment.NewLine & Environment.NewLine & Environment.NewLine & - "If the problem persists, the" & Environment.NewLine & - "GameJolt servers could be" & Environment.NewLine & - "down for maintenance right" & Environment.NewLine & - "now.", New Vector2(Delta_X + 90, Delta_Y + 100), Color.Black) - .DrawString(FontManager.MiniFont, "Please try again later," & Environment.NewLine & - "or contact us here:" & Environment.NewLine & Environment.NewLine & - "Discord server" & Environment.NewLine & - "www.discord.me/p3d" & Environment.NewLine & Environment.NewLine & - "Official Forum" & Environment.NewLine & - "pokemon3d.net/forum/news", New Vector2(Delta_X + 390, Delta_Y + 100), Color.Black) + Localization.GetString("save_screen_fail_message1", + "Press [] to close this~ + screen and try to save again~ + in order to prevent data~ + corruption. + ~~~ + If the problem persists, the~ + GameJolt servers could be~ + down for maintenance right~ + now.").Replace("~", Environment.NewLine).Replace("", KeyBindings.BackKey1.ToString()), + New Vector2(Delta_X + 90, Delta_Y + 100), Color.Black) + .DrawString(FontManager.MiniFont, Localization.GetString("save_screen_fail_message2", + "Please try again later,~ + or contact us here: + ~~ + Discord Server:~ + www.discord.me/p3d + ~~ + Official News:~ + pokemon3d.net/blog").Replace("~", Environment.NewLine), + New Vector2(Delta_X + 390, Delta_Y + 100), Color.Black) End If Dim text As String = String.Empty + Dim textSizeUntilButton As New Vector2(0) If ControllerHandler.IsConnected() Then - text = "Press to continue" + text = Localization.GetString("save_screen_press", "Press") & "