Skip to content

Commit

Permalink
Zh hant translation (#2038)
Browse files Browse the repository at this point in the history
* Add translation for zh-Hant

* Fix up

---------

Co-authored-by: Will <doggy.huang@gmail.com>
  • Loading branch information
ErikEJ and doggy8088 committed Dec 10, 2023
1 parent ba81ac6 commit ce14b58
Show file tree
Hide file tree
Showing 11 changed files with 2,079 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 @@ -279,6 +279,7 @@
<EmbeddedResource Include="Locales\AboutLocale.en.resx" />
<EmbeddedResource Include="Locales\AboutLocale.it.resx" />
<EmbeddedResource Include="Locales\AboutLocale.zh-Hans.resx" />
<EmbeddedResource Include="Locales\AboutLocale.zh-Hant.resx" />
<EmbeddedResource Include="Locales\CompareLocale.es.resx" />
<EmbeddedResource Include="Locales\CompareLocale.tr.resx" />
<EmbeddedResource Include="Locales\CompareLocale.fr.resx" />
Expand All @@ -290,6 +291,7 @@
<EmbeddedResource Include="Locales\CompareLocale.en.resx" />
<EmbeddedResource Include="Locales\CompareLocale.it.resx" />
<EmbeddedResource Include="Locales\CompareLocale.zh-Hans.resx" />
<EmbeddedResource Include="Locales\CompareLocale.zh-Hant.resx" />
<EmbeddedResource Include="Locales\DgmlLocale.es.resx" />
<EmbeddedResource Include="Locales\DgmlLocale.tr.resx" />
<EmbeddedResource Include="Locales\DgmlLocale.fr.resx" />
Expand All @@ -300,6 +302,7 @@
<EmbeddedResource Include="Locales\DgmlLocale.it.resx" />
<EmbeddedResource Include="Locales\DgmlLocale.en.resx" />
<EmbeddedResource Include="Locales\DgmlLocale.zh-Hans.resx" />
<EmbeddedResource Include="Locales\DgmlLocale.zh-Hant.resx" />
<EmbeddedResource Include="Locales\MigrationsLocale.es.resx" />
<EmbeddedResource Include="Locales\MigrationsLocale.tr.resx" />
<EmbeddedResource Include="Locales\MigrationsLocale.fr.resx" />
Expand All @@ -311,6 +314,7 @@
<EmbeddedResource Include="Locales\MigrationsLocale.en.resx" />
<EmbeddedResource Include="Locales\MigrationsLocale.it.resx" />
<EmbeddedResource Include="Locales\MigrationsLocale.zh-Hans.resx" />
<EmbeddedResource Include="Locales\MigrationsLocale.zh-Hant.resx" />
<EmbeddedResource Include="Locales\ModelAnalyzerLocale.es.resx" />
<EmbeddedResource Include="Locales\ModelAnalyzerLocale.tr.resx" />
<EmbeddedResource Include="Locales\ModelAnalyzerLocale.fr.resx" />
Expand All @@ -322,6 +326,7 @@
<EmbeddedResource Include="Locales\ModelAnalyzerLocale.en.resx" />
<EmbeddedResource Include="Locales\ModelAnalyzerLocale.it.resx" />
<EmbeddedResource Include="Locales\ModelAnalyzerLocale.zh-Hans.resx" />
<EmbeddedResource Include="Locales\ModelAnalyzerLocale.zh-Hant.resx" />
<EmbeddedResource Include="Locales\ReverseEngineerLocale.es.resx" />
<EmbeddedResource Include="Locales\ReverseEngineerLocale.tr.resx" />
<EmbeddedResource Include="Locales\ReverseEngineerLocale.fr.resx" />
Expand All @@ -335,6 +340,7 @@
</EmbeddedResource>
<EmbeddedResource Include="Locales\ReverseEngineerLocale.it.resx" />
<EmbeddedResource Include="Locales\ReverseEngineerLocale.zh-Hans.resx" />
<EmbeddedResource Include="Locales\ReverseEngineerLocale.zh-Hant.resx" />
<EmbeddedResource Include="Locales\SharedLocale.es.resx" />
<EmbeddedResource Include="Locales\SharedLocale.tr.resx" />
<EmbeddedResource Include="Locales\SharedLocale.fr.resx" />
Expand All @@ -345,6 +351,7 @@
<EmbeddedResource Include="Locales\SharedLocale.it.resx" />
<EmbeddedResource Include="Locales\SharedLocale.en.resx" />
<EmbeddedResource Include="Locales\SharedLocale.zh-Hans.resx" />
<EmbeddedResource Include="Locales\SharedLocale.zh-Hant.resx" />
<EmbeddedResource Include="Resources.en.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.en.Designer.cs</LastGenOutput>
Expand Down Expand Up @@ -373,6 +380,10 @@
<MergeWithCTO>true</MergeWithCTO>
<LogicalName>VSPackage.zh-Hans.Resources</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="VSPackage.zh-Hant.resx">
<MergeWithCTO>true</MergeWithCTO>
<LogicalName>VSPackage.zh-Hant.Resources</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="VSPackage.en.resx">
<MergeWithCTO>true</MergeWithCTO>
<LogicalName>VSPackage.en.Resources</LogicalName>
Expand Down Expand Up @@ -470,6 +481,9 @@
<VSCTCompile Include="EFCorePowerToolsPackage.zh-Hans.vsct">
<ResourceName>Menus.ctmenu</ResourceName>
</VSCTCompile>
<VSCTCompile Include="EFCorePowerToolsPackage.zh-Hant.vsct">
<ResourceName>Menus.ctmenu</ResourceName>
</VSCTCompile>
</ItemGroup>
<ItemGroup>
<PackageReference Include="AdysTech.CredentialManager" Version="2.6.0" />
Expand Down
312 changes: 312 additions & 0 deletions src/GUI/EFCorePowerTools/EFCorePowerToolsPackage.zh-Hant.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 - 反向工程</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>反向工程</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>遷移工具 (預覽版)</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>關於</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>選項</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 Scaffolding 樣板</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 圖表</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</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 的 DebugView</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() 擴充方法</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 和資料庫</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>視覺化資料庫結構 (預覽版)</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 - 編輯</CommandName>
<ButtonText>EF Core Power Tools - 編輯</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 - 重新整理</CommandName>
<ButtonText>EF Core Power Tools - 重新整理</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...</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 ce14b58

Please sign in to comment.