@@ -6,6 +6,8 @@ namespace TaleWorlds.Localization
|
|
6
6
|
{
|
7
7
|
public static class LocalizedTextManager
|
8
8
|
{
|
9
|
+
public const string LanguageDataFileName = "language_data";
|
10
|
+
|
9
11
|
public const string DefaultEnglishLanguageId = "English";
|
10
12
|
|
11
13
|
public static extern string GetTranslatedText(string languageId, string id);
|
@@ -31,6 +33,9 @@ namespace TaleWorlds.Localization
|
|
31
33
|
[CommandLineFunctionality.CommandLineArgumentFunction("change_language", "localization")]
|
32
34
|
public static extern string ChangeLanguage(List<string> strings);
|
33
35
|
|
36
|
+
[CommandLineFunctionality.CommandLineArgumentFunction("reload_texts", "localization")]
|
37
|
+
public static extern string ReloadTexts(List<string> strings);
|
38
|
+
|
34
39
|
[CommandLineFunctionality.CommandLineArgumentFunction("check_for_errors", "localization")]
|
35
40
|
public static extern string CheckValidity(List<string> strings);
|
36
41
|
}
|
@@ -1,3 +1,5 @@
|
|
1
|
+
using System.Runtime.CompilerServices;
|
2
|
+
|
1
3
|
namespace TaleWorlds.Localization
|
2
4
|
{
|
3
5
|
public static class MBTextManager
|
@@ -6,6 +8,10 @@ namespace TaleWorlds.Localization
|
|
6
8
|
|
7
9
|
public static string ActiveLanguage { get; }
|
8
10
|
|
11
|
+
public static bool LocalizationDebugMode { [CompilerGenerated]
|
12
|
+
get; [CompilerGenerated]
|
13
|
+
set; }
|
14
|
+
|
9
15
|
public static extern bool LanguageExistsInCurrentConfiguration(string language, bool developmentMode);
|
10
16
|
|
11
17
|
public static extern bool ChangeLanguage(string language);
|
@@ -28,6 +34,8 @@ namespace TaleWorlds.Localization
|
|
28
34
|
|
29
35
|
public static extern void SetFunction(string funcName, string functionBody);
|
30
36
|
|
37
|
+
public static extern void ResetFunctions();
|
38
|
+
|
31
39
|
public static extern string DiscardAnimationTagsAndSoundPath(string text);
|
32
40
|
|
33
41
|
public static extern string[] GetConversationAnimationsAndSoundPath(TextObject to, out string soundPath);
|
@@ -58,6 +58,8 @@ namespace TaleWorlds.Localization
|
|
58
58
|
|
59
59
|
public extern bool GetVariableValue(string tag, out TextObject variable);
|
60
60
|
|
61
|
+
public extern int GetValueHashCode();
|
62
|
+
|
61
63
|
public extern TextObject CopyTextObject();
|
62
64
|
|
63
65
|
public extern string GetID();
|
@@ -1,3 +1,4 @@
|
|
1
|
+
using System.Collections.Generic;
|
1
2
|
using System.Globalization;
|
2
3
|
using System.Text;
|
3
4
|
|
@@ -5,6 +6,8 @@ namespace TaleWorlds.Localization.TextProcessor.LanguageProcessors
|
|
5
6
|
{
|
6
7
|
public class FrenchTextProcessor : LanguageSpecificTextProcessor
|
7
8
|
{
|
9
|
+
public static Dictionary<string, (string, int, bool)> WordGroups { get; }
|
10
|
+
|
8
11
|
public override CultureInfo CultureInfoForLanguage { get; }
|
9
12
|
|
10
13
|
public override extern void ProcessToken(string sourceText, ref int cursorPos, string token, StringBuilder outputString);
|
@@ -1,3 +1,4 @@
|
|
1
|
+
using System.Collections.Generic;
|
1
2
|
using System.Globalization;
|
2
3
|
using System.Text;
|
3
4
|
|
@@ -5,6 +6,8 @@ namespace TaleWorlds.Localization.TextProcessor.LanguageProcessors
|
|
5
6
|
{
|
6
7
|
public class ItalianTextProcessor : LanguageSpecificTextProcessor
|
7
8
|
{
|
9
|
+
public static Dictionary<string, (string, int)> WordGroups { get; }
|
10
|
+
|
8
11
|
public override CultureInfo CultureInfoForLanguage { get; }
|
9
12
|
|
10
13
|
public override extern void ProcessToken(string sourceText, ref int cursorPos, string token, StringBuilder outputString);
|
@@ -1,3 +1,4 @@
|
|
1
|
+
using System.Collections.Generic;
|
1
2
|
using System.Globalization;
|
2
3
|
using System.Text;
|
3
4
|
|
@@ -5,6 +6,8 @@ namespace TaleWorlds.Localization.TextProcessor.LanguageProcessors
|
|
5
6
|
{
|
6
7
|
public class TurkishTextProcessor : LanguageSpecificTextProcessor
|
7
8
|
{
|
9
|
+
public static List<string> LinkList { get; }
|
10
|
+
|
8
11
|
public override CultureInfo CultureInfoForLanguage { get; }
|
9
12
|
|
10
13
|
public override extern void ProcessToken(string sourceText, ref int cursorPos, string token, StringBuilder outputString);
|