diff --git a/crowdin.yml b/crowdin.yml index 08246171e4..64417011e1 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,3 +1,9 @@ +preserve_hierarchy: true + files: - source: /src/GitHub.Resources/Resources.resx translation: /%original_path%/Resources.%locale%.resx + - source: /src/GitHub.VisualStudio/xlf/GitHub.VisualStudio.vsct.zh-CN.xlf + translation: /%original_path%/GitHub.VisualStudio.vsct.%locale%.xlf + - source: /src/GitHub.VisualStudio/xlf/VSPackage.zh-CN.xlf + translation: /%original_path%/VSPackage.%locale%.xlf diff --git a/nuget.config b/nuget.config index f9e15995d3..e0f4529ac1 100644 --- a/nuget.config +++ b/nuget.config @@ -2,6 +2,7 @@ + diff --git a/src/GitHub.VisualStudio/GitHub.VisualStudio.csproj b/src/GitHub.VisualStudio/GitHub.VisualStudio.csproj index 7e5dc74000..2a5bb719d7 100644 --- a/src/GitHub.VisualStudio/GitHub.VisualStudio.csproj +++ b/src/GitHub.VisualStudio/GitHub.VisualStudio.csproj @@ -1,5 +1,6 @@  + @@ -11,6 +12,7 @@ v3 false GitHub\GitHub + zh-CN @@ -861,8 +863,40 @@ + + + + + + + + <_GeneratedCTOFilesWithCulture Include="@(_GeneratedCTOFilesWithNoCulture)"> + en + true + + <_GeneratedCTOFilesWithNoCulture Remove="@(_GeneratedCTOFilesWithNoCulture)" /> + <_ResourcesToMergeWithCTOWithCultureMetadata Condition="'%(WithCulture)' != 'true'"> + en + true + + + + + diff --git a/src/GitHub.VisualStudio/packages.config b/src/GitHub.VisualStudio/packages.config index 0cd0fc1afd..340c83b159 100644 --- a/src/GitHub.VisualStudio/packages.config +++ b/src/GitHub.VisualStudio/packages.config @@ -54,4 +54,5 @@ + \ No newline at end of file diff --git a/src/GitHub.VisualStudio/xlf/GitHub.VisualStudio.vsct.zh-CN.xlf b/src/GitHub.VisualStudio/xlf/GitHub.VisualStudio.vsct.zh-CN.xlf new file mode 100644 index 0000000000..91a409ed71 --- /dev/null +++ b/src/GitHub.VisualStudio/xlf/GitHub.VisualStudio.vsct.zh-CN.xlf @@ -0,0 +1,207 @@ + + + + + + &Connect to GitHub + 连接至GitHub(&C) + + + + .GitHub.ConnectToGitHub + .GitHub.ConnectToGitHub + + + + Back + 返回 + + + + .GitHub.Back + .GitHub.Back + + + + Copy link to clipboard + 复制连结到剪贴簿 + + + + .GitHub.CopyLink + .GitHub.CopyLink + + + + Forward + 转发 + + + + .GitHub.Forward + .GitHub.Forward + + + + View on GitHub + View on GitHub + + + + .GitHub.ViewOnGitHub + .GitHub.ViewOnGitHub + + + + Go To Solution/PR File + Go To Solution/PR File + + + + .GitHub.GoToSolutionOrPRFile + .GitHub.GoToSolutionOrPRFile + + + + Help + 帮助 + + + + .GitHub.Help + .GitHub.Help + + + + Blame + Blame + + + + .GitHub.Blame + .GitHub.Blame + + + + Create a GitHub Gist + 创建一个GitHub Gist + + + + .GitHub.CreateGist + .GitHub.CreateGist + + + + Create an Enterprise Gist + Create an Enterprise Gist + + + + .GitHub.CreateGistEnterprise + .GitHub.CreateGistEnterprise + + + + GitHub + GitHub + + + + GitHub + GitHub + + + + WindowToolBar + WindowToolBar + + + + Window Toolbar + Window Toolbar + + + + Open from clipboard + Open from clipboard + + + + .GitHub.OpenFromClipboard + .GitHub.OpenFromClipboard + + + + Open from GitHub... + Open from GitHub... + + + + .GitHub.OpenFromUrl + .GitHub.OpenFromUrl + + + + Open on GitHub + Open on GitHub + + + + .GitHub.OpenLink + .GitHub.OpenLink + + + + Pull Requests + 拉取请求 + + + + .GitHub.PullRequests + .GitHub.PullRequests + + + + Refresh + 刷新 + + + + .GitHub.Refresh + .GitHub.Refresh + + + + Show Current Pull Request + 显示当前推送请求 + + + + .GitHub.ShowCurrentPullRequest + .GitHub.ShowCurrentPullRequest + + + + GitHub + GitHub + + + + .GitHub.ShowGitHubPane + .GitHub.ShowGitHubPane + + + + Sync Submodules + Sync Submodules + + + + .GitHub.SyncSubmodules + .GitHub.SyncSubmodules + + + + + diff --git a/src/GitHub.VisualStudio/xlf/VSPackage.zh-CN.xlf b/src/GitHub.VisualStudio/xlf/VSPackage.zh-CN.xlf new file mode 100644 index 0000000000..7eac478e35 --- /dev/null +++ b/src/GitHub.VisualStudio/xlf/VSPackage.zh-CN.xlf @@ -0,0 +1,17 @@ + + + + + + GitHub.VisualStudio + GitHub.VisualStudio + + + + A Visual Studio Extension that brings the GitHub Flow into Visual Studio. + 这是一个将GitHub工作流引入Visual Studio的扩展。 + + + + +