-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from EQAditu/Localization-267
Localization 267
- Loading branch information
Showing
13 changed files
with
565 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{E8253A9D-199D-46A9-A017-572CD97701A0}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>ActLocalization</RootNamespace> | ||
<AssemblyName>ActLocalization</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>TRACE;DEBUG;XMLINCLUDED</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE;XMLINCLUDED</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Advanced Combat Tracker"> | ||
<HintPath>C:\Program Files (x86)\Advanced Combat Tracker\Advanced Combat Tracker.exe</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Windows.Forms" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="ActLocalizationPlugin.cs" /> | ||
<Compile Include="Advanced Combat Tracker.exe.InternalStrings.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormActMain.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormAlliesEdit.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormByCombatantLookup.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormCombatantSearch.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormCustomTriggerBenchmark.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormEncounterLogs.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormEncounterVcr.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormExportFormat.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormImportProgress.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormMiniParse.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormPerformanceWizard.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormResistsDeathReport.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormScratchRange.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormSpellRecastCalc.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormSpellTimers.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormSqlQuery.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormStartupWizard.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormTimeLine.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormUpdater.xml" /> | ||
<EmbeddedResource Include="Advanced Combat Tracker.exe.FormXmlSettingsIO.xml" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
using Advanced_Combat_Tracker; | ||
using System.IO; | ||
using System.Reflection; | ||
using System.Windows.Forms; | ||
|
||
namespace ActLocalization | ||
{ | ||
class ActLocalizationPlugin : IActPluginV1 | ||
{ | ||
public void InitPlugin(TabPage pluginScreenSpace, Label pluginStatusText) | ||
{ | ||
ActLocalization.InternalStrings.EditLocalizations(); | ||
if (ActGlobals.oFormActMain.InitActDone == false) // Will throw a lot of exceptions if loaded after startup | ||
{ | ||
Assembly asm = Assembly.GetExecutingAssembly(); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormActMain.xml")) | ||
ActGlobals.oFormActMain.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormAlliesEdit.xml")) | ||
ActGlobals.oFormAlliesEdit.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormByCombatantLookup.xml")) | ||
ActGlobals.oFormByCombatantLookup.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormCombatantSearch.xml")) | ||
ActGlobals.oFormCombatantSearch.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormCustomTriggerBenchmark.xml")) | ||
ActGlobals.oFormCustomTriggerBenchmark.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormEncounterLogs.xml")) | ||
ActGlobals.oFormEncounterLogs.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormEncounterVcr.xml")) | ||
ActGlobals.oFormEncounterVcr.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormExportFormat.xml")) | ||
ActGlobals.oFormExportFormat.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormImportProgress.xml")) | ||
ActGlobals.oFormImportProgress.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormMiniParse.xml")) | ||
ActGlobals.oFormMiniParse.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormPerformanceWizard.xml")) | ||
ActGlobals.oFormPerformanceWizard.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormResistsDeathReport.xml")) | ||
ActGlobals.oFormResistsDeathReport.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormScratchRange.xml")) | ||
ActGlobals.oFormScratchRange.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormSpellRecastCalc.xml")) | ||
ActGlobals.oFormSpellRecastCalc.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormSpellTimers.xml")) | ||
ActGlobals.oFormSpellTimers.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormSqlQuery.xml")) | ||
ActGlobals.oFormSqlQuery.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormStartupWizard.xml")) | ||
ActGlobals.oFormStartupWizard.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormTimeLine.xml")) | ||
ActGlobals.oFormTimeLine.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormUpdater.xml")) | ||
ActGlobals.oFormUpdater.ImportControlTextXML(s); | ||
using (Stream s = asm.GetManifestResourceStream("ActLocalization.Advanced Combat Tracker.exe.FormXmlSettingsIO.xml")) | ||
ActGlobals.oFormXmlSettingsIO.ImportControlTextXML(s); | ||
} | ||
pluginStatusText.Text = "Localization Complete"; | ||
pluginScreenSpace.Parent.Controls.Remove(pluginScreenSpace); | ||
} | ||
public void DeInitPlugin() | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.