diff --git a/Compiler/ConsoleCompilerCommands.cs b/Compiler/ConsoleCompilerCommands.cs index ddfd4ca76..bd2bb8b44 100644 --- a/Compiler/ConsoleCompilerCommands.cs +++ b/Compiler/ConsoleCompilerCommands.cs @@ -49,5 +49,6 @@ namespace PascalABCCompiler public const int CompilerOptionsProjectCompiled = 225; public const int UseDllForSystemUnits = 226; public const int IDELocale = 227; + public const int CompilerLocale = 228; } } diff --git a/Compiler/RemoteCompiler.cs b/Compiler/RemoteCompiler.cs index 10aabe3b6..ee9729dfa 100644 --- a/Compiler/RemoteCompiler.cs +++ b/Compiler/RemoteCompiler.cs @@ -370,6 +370,8 @@ namespace PascalABCCompiler //sendCommand(ConsoleCompilerConstants.CompilerOptionsOutputDirectory, dir_name); sendObjectAsByteArray(ConsoleCompilerConstants.CompilerOptionsOutputDirectory, compilerOptions.OutputDirectory); sendCommand(ConsoleCompilerConstants.CompilerOptionsClearStandartModules); + if (compilerOptions.Locale != null) + sendCommand(ConsoleCompilerConstants.CompilerLocale, compilerOptions.Locale); foreach (PascalABCCompiler.CompilerOptions.StandartModule sm in compilerOptions.StandartModules) sendCommand( ConsoleCompilerConstants.CompilerOptionsStandartModule, diff --git a/pabcnetc/CommandConsoleCompiler.cs b/pabcnetc/CommandConsoleCompiler.cs index 98601fbfd..6aeebd380 100644 --- a/pabcnetc/CommandConsoleCompiler.cs +++ b/pabcnetc/CommandConsoleCompiler.cs @@ -282,6 +282,9 @@ namespace PascalABCCompiler case ConsoleCompilerConstants.CompilerOptions: compiler.CompilerOptions = (CompilerOptions)ReadObject(); break; + case ConsoleCompilerConstants.CompilerLocale: + compiler.CompilerOptions.Locale = arg; + break; case ConsoleCompilerConstants.IDELocale: /*int n = Convert.ToInt32(arg); if (n < StringResourcesLanguage.AccessibleLanguages.Count && n >= 0)