Skip to content

Commit

Permalink
Feature/german translations (#2051)
Browse files Browse the repository at this point in the history
* Initial commit for german translations

* Translate button texts

* translate DgmlLocale

* Translate SharedLocale

* Translate ModelAnalyzerLocale

* Translate AboutLocale

* Translate ReverseEngineerLocale

* Translate CompareLocale

* Translate MigrationsLocale
  • Loading branch information
rufer7 authored Dec 17, 2023
1 parent 6242c29 commit 22c263a
Show file tree
Hide file tree
Showing 10 changed files with 1,799 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/GUI/EFCorePowerTools/EFCorePowerTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
<None Include="Resources\Package.ico" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Locales\AboutLocale.de.resx" />
<EmbeddedResource Include="Locales\AboutLocale.es.resx" />
<EmbeddedResource Include="Locales\AboutLocale.pt-BR.resx" />
<EmbeddedResource Include="Locales\AboutLocale.tr.resx" />
Expand All @@ -278,6 +279,7 @@
<EmbeddedResource Include="Locales\AboutLocale.it.resx" />
<EmbeddedResource Include="Locales\AboutLocale.zh-Hans.resx" />
<EmbeddedResource Include="Locales\AboutLocale.zh-Hant.resx" />
<EmbeddedResource Include="Locales\CompareLocale.de.resx" />
<EmbeddedResource Include="Locales\CompareLocale.es.resx" />
<EmbeddedResource Include="Locales\CompareLocale.pt-BR.resx" />
<EmbeddedResource Include="Locales\CompareLocale.tr.resx" />
Expand All @@ -291,6 +293,7 @@
<EmbeddedResource Include="Locales\CompareLocale.it.resx" />
<EmbeddedResource Include="Locales\CompareLocale.zh-Hans.resx" />
<EmbeddedResource Include="Locales\CompareLocale.zh-Hant.resx" />
<EmbeddedResource Include="Locales\DgmlLocale.de.resx" />
<EmbeddedResource Include="Locales\DgmlLocale.es.resx" />
<EmbeddedResource Include="Locales\DgmlLocale.pt-BR.resx" />
<EmbeddedResource Include="Locales\DgmlLocale.tr.resx" />
Expand All @@ -303,6 +306,7 @@
<EmbeddedResource Include="Locales\DgmlLocale.en.resx" />
<EmbeddedResource Include="Locales\DgmlLocale.zh-Hans.resx" />
<EmbeddedResource Include="Locales\DgmlLocale.zh-Hant.resx" />
<EmbeddedResource Include="Locales\MigrationsLocale.de.resx" />
<EmbeddedResource Include="Locales\MigrationsLocale.es.resx" />
<EmbeddedResource Include="Locales\MigrationsLocale.pt-BR.resx" />
<EmbeddedResource Include="Locales\MigrationsLocale.tr.resx" />
Expand All @@ -316,6 +320,7 @@
<EmbeddedResource Include="Locales\MigrationsLocale.it.resx" />
<EmbeddedResource Include="Locales\MigrationsLocale.zh-Hans.resx" />
<EmbeddedResource Include="Locales\MigrationsLocale.zh-Hant.resx" />
<EmbeddedResource Include="Locales\ModelAnalyzerLocale.de.resx" />
<EmbeddedResource Include="Locales\ModelAnalyzerLocale.es.resx" />
<EmbeddedResource Include="Locales\ModelAnalyzerLocale.pt-BR.resx" />
<EmbeddedResource Include="Locales\ModelAnalyzerLocale.tr.resx" />
Expand All @@ -329,6 +334,7 @@
<EmbeddedResource Include="Locales\ModelAnalyzerLocale.it.resx" />
<EmbeddedResource Include="Locales\ModelAnalyzerLocale.zh-Hans.resx" />
<EmbeddedResource Include="Locales\ModelAnalyzerLocale.zh-Hant.resx" />
<EmbeddedResource Include="Locales\ReverseEngineerLocale.de.resx" />
<EmbeddedResource Include="Locales\ReverseEngineerLocale.es.resx" />
<EmbeddedResource Include="Locales\ReverseEngineerLocale.pt-BR.resx" />
<EmbeddedResource Include="Locales\ReverseEngineerLocale.tr.resx" />
Expand All @@ -344,6 +350,7 @@
<EmbeddedResource Include="Locales\ReverseEngineerLocale.it.resx" />
<EmbeddedResource Include="Locales\ReverseEngineerLocale.zh-Hans.resx" />
<EmbeddedResource Include="Locales\ReverseEngineerLocale.zh-Hant.resx" />
<EmbeddedResource Include="Locales\SharedLocale.de.resx" />
<EmbeddedResource Include="Locales\SharedLocale.es.resx" />
<EmbeddedResource Include="Locales\SharedLocale.pt-BR.resx" />
<EmbeddedResource Include="Locales\SharedLocale.tr.resx" />
Expand All @@ -364,6 +371,10 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="VSPackage.de.resx">
<MergeWithCTO>true</MergeWithCTO>
<LogicalName>VSPackage.de.Resources</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="VSPackage.es.resx">
<MergeWithCTO>true</MergeWithCTO>
<LogicalName>VSPackage.es.Resources</LogicalName>
Expand Down Expand Up @@ -477,6 +488,9 @@
<IncludeInVSIX>true</IncludeInVSIX>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<VSCTCompile Include="EFCorePowerToolsPackage.de.vsct">
<ResourceName>Menus.ctmenu</ResourceName>
</VSCTCompile>
<VSCTCompile Include="EFCorePowerToolsPackage.en.vsct">
<ResourceName>Menus.ctmenu</ResourceName>
</VSCTCompile>
Expand Down
312 changes: 312 additions & 0 deletions src/GUI/EFCorePowerTools/EFCorePowerToolsPackage.de.vsct
Original file line number Diff line number Diff line change
@@ -0,0 +1,312 @@
<?xml version="1.0" encoding="utf-8"?>
<CommandTable xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable" xmlns:xs="http://www.w3.org/2001/XMLSchema">

<!--This is the file that defines the IDs for all the commands exposed by VisualStudio. -->
<Extern href="stdidcmd.h" />

<!--This header contains the command ids for the menus provided by the shell. -->
<Extern href="vsshlids.h" />

<Include href="KnownImageIds.vsct"/>

<!--The Commands section is where we the commands, menus and menu groups are defined.
This section uses a Guid to identify the package that provides the command defined inside it. -->
<Commands package="guidDbContextPackagePkg">
<Groups>
<Group guid="guidDbContextPackageCmdSet" id="cmdidEdmProjectMenuGroup" priority="0x0100">
<Parent guid="guidDbContextPackageCmdSet" id="IDM_VS_CTXT_PROJNODE" />
</Group>

<Group guid="guidDbContextPackageCmdSet" id="cmdidEdmProjectMenuItemsGroup" priority="0x0100">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmProjectMenu" />
</Group>

<Group guid="guidDbContextPackageCmdSet" id="cmdidEdmMigrationMenuItemsGroup" priority="0x0150">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmProjectMenu" />
</Group>

<Group guid="guidDbContextPackageCmdSet" id="cmdidEdmViewMenuItemsGroup" priority="0x0200">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmProjectMenu" />
</Group>

<Group guid="guidDbContextPackageCmdSet" id="cmdidEdmDatabaseMenuItemsGroup" priority="0x0500">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmProjectMenu" />
</Group>

<Group guid="guidDbContextPackageCmdSet" id="cmdidEdmCompareMenuItemsGroup" priority="0x0600">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmProjectMenu" />
</Group>

<Group guid="guidDbContextPackageCmdSet" id="cmdidEdmAboutMenuItemsGroup" priority="0x0800">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmProjectMenu" />
</Group>

<Group guid="guidReverseEngineerMenu" id="idReverseEngineerMenuGroup" priority="0x0100">
<Parent guid="guidReverseEngineerMenu" id="idReverseEngineerMenu" />
</Group>

<Group guid="guidVSPackageCommandProjectContextMenuCmdSet" id="MyGroupForCommands" />
</Groups>

<Menus>

<Menu guid="guidDbContextPackageCmdSet" id="cmdidEdmProjectMenu" priority="0x0100" type="Menu">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmProjectMenuGroup" />
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>EF Core Power Tools</CommandName>
<ButtonText>EF Core Power Tools</ButtonText>
</Strings>
</Menu>

<Menu guid="guidDbContextPackageCmdSet" id="cmdidEdmMenu" priority="0x0100" type="Menu">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmMenuGroup" />
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>EF Core Power Tools</CommandName>
<ButtonText>EF Core Power Tools</ButtonText>
</Strings>
</Menu>

<Menu guid="guidReverseEngineerMenu" id="idReverseEngineerMenu" priority="0x0100" type="Menu">
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_ITEMNODE" />
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>EF Core Power Tools - Reverse Engineer</CommandName>
<ButtonText>EF Core Power Tools - Reverse Engineering</ButtonText>
</Strings>
</Menu>

</Menus>

<Buttons>

<Button guid="guidDbContextPackageCmdSet" id="cmdidReverseEngineerCodeFirst" priority="0x0100" type="Button">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmProjectMenuItemsGroup" />
<Icon guid="ImageCatalogGuid" id="DatabaseConfigurationFile" />
<CommandFlag>IconIsMoniker</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>cmdidReverseEngineerCodeFirst</CommandName>
<ButtonText>Reverse Engineering</ButtonText>
</Strings>
</Button>

<Button guid="guidDbContextPackageCmdSet" id="cmdidMigrationStatus" priority="0x0100" type="Button">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmMigrationMenuItemsGroup" />
<Icon guid="ImageCatalogGuid" id="GenerateChangeScript" />
<CommandFlag>IconIsMoniker</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>cmdidMigrationStatus</CommandName>
<ButtonText>Migrationstool (Vorschau)</ButtonText>
</Strings>
</Button>

<Button guid="guidDbContextPackageCmdSet" id="cmdidAbout" priority="0x0900" type="Button">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmAboutMenuItemsGroup" />
<Icon guid="ImageCatalogGuid" id="StatusHelpOutline" />
<CommandFlag>IconIsMoniker</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>cmdidAbout</CommandName>
<ButtonText>Über</ButtonText>
</Strings>
</Button>

<Button guid="guidDbContextPackageCmdSet" id="cmdidOptions" priority="0x0700" type="Button">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmAboutMenuItemsGroup" />
<Icon guid="ImageCatalogGuid" id="Settings" />
<CommandFlag>IconIsMoniker</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>cmdidOptions</CommandName>
<ButtonText>Optionen</ButtonText>
</Strings>
</Button>

<Button guid="guidDbContextPackageCmdSet" id="cmdidT4Drop" priority="0x0250" type="Button">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmViewMenuItemsGroup" />
<Icon guid="ImageCatalogGuid" id="Template" />
<CommandFlag>IconIsMoniker</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>cmdidT4Drop</CommandName>
<ButtonText>T4-Gerüstvorlagen hinzufügen</ButtonText>
</Strings>
</Button>

<Button guid="guidDbContextPackageCmdSet" id="cmdidDgmlBuild" priority="0x0200" type="Button">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmViewMenuItemsGroup" />
<Icon guid="ImageCatalogGuid" id="NewDiagram" />
<CommandFlag>IconIsMoniker</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>cmdidDgmlNuget</CommandName>
<ButtonText>DbContext Diagramm hinzufügen</ButtonText>
</Strings>
</Button>

<Button guid="guidDbContextPackageCmdSet" id="cmdidSqlBuild" priority="0x0300" type="Button">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmViewMenuItemsGroup" />
<Icon guid="ImageCatalogGuid" id="SQLQueryChecked" />
<CommandFlag>IconIsMoniker</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>cmdidSqlBuild</CommandName>
<ButtonText>DbContext DDL SQL anzeigen</ButtonText>
</Strings>
</Button>

<Button guid="guidDbContextPackageCmdSet" id="cmdidDebugViewBuild" priority="0x0400" type="Button">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmViewMenuItemsGroup" />
<Icon guid="ImageCatalogGuid" id="ExportScript" />
<CommandFlag>IconIsMoniker</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>cmdidDebugViewBuild</CommandName>
<ButtonText>DbContext als Debug-Ansicht anzeigen</ButtonText>
</Strings>
</Button>

<Button guid="guidDbContextPackageCmdSet" id="cmdidDgmlNuget" priority="0x0500" type="Button">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmViewMenuItemsGroup" />
<Icon guid="ImageCatalogGuid" id="PackageDeployment" />
<CommandFlag>IconIsMoniker</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>cmdidDgmlNuget</CommandName>
<ButtonText>AsDgml() Erweiterung hinzufügen</ButtonText>
</Strings>
</Button>

<Button guid="guidDbContextPackageCmdSet" id="cmdidDbCompare" priority="0x0900" type="Button">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmCompareMenuItemsGroup" />
<Icon guid="ImageCatalogGuid" id="CompareSchemas" />
<CommandFlag>IconIsMoniker</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>cmdidDbCompare</CommandName>
<ButtonText>DbContext mit Datenbank vergleichen</ButtonText>
</Strings>
</Button>

<Button guid="guidDbContextPackageCmdSet" id="cmdidDbDgml" priority="0x0800" type="Button">
<Parent guid="guidDbContextPackageCmdSet" id="cmdidEdmDatabaseMenuItemsGroup" />
<Icon guid="ImageCatalogGuid" id="DatabaseAuditSpecification" />
<CommandFlag>IconIsMoniker</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>cmdidDbDgml</CommandName>
<ButtonText>Datenbankschema visualisieren (Vorschau)</ButtonText>
</Strings>
</Button>
<Button guid="guidReverseEngineerMenu" id="cmdidReverseEngineerEdit" priority="0x0100" type="Button">
<Parent guid="guidReverseEngineerMenu" id="idReverseEngineerMenuGroup" />
<CommandFlag>DynamicVisibility</CommandFlag>
<CommandFlag>DefaultInvisible</CommandFlag>
<Strings>
<CommandName>EF Core Power Tools - Edit</CommandName>
<ButtonText>EF Core Power Tools - Bearbeiten</ButtonText>
</Strings>
</Button>

<Button guid="guidReverseEngineerMenu" id="cmdidReverseEngineerRefresh" priority="0x0100" type="Button">
<Parent guid="guidReverseEngineerMenu" id="idReverseEngineerMenuGroup" />
<CommandFlag>DynamicVisibility</CommandFlag>
<CommandFlag>DefaultInvisible</CommandFlag>
<Strings>
<CommandName>EF Core Power Tools - Refresh</CommandName>
<ButtonText>EF Core Power Tools - Aktualisieren</ButtonText>
</Strings>
</Button>

<Button guid="guidVSPackageCommandProjectContextMenuCmdSet" id="Command1Id" type="Button">
<Icon guid="ImageCatalogGuid" id="DatabaseScript" />
<CommandFlag>IconIsMoniker</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
<CommandFlag>DefaultInvisible</CommandFlag>
<Strings>
<ButtonText>EF Core DbContext erstellen...</ButtonText>
</Strings>
</Button>

</Buttons>

</Commands>

<CommandPlacements>

<CommandPlacement guid="guidDbContextPackageCmdSet" id="cmdidEdmProjectMenuGroup" priority="0x100">
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_PROJNODE" />
</CommandPlacement>

<CommandPlacement guid="guidReverseEngineerMenu" id="idReverseEngineerMenuGroup" priority="0x100">
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_ITEMNODE" />
</CommandPlacement>

<CommandPlacement guid="guidVSPackageCommandProjectContextMenuCmdSet" id="MyGroupForCommands" priority="0x0001">
<!-- The parent of the group will be the project context menu -->
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_PROJNODE"/>
</CommandPlacement>

<CommandPlacement guid="guidVSPackageCommandProjectContextMenuCmdSet" id="Command1Id" priority="0x100" >
<Parent guid="guidVSPackageCommandProjectContextMenuCmdSet" id="MyGroupForCommands"/>
</CommandPlacement>
</CommandPlacements>

<Symbols>
<!-- This is the package guid. -->
<GuidSymbol name="guidDbContextPackagePkg" value="{f4c4712c-ceae-4803-8e52-0e2049d5de9f}" />

<!-- This is the guid used to group the menu commands together -->
<GuidSymbol name="guidDbContextPackageCmdSet" value="{c769a05d-8d51-4919-bfe6-5f35a0eaf2ba}">

<!-- Project Item Menu Entries -->

<IDSymbol name="cmdidDgmlBuild" value="0x0100" />
<IDSymbol name="cmdidDgmlNuget" value="0x0200" />
<IDSymbol name="cmdidT4Drop" value="0x0250" />
<IDSymbol name="cmdidEdmMenuAbout" value="0x0300" />
<IDSymbol name="cmdidSqlBuild" value="0x0400" />
<IDSymbol name="cmdidDebugViewBuild" value="0x0450" />
<IDSymbol name="cmdidEdmCompareMenuItemsGroup" value="0x0470" />
<IDSymbol name="cmdidEdmDatabaseMenuItemsGroup" value="0x0480" />
<IDSymbol name="cmdidEdmMigrationMenuItemsGroup" value="0x0490" />
<IDSymbol name="cmdidEdmMenu" value="0x0500" />
<IDSymbol name="cmdidEdmMenuGroup" value="0x0600" />
<IDSymbol name="cmdidEdmProjectMenuItemsGroup" value="0x0700" />
<IDSymbol name="cmdidEdmAboutMenuItemsGroup" value="0x0800" />
<IDSymbol name="cmdidEdmViewMenuItemsGroup" value="0x0900" />

<!-- Project Menu Entries -->
<IDSymbol name="cmdidReverseEngineerCodeFirst" value="0x0001" />
<IDSymbol name="cmdidEdmProjectMenuItemsGroup" value="0x0002" />
<IDSymbol name="cmdidEdmProjectMenu" value="0x0003" />
<IDSymbol name="cmdidEdmProjectMenuGroup" value="0x0004" />
<IDSymbol name="cmdidAbout" value="0x0006" />
<IDSymbol name="cmdidOptions" value="0x0010" />
<IDSymbol name="cmdidMigrationStatus" value="0x0007" />
<IDSymbol name="cmdidDbCompare" value="0x0008" />
<IDSymbol name="cmdidDbDgml" value="0x0009" />
</GuidSymbol>

<!-- This is the guid used to group the menu ReverseEngineer commands together -->
<GuidSymbol name="guidReverseEngineerMenu" value="{74bcf1bb-979c-408d-adcf-718c16e8f09e}">
<IDSymbol name="idReverseEngineerMenu" value="0x1000" />
<IDSymbol name="idReverseEngineerMenuGroup" value="0x1100" />
<IDSymbol name="cmdidReverseEngineerEdit" value="0x1101" />
<IDSymbol name="cmdidReverseEngineerRefresh" value="0x1102" />
</GuidSymbol>

<GuidSymbol name="guidVSPackageCommandProjectContextMenu" value="{069acb34-c12c-4e1c-ae69-1f9295046c84}" />

<GuidSymbol name="guidVSPackageCommandProjectContextMenuCmdSet" value="{9a55a2b4-3e29-4359-882b-fa5f51c09301}">
<IDSymbol name="MyGroupForCommands" value="0x1020" />
<!-- Warning!!: Keep the value in sync with the code in Command1.cs -->
<IDSymbol name="Command1Id" value="0x109" />
</GuidSymbol>

</Symbols>

</CommandTable>
Loading

0 comments on commit 22c263a

Please sign in to comment.