diff --git a/README.md b/README.md
index 6361383..b139074 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,15 @@ The latest build of the Visual Studio Extension is available at the [Open VsixGa
## What's new ?
+##
+
+* Added context menu to the ListView in ConnectionSectionView with option to open or delete the local repo. Deleting send the repo directory to the Recycling Bin.
+* AddOpen URL from clipboard ,Right click on editor, if repository is hosted on Gitea Server , you can jump to master/current branch/current revision's blob page and blame/commits page. If selecting line(single, range) in editor, jump with line number fragment.
+* Added repo descriptions to CloneView.
+* Minor enhancements.
+* Clone descriptions
+* Project.Description
+
#### V1.0.47
* Resolved error when package is initializing. #3
diff --git a/src/Gitea.TeamFoundation.14/Home/GiteaHomeSection.cs b/src/Gitea.TeamFoundation.14/Home/GiteaHomeSection.cs
index 0659305..5ad398c 100644
--- a/src/Gitea.TeamFoundation.14/Home/GiteaHomeSection.cs
+++ b/src/Gitea.TeamFoundation.14/Home/GiteaHomeSection.cs
@@ -29,6 +29,11 @@ public override void Initialize(object sender, SectionInitializeEventArgs e)
public override async void Refresh()
{
IsVisible = await _tes.IsGiteaRepoAsync() ;
+ var view = (this.View as TextBlock);
+ if (view != null)
+ {
+ view.Text =( _tes.Project != null && !string.IsNullOrEmpty(_tes.Project.Description) )? _tes.Project.Description : Strings.Description;
+ }
base.Refresh();
}
@@ -44,9 +49,10 @@ protected override object CreateView(SectionInitializeEventArgs e)
{
return new TextBlock
{
- Text = Strings.Description,
+ Text = (_tes.Project != null && !string.IsNullOrEmpty(_tes.Project.Description)) ? _tes.Project.Description : Strings.Description,
TextWrapping = System.Windows.TextWrapping.Wrap
};
}
+
}
}
\ No newline at end of file
diff --git a/src/Gitea.VisualStudio.Shared/Strings.Designer.cs b/src/Gitea.VisualStudio.Shared/Strings.Designer.cs
index c64ba5b..a4c7b4e 100644
--- a/src/Gitea.VisualStudio.Shared/Strings.Designer.cs
+++ b/src/Gitea.VisualStudio.Shared/Strings.Designer.cs
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
+// 此代码由工具生成。
+// 运行时版本:4.0.30319.42000
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
+// 对此文件的更改可能会导致不正确的行为,并且如果
+// 重新生成代码,这些更改将会丢失。
//
//------------------------------------------------------------------------------
@@ -13,12 +13,12 @@ namespace Gitea.VisualStudio.Shared {
///
- /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// 一个强类型的资源类,用于查找本地化的字符串等。
///
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
+ // 此类是由 StronglyTypedResourceBuilder
+ // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
+ // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
+ // (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
@@ -33,7 +33,7 @@ internal Strings() {
}
///
- /// Returns the cached ResourceManager instance used by this class.
+ /// 返回此类使用的缓存的 ResourceManager 实例。
///
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Resources.ResourceManager ResourceManager {
@@ -47,8 +47,8 @@ internal Strings() {
}
///
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
+ /// 重写当前线程的 CurrentUICulture 属性
+ /// 重写当前线程的 CurrentUICulture 属性。
///
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Globalization.CultureInfo Culture {
@@ -61,7 +61,7 @@ internal Strings() {
}
///
- /// Looks up a localized string similar to Activity.
+ /// 查找类似 Activity 的本地化字符串。
///
public static string Activity {
get {
@@ -70,7 +70,7 @@ public static string Activity {
}
///
- /// Looks up a localized string similar to After created open in the browser.
+ /// 查找类似 After created open in the browser 的本地化字符串。
///
public static string AfterCreatedOpenInTheBrowser {
get {
@@ -79,7 +79,7 @@ public static string AfterCreatedOpenInTheBrowser {
}
///
- /// Looks up a localized string similar to Failed to load.
+ /// 查找类似 Failed to load 的本地化字符串。
///
public static string CloneView_FailedToLoadProjects {
get {
@@ -88,7 +88,7 @@ public static string CloneView_FailedToLoadProjects {
}
///
- /// Looks up a localized string similar to No projects.
+ /// 查找类似 No projects 的本地化字符串。
///
public static string CloneView_NoProjects {
get {
@@ -97,7 +97,7 @@ public static string CloneView_NoProjects {
}
///
- /// Looks up a localized string similar to Search.
+ /// 查找类似 Search 的本地化字符串。
///
public static string CloneView_Search {
get {
@@ -106,7 +106,7 @@ public static string CloneView_Search {
}
///
- /// Looks up a localized string similar to Close.
+ /// 查找类似 Close 的本地化字符串。
///
public static string Close {
get {
@@ -115,7 +115,7 @@ public static string Close {
}
///
- /// Looks up a localized string similar to Browse.
+ /// 查找类似 Browse 的本地化字符串。
///
public static string Common_Browse {
get {
@@ -124,7 +124,7 @@ public static string Common_Browse {
}
///
- /// Looks up a localized string similar to Cancel.
+ /// 查找类似 Cancel 的本地化字符串。
///
public static string Common_Cancel {
get {
@@ -133,7 +133,7 @@ public static string Common_Cancel {
}
///
- /// Looks up a localized string similar to Add a .gitignore.
+ /// 查找类似 Add a .gitignore 的本地化字符串。
///
public static string Common_ChooseAGitIgnore {
get {
@@ -142,7 +142,7 @@ public static string Common_ChooseAGitIgnore {
}
///
- /// Looks up a localized string similar to Add a license.
+ /// 查找类似 Add a license 的本地化字符串。
///
public static string Common_ChooseALicense {
get {
@@ -151,7 +151,7 @@ public static string Common_ChooseALicense {
}
///
- /// Looks up a localized string similar to Clone.
+ /// 查找类似 Clone 的本地化字符串。
///
public static string Common_Clone {
get {
@@ -160,7 +160,7 @@ public static string Common_Clone {
}
///
- /// Looks up a localized string similar to Confirm.
+ /// 查找类似 Confirm 的本地化字符串。
///
public static string Common_Confirm {
get {
@@ -169,7 +169,7 @@ public static string Common_Confirm {
}
///
- /// Looks up a localized string similar to Create.
+ /// 查找类似 Create 的本地化字符串。
///
public static string Common_CreateRepository {
get {
@@ -178,7 +178,7 @@ public static string Common_CreateRepository {
}
///
- /// Looks up a localized string similar to Delete Local.
+ /// 查找类似 Delete Local 的本地化字符串。
///
public static string Common_DeleteLocal {
get {
@@ -187,7 +187,7 @@ public static string Common_DeleteLocal {
}
///
- /// Looks up a localized string similar to Description.
+ /// 查找类似 Description 的本地化字符串。
///
public static string Common_Description {
get {
@@ -196,7 +196,7 @@ public static string Common_Description {
}
///
- /// Looks up a localized string similar to Maximum length of description is 500.
+ /// 查找类似 Maximum length of description is 500 的本地化字符串。
///
public static string Common_DescriptionMaxTo {
get {
@@ -205,7 +205,7 @@ public static string Common_DescriptionMaxTo {
}
///
- /// Looks up a localized string similar to Error.
+ /// 查找类似 Error 的本地化字符串。
///
public static string Common_Error {
get {
@@ -214,7 +214,7 @@ public static string Common_Error {
}
///
- /// Looks up a localized string similar to Git ignore.
+ /// 查找类似 Git ignore 的本地化字符串。
///
public static string Common_GitIgnore {
get {
@@ -223,7 +223,7 @@ public static string Common_GitIgnore {
}
///
- /// Looks up a localized string similar to License.
+ /// 查找类似 License 的本地化字符串。
///
public static string Common_License {
get {
@@ -232,7 +232,7 @@ public static string Common_License {
}
///
- /// Looks up a localized string similar to Loading.
+ /// 查找类似 Loading 的本地化字符串。
///
public static string Common_Loading {
get {
@@ -241,7 +241,7 @@ public static string Common_Loading {
}
///
- /// Looks up a localized string similar to Message.
+ /// 查找类似 Message 的本地化字符串。
///
public static string Common_Message {
get {
@@ -250,7 +250,7 @@ public static string Common_Message {
}
///
- /// Looks up a localized string similar to Name.
+ /// 查找类似 Name 的本地化字符串。
///
public static string Common_Name {
get {
@@ -259,7 +259,7 @@ public static string Common_Name {
}
///
- /// Looks up a localized string similar to Maximum length of name is 64 chars.
+ /// 查找类似 Maximum length of name is 64 chars 的本地化字符串。
///
public static string Common_NameMaxTo {
get {
@@ -268,7 +268,7 @@ public static string Common_NameMaxTo {
}
///
- /// Looks up a localized string similar to New.
+ /// 查找类似 New 的本地化字符串。
///
public static string Common_New {
get {
@@ -277,7 +277,7 @@ public static string Common_New {
}
///
- /// Looks up a localized string similar to Open.
+ /// 查找类似 Open 的本地化字符串。
///
public static string Common_Open {
get {
@@ -286,7 +286,7 @@ public static string Common_Open {
}
///
- /// Looks up a localized string similar to Owner.
+ /// 查找类似 Owner 的本地化字符串。
///
public static string Common_Owner {
get {
@@ -295,7 +295,7 @@ public static string Common_Owner {
}
///
- /// Looks up a localized string similar to Path.
+ /// 查找类似 Path 的本地化字符串。
///
public static string Common_Path {
get {
@@ -304,7 +304,7 @@ public static string Common_Path {
}
///
- /// Looks up a localized string similar to Private.
+ /// 查找类似 Private 的本地化字符串。
///
public static string Common_Private {
get {
@@ -313,7 +313,7 @@ public static string Common_Private {
}
///
- /// Looks up a localized string similar to Property.
+ /// 查找类似 Property 的本地化字符串。
///
public static string Common_Property {
get {
@@ -322,7 +322,7 @@ public static string Common_Property {
}
///
- /// Looks up a localized string similar to Sign Out.
+ /// 查找类似 Sign Out 的本地化字符串。
///
public static string Common_Quit {
get {
@@ -331,7 +331,7 @@ public static string Common_Quit {
}
///
- /// Looks up a localized string similar to Warning.
+ /// 查找类似 Warning 的本地化字符串。
///
public static string Common_Warning {
get {
@@ -340,7 +340,7 @@ public static string Common_Warning {
}
///
- /// Looks up a localized string similar to Are you sure you want to quit?.
+ /// 查找类似 Are you sure you want to quit? 的本地化字符串。
///
public static string Confirm_Quit {
get {
@@ -349,7 +349,7 @@ public static string Confirm_Quit {
}
///
- /// Looks up a localized string similar to Create.
+ /// 查找类似 Create 的本地化字符串。
///
public static string CreateSnippet_Button {
get {
@@ -358,7 +358,7 @@ public static string CreateSnippet_Button {
}
///
- /// Looks up a localized string similar to no title.
+ /// 查找类似 no title 的本地化字符串。
///
public static string CreateSnippetNoTitle {
get {
@@ -367,7 +367,7 @@ public static string CreateSnippetNoTitle {
}
///
- /// Looks up a localized string similar to Code IsRequired.
+ /// 查找类似 Code IsRequired 的本地化字符串。
///
public static string CreateSnippetViewModel_CodeIsRequired {
get {
@@ -376,7 +376,7 @@ public static string CreateSnippetViewModel_CodeIsRequired {
}
///
- /// Looks up a localized string similar to Descriptors Is Required.
+ /// 查找类似 Descriptors Is Required 的本地化字符串。
///
public static string CreateSnippetViewModel_DescriptorsIsRequired {
get {
@@ -385,7 +385,7 @@ public static string CreateSnippetViewModel_DescriptorsIsRequired {
}
///
- /// Looks up a localized string similar to Failed to create Snippet.
+ /// 查找类似 Failed to create Snippet 的本地化字符串。
///
public static string CreateSnippetViewModel_FailedToCreateSnippet {
get {
@@ -394,7 +394,7 @@ public static string CreateSnippetViewModel_FailedToCreateSnippet {
}
///
- /// Looks up a localized string similar to FileName Is Required.
+ /// 查找类似 FileName Is Required 的本地化字符串。
///
public static string CreateSnippetViewModel_FileNameIsRequired {
get {
@@ -403,7 +403,7 @@ public static string CreateSnippetViewModel_FileNameIsRequired {
}
///
- /// Looks up a localized string similar to Title Is Required.
+ /// 查找类似 Title Is Required 的本地化字符串。
///
public static string CreateSnippetViewModel_TitleIsRequired {
get {
@@ -412,7 +412,7 @@ public static string CreateSnippetViewModel_TitleIsRequired {
}
///
- /// Looks up a localized string similar to Visibility Is Required.
+ /// 查找类似 Visibility Is Required 的本地化字符串。
///
public static string CreateSnippetViewModel_VisibilityIsRequired {
get {
@@ -421,7 +421,7 @@ public static string CreateSnippetViewModel_VisibilityIsRequired {
}
///
- /// Looks up a localized string similar to Name is mandatory.
+ /// 查找类似 Name is mandatory 的本地化字符串。
///
public static string CreateView_NameIsRequired {
get {
@@ -430,7 +430,7 @@ public static string CreateView_NameIsRequired {
}
///
- /// Looks up a localized string similar to Path is mandatory.
+ /// 查找类似 Path is mandatory 的本地化字符串。
///
public static string CreateView_PathIsRequired {
get {
@@ -439,7 +439,7 @@ public static string CreateView_PathIsRequired {
}
///
- /// Looks up a localized string similar to This is a cool project (optional).
+ /// 查找类似 This is a cool project (optional) 的本地化字符串。
///
public static string CreateView_ThisIsACoollProject {
get {
@@ -448,7 +448,7 @@ public static string CreateView_ThisIsACoollProject {
}
///
- /// Looks up a localized string similar to The project {0} already exists!.
+ /// 查找类似 The project {0} already exists! 的本地化字符串。
///
public static string CreateViewModel_OnSave_TheProject0AlreadyExists {
get {
@@ -457,7 +457,7 @@ public static string CreateViewModel_OnSave_TheProject0AlreadyExists {
}
///
- /// Looks up a localized string similar to https://giteahub.com/.
+ /// 查找类似 https://giteahub.com/ 的本地化字符串。
///
public static string DefaultHost {
get {
@@ -466,7 +466,7 @@ public static string DefaultHost {
}
///
- /// Looks up a localized string similar to Git with a cup of tea!.
+ /// 查找类似 Git with a cup of tea! 的本地化字符串。
///
public static string Description {
get {
@@ -475,7 +475,7 @@ public static string Description {
}
///
- /// Looks up a localized string similar to File Name.
+ /// 查找类似 File Name 的本地化字符串。
///
public static string FileName {
get {
@@ -484,7 +484,7 @@ public static string FileName {
}
///
- /// Looks up a localized string similar to Blame.
+ /// 查找类似 Blame 的本地化字符串。
///
public static string GitAnalysis_Blame {
get {
@@ -493,7 +493,7 @@ public static string GitAnalysis_Blame {
}
///
- /// Looks up a localized string similar to Commits.
+ /// 查找类似 Commits 的本地化字符串。
///
public static string GitAnalysis_Commits {
get {
@@ -502,7 +502,7 @@ public static string GitAnalysis_Commits {
}
///
- /// Looks up a localized string similar to ... (Full ID).
+ /// 查找类似 ... (Full ID) 的本地化字符串。
///
public static string GitAnalysis_GetGiteaTargetDescription_FullID {
get {
@@ -511,7 +511,7 @@ public static string GitAnalysis_GetGiteaTargetDescription_FullID {
}
///
- /// Looks up a localized string similar to Revision: .
+ /// 查找类似 Revision: 的本地化字符串。
///
public static string GitAnalysis_Revision {
get {
@@ -520,7 +520,7 @@ public static string GitAnalysis_Revision {
}
///
- /// Looks up a localized string similar to Branch: .
+ /// 查找类似 Branch: 的本地化字符串。
///
public static string GitAnalysisn_Branch {
get {
@@ -529,7 +529,7 @@ public static string GitAnalysisn_Branch {
}
///
- /// Looks up a localized string similar to No Login .
+ /// 查找类似 No Login 的本地化字符串。
///
public static string GiteaInvitationSection_GiteaInvitationSection_NoLogin {
get {
@@ -538,7 +538,7 @@ public static string GiteaInvitationSection_GiteaInvitationSection_NoLogin {
}
///
- /// Looks up a localized string similar to Connect.
+ /// 查找类似 Connect 的本地化字符串。
///
public static string Invitation_Connect {
get {
@@ -547,7 +547,7 @@ public static string Invitation_Connect {
}
///
- /// Looks up a localized string similar to Sign up.
+ /// 查找类似 Sign up 的本地化字符串。
///
public static string Invitation_SignUp {
get {
@@ -556,7 +556,7 @@ public static string Invitation_SignUp {
}
///
- /// Looks up a localized string similar to Issues.
+ /// 查找类似 Issues 的本地化字符串。
///
public static string Items_Issues {
get {
@@ -565,7 +565,7 @@ public static string Items_Issues {
}
///
- /// Looks up a localized string similar to Pulls Requests.
+ /// 查找类似 Pulls Requests 的本地化字符串。
///
public static string Items_MergeRequests {
get {
@@ -574,7 +574,7 @@ public static string Items_MergeRequests {
}
///
- /// Looks up a localized string similar to Pipelines.
+ /// 查找类似 Pipelines 的本地化字符串。
///
public static string Items_Pipeline {
get {
@@ -583,7 +583,7 @@ public static string Items_Pipeline {
}
///
- /// Looks up a localized string similar to Wiki.
+ /// 查找类似 Wiki 的本地化字符串。
///
public static string Items_Wiki {
get {
@@ -592,7 +592,7 @@ public static string Items_Wiki {
}
///
- /// Looks up a localized string similar to Connect to {0}.
+ /// 查找类似 Connect to {0} 的本地化字符串。
///
public static string Login_ConnectTo {
get {
@@ -601,7 +601,7 @@ public static string Login_ConnectTo {
}
///
- /// Looks up a localized string similar to User Name or Email .
+ /// 查找类似 User Name or Email 的本地化字符串。
///
public static string Login_Email {
get {
@@ -610,7 +610,7 @@ public static string Login_Email {
}
///
- /// Looks up a localized string similar to Invalid email.
+ /// 查找类似 Invalid email 的本地化字符串。
///
public static string Login_EmailIsInvalid {
get {
@@ -619,7 +619,7 @@ public static string Login_EmailIsInvalid {
}
///
- /// Looks up a localized string similar to Email is mandatory.
+ /// 查找类似 Email is mandatory 的本地化字符串。
///
public static string Login_EmailIsRequired {
get {
@@ -628,7 +628,7 @@ public static string Login_EmailIsRequired {
}
///
- /// Looks up a localized string similar to Failed to login.
+ /// 查找类似 Failed to login 的本地化字符串。
///
public static string Login_FailedToLogin {
get {
@@ -637,7 +637,7 @@ public static string Login_FailedToLogin {
}
///
- /// Looks up a localized string similar to Forget password?.
+ /// 查找类似 Forget password? 的本地化字符串。
///
public static string Login_ForgetPassword {
get {
@@ -646,7 +646,7 @@ public static string Login_ForgetPassword {
}
///
- /// Looks up a localized string similar to GiteaHub(https://giteahub.com/).
+ /// 查找类似 GiteaHub(https://giteahub.com/) 的本地化字符串。
///
public static string Login_Host {
get {
@@ -655,7 +655,7 @@ public static string Login_Host {
}
///
- /// Looks up a localized string similar to Host is invalid.
+ /// 查找类似 Host is invalid 的本地化字符串。
///
public static string Login_HostIsInvalid {
get {
@@ -664,7 +664,7 @@ public static string Login_HostIsInvalid {
}
///
- /// Looks up a localized string similar to Login.
+ /// 查找类似 Login 的本地化字符串。
///
public static string Login_Login {
get {
@@ -673,7 +673,7 @@ public static string Login_Login {
}
///
- /// Looks up a localized string similar to Password.
+ /// 查找类似 Password 的本地化字符串。
///
public static string Login_Password {
get {
@@ -682,7 +682,7 @@ public static string Login_Password {
}
///
- /// Looks up a localized string similar to Password is mandatory.
+ /// 查找类似 Password is mandatory 的本地化字符串。
///
public static string Login_PasswordIsRequired {
get {
@@ -691,7 +691,7 @@ public static string Login_PasswordIsRequired {
}
///
- /// Looks up a localized string similar to Password should at least be 6 chars.
+ /// 查找类似 Password should at least be 6 chars 的本地化字符串。
///
public static string Login_PasswordMinTo {
get {
@@ -700,7 +700,7 @@ public static string Login_PasswordMinTo {
}
///
- /// Looks up a localized string similar to Resent email to active account.
+ /// 查找类似 Resent email to active account 的本地化字符串。
///
public static string Login_ReSendEmail {
get {
@@ -709,7 +709,7 @@ public static string Login_ReSendEmail {
}
///
- /// Looks up a localized string similar to Sign up.
+ /// 查找类似 Sign up 的本地化字符串。
///
public static string Login_SignUp {
get {
@@ -718,7 +718,7 @@ public static string Login_SignUp {
}
///
- /// Looks up a localized string similar to Gitea.
+ /// 查找类似 Gitea 的本地化字符串。
///
public static string Name {
get {
@@ -727,7 +727,25 @@ public static string Name {
}
///
- /// Looks up a localized string similar to Create Snippet.
+ /// 查找类似 Open From {0} 的本地化字符串。
+ ///
+ public static string OpenFrom0 {
+ get {
+ return ResourceManager.GetString("OpenFrom0", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Open From URL 的本地化字符串。
+ ///
+ public static string OpenFromURL {
+ get {
+ return ResourceManager.GetString("OpenFromURL", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Create Snippet 的本地化字符串。
///
public static string OpenOnGiteaPackage_CreateSnippet {
get {
@@ -736,7 +754,7 @@ public static string OpenOnGiteaPackage_CreateSnippet {
}
///
- /// Looks up a localized string similar to Gitea.
+ /// 查找类似 Gitea 的本地化字符串。
///
public static string Provider {
get {
@@ -745,7 +763,7 @@ public static string Provider {
}
///
- /// Looks up a localized string similar to Login.
+ /// 查找类似 Login 的本地化字符串。
///
public static string Publish_Login {
get {
@@ -754,7 +772,7 @@ public static string Publish_Login {
}
///
- /// Looks up a localized string similar to or.
+ /// 查找类似 or 的本地化字符串。
///
public static string Publish_Or {
get {
@@ -763,7 +781,7 @@ public static string Publish_Or {
}
///
- /// Looks up a localized string similar to Publish.
+ /// 查找类似 Publish 的本地化字符串。
///
public static string Publish_Publish {
get {
@@ -772,7 +790,7 @@ public static string Publish_Publish {
}
///
- /// Looks up a localized string similar to Sign up.
+ /// 查找类似 Sign up 的本地化字符串。
///
public static string Publish_SignUp {
get {
@@ -781,7 +799,7 @@ public static string Publish_SignUp {
}
///
- /// Looks up a localized string similar to Start.
+ /// 查找类似 Start 的本地化字符串。
///
public static string Publish_Start {
get {
@@ -790,7 +808,7 @@ public static string Publish_Start {
}
///
- /// Looks up a localized string similar to Submitting.
+ /// 查找类似 Submitting 的本地化字符串。
///
public static string Publish_Submiting {
get {
@@ -799,7 +817,7 @@ public static string Publish_Submiting {
}
///
- /// Looks up a localized string similar to Publish to {0}.
+ /// 查找类似 Publish to {0} 的本地化字符串。
///
public static string Publish_Title {
get {
@@ -808,7 +826,7 @@ public static string Publish_Title {
}
///
- /// Looks up a localized string similar to Releases.
+ /// 查找类似 Releases 的本地化字符串。
///
public static string Releases {
get {
@@ -817,7 +835,7 @@ public static string Releases {
}
///
- /// Looks up a localized string similar to Name.
+ /// 查找类似 Name 的本地化字符串。
///
public static string Repository_Name {
get {
@@ -826,7 +844,7 @@ public static string Repository_Name {
}
///
- /// Looks up a localized string similar to Title.
+ /// 查找类似 Title 的本地化字符串。
///
public static string Title {
get {
@@ -835,7 +853,7 @@ public static string Title {
}
///
- /// Looks up a localized string similar to Two Factor Authentication.
+ /// 查找类似 Two Factor Authentication 的本地化字符串。
///
public static string TwoFactorAuthentication {
get {
@@ -844,7 +862,7 @@ public static string TwoFactorAuthentication {
}
///
- /// Looks up a localized string similar to Visibility.
+ /// 查找类似 Visibility 的本地化字符串。
///
public static string Visibility {
get {
@@ -853,7 +871,7 @@ public static string Visibility {
}
///
- /// Looks up a localized string similar to Not login yet.
+ /// 查找类似 Not login yet 的本地化字符串。
///
public static string WebService_CreateProject_NotLoginYet {
get {
diff --git a/src/Gitea.VisualStudio.Shared/Strings.resx b/src/Gitea.VisualStudio.Shared/Strings.resx
index f7db6a0..09db616 100644
--- a/src/Gitea.VisualStudio.Shared/Strings.resx
+++ b/src/Gitea.VisualStudio.Shared/Strings.resx
@@ -386,4 +386,10 @@
Open
+
+ Open From URL
+
+
+ Open From {0}
+
\ No newline at end of file
diff --git a/src/Gitea.VisualStudio.Shared/Strings.zh-Hans.resx b/src/Gitea.VisualStudio.Shared/Strings.zh-Hans.resx
index 745c5f3..ef4bfc3 100644
--- a/src/Gitea.VisualStudio.Shared/Strings.zh-Hans.resx
+++ b/src/Gitea.VisualStudio.Shared/Strings.zh-Hans.resx
@@ -386,4 +386,10 @@
打开
+
+ 从URL打开
+
+
+ 从{0}打开
+
\ No newline at end of file
diff --git a/src/Gitea.VisualStudio/GiteaPackage.cs b/src/Gitea.VisualStudio/GiteaPackage.cs
index 654dcc9..1d37913 100644
--- a/src/Gitea.VisualStudio/GiteaPackage.cs
+++ b/src/Gitea.VisualStudio/GiteaPackage.cs
@@ -209,11 +209,11 @@ private void MenuItem_BeforeQueryStatus(object sender, EventArgs e)
if (command.Enabled)
{
Uri uri = new Uri(match.Value);
- command.Text = $"Open From {uri.Host}";
+ command.Text =string.Format( Strings.OpenFrom0,uri.Host);
}
else
{
- command.Text = "Open From URL";
+ command.Text =Strings.OpenFromURL;
}
}
catch (Exception ex)
diff --git a/src/Gitea.VisualStudio/Resources/preview_200x200.png b/src/Gitea.VisualStudio/Resources/preview_200x200.png
index c1d06d1..9f81f5e 100644
Binary files a/src/Gitea.VisualStudio/Resources/preview_200x200.png and b/src/Gitea.VisualStudio/Resources/preview_200x200.png differ