Убрана зависимость Localization от Windows.Forms.dll

This commit is contained in:
Mikhalkovich Stanislav 2026-01-01 20:30:25 +03:00
parent 70fc798dd6
commit 7549262e9b
2 changed files with 4 additions and 12 deletions

View file

@ -15,21 +15,13 @@
<EmbeddedResource Include="DefaultLang.resources" Visible="false" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<ItemGroup>
<LangFiles Include="..\bin\Lng\Rus\**\*" />
</ItemGroup>
<Target Name="MakeLangResFile" BeforeTargets="BeforeBuild" Inputs="@(LangFiles)" Outputs="DefaultLang.resources">
<Exec
Command="cd ..\Utils\DefaultLanguageResMaker &amp; LanguageResMaker.exe"
Condition="$(OS) == 'Windows_NT'" />
<Exec Command="cd ..\Utils\DefaultLanguageResMaker &amp; LanguageResMaker.exe" Condition="$(OS) == 'Windows_NT'" />
<Exec
Command="cd ../Utils/DefaultLanguageResMaker &amp;&amp; mono LanguageResMaker.exe"
Condition="$(OS) != 'Windows_NT'" />
<Exec Command="cd ../Utils/DefaultLanguageResMaker &amp;&amp; mono LanguageResMaker.exe" Condition="$(OS) != 'Windows_NT'" />
</Target>
</Project>

View file

@ -491,7 +491,7 @@ namespace PascalABCCompiler
if (col != null)
foreach (object ob in col)
//не расматриваем формы
if (!(ob is System.Windows.Forms.Form))
if (ob.GetType().FullName != "System.Windows.Forms.Form")
SetTextForAllObjects(ob, prefix);
}
if (val is IContainer)
@ -500,7 +500,7 @@ namespace PascalABCCompiler
if (cont != null)
foreach (object ob in cont.Components)
//не расматриваем формы
if (!(ob is System.Windows.Forms.Form))
if (ob.GetType().FullName != "System.Windows.Forms.Form")
SetTextForAllObjects(ob, prefix);
}
}