From 1c9effb03ffee5be536c7af8406858b670d4a7fb Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Mon, 17 Mar 2025 19:15:37 +0100 Subject: [PATCH] Handing over items is localizable --- P3D/Content/Localization/Tokens_de.dat | 2 ++ P3D/Content/Localization/Tokens_en.dat | 2 ++ P3D/Content/Localization/Tokens_es.dat | 2 ++ P3D/Content/Localization/Tokens_fr.dat | 2 ++ P3D/Content/Localization/Tokens_nl.dat | 2 ++ P3D/Content/Localization/Tokens_ptbr.dat | 2 ++ P3D/World/ActionScript/V2/ScriptCommands/DoItem.vb | 4 ++-- 7 files changed, 14 insertions(+), 2 deletions(-) diff --git a/P3D/Content/Localization/Tokens_de.dat b/P3D/Content/Localization/Tokens_de.dat index 148791d2c..f5e3324e4 100644 --- a/P3D/Content/Localization/Tokens_de.dat +++ b/P3D/Content/Localization/Tokens_de.dat @@ -521,6 +521,8 @@ item_stored_in_pocket_single_start, stored it in the~ item_stored_in_pocket_single_end,pocket. item_stored_in_pocket_multiple_start, stored them~in the item_stored_in_pocket_multiple_end,pocket. +item_handed_over_single, handed over the~ +item_handed_over_multiple, handed over the~ Berries: berry_picked_single_start, picked the~ diff --git a/P3D/Content/Localization/Tokens_en.dat b/P3D/Content/Localization/Tokens_en.dat index c505316a2..fb2f84577 100644 --- a/P3D/Content/Localization/Tokens_en.dat +++ b/P3D/Content/Localization/Tokens_en.dat @@ -522,6 +522,8 @@ item_stored_in_pocket_single_start, stored it in the~ item_stored_in_pocket_single_end,pocket. item_stored_in_pocket_multiple_start, stored them~in the item_stored_in_pocket_multiple_end,pocket. +item_handed_over_single, handed over the~ +item_handed_over_multiple, handed over the~ Berries: berry_picked_single_start, picked the~ diff --git a/P3D/Content/Localization/Tokens_es.dat b/P3D/Content/Localization/Tokens_es.dat index 925d3210e..46d93b03e 100644 --- a/P3D/Content/Localization/Tokens_es.dat +++ b/P3D/Content/Localization/Tokens_es.dat @@ -525,6 +525,8 @@ item_stored_in_pocket_single_start, stored it in the~ item_stored_in_pocket_single_end,pocket. item_stored_in_pocket_multiple_start, stored them~in the item_stored_in_pocket_multiple_end,pocket. +item_handed_over_single, handed over the~ +item_handed_over_multiple, handed over the~ Berries: berry_picked_single_start, picked the~ diff --git a/P3D/Content/Localization/Tokens_fr.dat b/P3D/Content/Localization/Tokens_fr.dat index 1dafa2143..df71610c3 100644 --- a/P3D/Content/Localization/Tokens_fr.dat +++ b/P3D/Content/Localization/Tokens_fr.dat @@ -520,6 +520,8 @@ item_stored_in_pocket_single_start, met dans la~ item_stored_in_pocket_single_end,poche. item_stored_in_pocket_multiple_start, met dans la~ item_stored_in_pocket_multiple_end,poche. +item_handed_over_single, handed over the~ +item_handed_over_multiple, handed over the~ Berries: berry_picked_single_start, Cueille~ diff --git a/P3D/Content/Localization/Tokens_nl.dat b/P3D/Content/Localization/Tokens_nl.dat index 00c8d5e99..1f04dae5d 100644 --- a/P3D/Content/Localization/Tokens_nl.dat +++ b/P3D/Content/Localization/Tokens_nl.dat @@ -520,6 +520,8 @@ item_stored_in_pocket_single_start, stopte het weg~in het item_stored_in_pocket_single_end,vakje. item_stored_in_pocket_multiple_start, stopte ze weg~in het item_stored_in_pocket_multiple_end,vakje. +item_handed_over_single, overhandigde~een +item_handed_over_multiple, overhandigde~de Berries: berry_picked_single_start, plukte de~ diff --git a/P3D/Content/Localization/Tokens_ptbr.dat b/P3D/Content/Localization/Tokens_ptbr.dat index a754c1636..d5e54fbb7 100644 --- a/P3D/Content/Localization/Tokens_ptbr.dat +++ b/P3D/Content/Localization/Tokens_ptbr.dat @@ -521,6 +521,8 @@ item_stored_in_pocket_single_start, guardou no bolso de ~ item_stored_in_pocket_single_end,. item_stored_in_pocket_multiple_start, guardou no bolso de ~ item_stored_in_pocket_multiple_end,. +item_handed_over_single, handed over the~ +item_handed_over_multiple, handed over the~ Berries: berry_picked_single_start, pegou uma diff --git a/P3D/World/ActionScript/V2/ScriptCommands/DoItem.vb b/P3D/World/ActionScript/V2/ScriptCommands/DoItem.vb index 498019b79..1b37b5d1c 100644 --- a/P3D/World/ActionScript/V2/ScriptCommands/DoItem.vb +++ b/P3D/World/ActionScript/V2/ScriptCommands/DoItem.vb @@ -65,9 +65,9 @@ If showMessage = True Then Dim Message As String = "" If amount = 1 Then - Message = " handed over the~" & Item.OneLineName() & "!" + Message = Localization.GetString("item_handed_over_single", " handed over the~") & Item.OneLineName() & "!" Else - Message = " handed over the~" & Item.OneLinePluralName() & "!" + Message = Localization.GetString("item_handed_over_multiple", " handed over the~") & Item.OneLinePluralName() & "!" End If Screen.TextBox.reDelay = 0.0F