Skip to content

Commit

Permalink
Localize Nord surname "sen" suffix
Browse files Browse the repository at this point in the history
This is appended to every random Nord surname using Daggerfall's name generation rules. This was previously hardcoded.
  • Loading branch information
Interkarma committed Oct 12, 2023
1 parent a14b58c commit 0da542d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
Expand Up @@ -3947,6 +3947,10 @@ MonoBehaviour:
m_Key: random
m_Metadata:
m_Items: []
- m_Id: 403094982939373568
m_Key: nordSurnameImmutableSuffix
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 @@ -5207,5 +5207,9 @@ MonoBehaviour:
m_Localized: Random
m_Metadata:
m_Items: []
- m_Id: 403094982939373568
m_Localized: sen
m_Metadata:
m_Items: []
references:
version: 1
2 changes: 1 addition & 1 deletion Assets/Scripts/Game/Utility/NameHelper.cs
Expand Up @@ -243,7 +243,7 @@ string GetRandomNordSurname(NameBank nameBank)
index = DFRandom.rand() % (uint)partsB.Length;
string stringB = partsB[index];

return stringA + stringB + "sen";
return stringA + stringB + TextManager.Instance.GetLocalizedText("nordSurnameImmutableSuffix");
}

// Gets random Redguard name which follows 0+1+2+3(75%) (male), 0+1+2+4 (female) pattern
Expand Down
Expand Up @@ -32,4 +32,9 @@ Internal_RSC
NOTE: Possible issue with Unity CSV export. Need to check this anytime Internal_RSC is re-exported.
Internal_Strings
* Localize action type 12 answers (e.g. "yes" guard in Daggerfall Castle, "shutup" banner in Shedungent.
* Localize "Random" button text when naming character during creation process.
* Localize "Random" button text when naming character during creation process.

0.16.2
------
Internal_Strings
* Add nordSurnameImmutableSuffix "sen" > appended manually to every random nord surname.
Expand Up @@ -1571,4 +1571,5 @@ fine
okay
sure
yep"
random,Random
random,Random
nordSurnameImmutableSuffix,sen
Expand Down

0 comments on commit 0da542d

Please sign in to comment.