fix #2295
This commit is contained in:
parent
421e97ef03
commit
6083ceac1e
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue