Убрана зависимость 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" /> <EmbeddedResource Include="DefaultLang.resources" Visible="false" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<LangFiles Include="..\bin\Lng\Rus\**\*" /> <LangFiles Include="..\bin\Lng\Rus\**\*" />
</ItemGroup> </ItemGroup>
<Target Name="MakeLangResFile" BeforeTargets="BeforeBuild" Inputs="@(LangFiles)" Outputs="DefaultLang.resources"> <Target Name="MakeLangResFile" BeforeTargets="BeforeBuild" Inputs="@(LangFiles)" Outputs="DefaultLang.resources">
<Exec <Exec Command="cd ..\Utils\DefaultLanguageResMaker &amp; LanguageResMaker.exe" Condition="$(OS) == 'Windows_NT'" />
Command="cd ..\Utils\DefaultLanguageResMaker &amp; LanguageResMaker.exe"
Condition="$(OS) == 'Windows_NT'" />
<Exec <Exec Command="cd ../Utils/DefaultLanguageResMaker &amp;&amp; mono LanguageResMaker.exe" Condition="$(OS) != 'Windows_NT'" />
Command="cd ../Utils/DefaultLanguageResMaker &amp;&amp; mono LanguageResMaker.exe"
Condition="$(OS) != 'Windows_NT'" />
</Target> </Target>
</Project> </Project>

View file

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