Skip to content

Commit

Permalink
Localize save/load prompt text format
Browse files Browse the repository at this point in the history
  • Loading branch information
Interkarma committed Nov 1, 2023
1 parent c21a4a2 commit 6972da2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
Expand Up @@ -3955,6 +3955,10 @@ MonoBehaviour:
m_Key: confirmDefaultControls
m_Metadata:
m_Items: []
- m_Id: 410605082671312896
m_Key: saveLoadPromptFormat
m_Metadata:
m_Items: []
m_Metadata:
m_Items: []
m_KeyGenerator:
Expand Down
4 changes: 4 additions & 0 deletions Assets/Localization/StringTables/Internal_Strings_en.asset
Expand Up @@ -5215,5 +5215,9 @@ MonoBehaviour:
m_Localized: Are you sure you want to set default controls?
m_Metadata:
m_Items: []
- m_Id: 410605082671312896
m_Localized: '{0} for ''{1}'''
m_Metadata:
m_Items: []
references:
version: 1
Expand Up @@ -366,7 +366,7 @@ protected virtual void UpdateSavesList()
promptText = TextManager.Instance.GetLocalizedText("savePrompt");
else if (mode == Modes.LoadGame)
promptText = TextManager.Instance.GetLocalizedText("loadPrompt");
promptLabel.Text = string.Format("{0} for '{1}'", promptText, currentPlayerName);
promptLabel.Text = string.Format(TextManager.Instance.GetLocalizedText("saveLoadPromptFormat"), promptText, currentPlayerName);
}

protected virtual void UpdateSelectedSaveInfo()
Expand Down
Expand Up @@ -40,4 +40,5 @@ Internal_RSC
* 5242 > "ofthe" to "of the"
Internal_Strings
* Add nordSurnameImmutableSuffix "sen" > appended manually to every random nord surname.
* Add confirmDefaultControls > "Are you sure you want to set default controls?"
* Add confirmDefaultControls > "Are you sure you want to set default controls?"
* Add saveLoadPromptFormat > "{0} for {1}" for save/load UI.
Expand Up @@ -1573,4 +1573,5 @@ sure
yep"
random,Random
nordSurnameImmutableSuffix,sen
confirmDefaultControls,Are you sure you want to set default controls?
confirmDefaultControls,Are you sure you want to set default controls?
saveLoadPromptFormat,{0} for '{1}'
Expand Down

0 comments on commit 6972da2

Please sign in to comment.