Убрана зависимость Localization от Windows.Forms.dll
This commit is contained in:
parent
70fc798dd6
commit
7549262e9b
|
|
@ -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 & LanguageResMaker.exe" Condition="$(OS) == 'Windows_NT'" />
|
||||||
Command="cd ..\Utils\DefaultLanguageResMaker & LanguageResMaker.exe"
|
|
||||||
Condition="$(OS) == 'Windows_NT'" />
|
|
||||||
|
|
||||||
<Exec
|
<Exec Command="cd ../Utils/DefaultLanguageResMaker && mono LanguageResMaker.exe" Condition="$(OS) != 'Windows_NT'" />
|
||||||
Command="cd ../Utils/DefaultLanguageResMaker && mono LanguageResMaker.exe"
|
|
||||||
Condition="$(OS) != 'Windows_NT'" />
|
|
||||||
</Target>
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue