(ae2d4614b) Added: NPCConversation translations
This commit is contained in:
@@ -73,7 +73,6 @@
|
||||
<Character file="Content/Characters/Watcher/Watcher.xml" />
|
||||
<Character file="Content/Characters/Hammerhead/Hammerhead.xml" />
|
||||
<Outpost file="Content/Map/Outposts/Outpost.sub" />
|
||||
<Outpost file="Content/Map/Outposts/Outpost2.sub" />
|
||||
<Submarine file="Submarines/Orca.sub" />
|
||||
<Submarine file="Submarines/Typhon.sub" />
|
||||
<Submarine file="Submarines/Selkie.sub" />
|
||||
@@ -103,7 +102,13 @@
|
||||
<MapGenerationParameters file="Content/Map/MapGenerationParameters.xml" />
|
||||
<LevelGenerationParameters file="Content/Map/LevelGenerationParameters.xml" />
|
||||
<Missions file="Content/Missions.xml" />
|
||||
<NPCConversations file="Content/NPCConversations/NpcConversations.xml"/>
|
||||
<NPCConversations file="Content/NPCConversations/NpcConversations_English.xml"/>
|
||||
<NPCConversations file="Content/NPCConversations/NpcConversations_German.xml"/>
|
||||
<NPCConversations file="Content/NPCConversations/NpcConversations_French.xml"/>
|
||||
<NPCConversations file="Content/NPCConversations/NpcConversations_Russian.xml"/>
|
||||
<NPCConversations file="Content/NPCConversations/NpcConversations_BrazilianPortuguese.xml"/>
|
||||
<NPCConversations file="Content/NPCConversations/NpcConversations_SimplifiedChinese.xml"/>
|
||||
<NPCConversations file="Content/NPCConversations/NpcConversations_TraditionalChinese.xml"/>
|
||||
<Jobs file="Content/Jobs.xml" />
|
||||
<Sounds file="Content/Sounds/sounds.xml" />
|
||||
<Tutorials file="Content/Tutorials/Tutorials.xml" />
|
||||
|
||||
@@ -2094,9 +2094,6 @@
|
||||
<None Include="$(MSBuildThisFileDirectory)Content\Items\Weapons\ElectricalDischarger.ogg">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="$(MSBuildThisFileDirectory)Content\Map\Outposts\Outpost2.sub">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="$(MSBuildThisFileDirectory)Content\Sounds\Damage\Gore1.ogg">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
public static string Get(string textTag, bool returnNull = false, string fallBackTag = null)
|
||||
public static string Get(string textTag, bool returnNull = false)
|
||||
{
|
||||
if (!textPacks.ContainsKey(Language))
|
||||
{
|
||||
@@ -94,16 +94,7 @@ namespace Barotrauma
|
||||
foreach (TextPack textPack in textPacks[Language])
|
||||
{
|
||||
string text = textPack.Get(textTag);
|
||||
if (text != null) { return text; }
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(fallBackTag))
|
||||
{
|
||||
foreach (TextPack textPack in textPacks[Language])
|
||||
{
|
||||
string text = textPack.Get(fallBackTag);
|
||||
if (text != null) { return text; }
|
||||
}
|
||||
if (text != null) return text;
|
||||
}
|
||||
|
||||
//if text was not found and we're using a language other than English, see if we can find an English version
|
||||
|
||||
Reference in New Issue
Block a user