提交 2ab8ef44 编写于 作者: A Alireza Habibi

Update resources

上级 6aeb6570
......@@ -297,20 +297,20 @@ internal class CSharpFeaturesResources {
}
/// <summary>
/// Looks up a localized string similar to Convert to &apos;switch&apos;.
/// Looks up a localized string similar to Convert to method.
/// </summary>
internal static string Convert_to_switch {
internal static string Convert_to_method {
get {
return ResourceManager.GetString("Convert_to_switch", resourceCulture);
return ResourceManager.GetString("Convert_to_method", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Convert to method.
/// Looks up a localized string similar to Convert to &apos;switch&apos;.
/// </summary>
internal static string Convert_to_method {
internal static string Convert_to_switch {
get {
return ResourceManager.GetString("Convert_to_method", resourceCulture);
return ResourceManager.GetString("Convert_to_switch", resourceCulture);
}
}
......
......@@ -524,4 +524,7 @@
<data name="if_statement_can_be_simplified" xml:space="preserve">
<value>'if' statement can be simplified</value>
</data>
<data name="Convert_to_method" xml:space="preserve">
<value>Convert to method</value>
</data>
</root>
\ No newline at end of file
......@@ -61,7 +61,8 @@ public override async Task ComputeRefactoringsAsync(CodeRefactoringContext conte
return;
}
context.RegisterRefactoring(new MyCodeAction(c => UpdateDocumentAsync(root, document, parentBlock, localFunction, c)));
context.RegisterRefactoring(new MyCodeAction(CSharpFeaturesResources.Convert_to_method,
c => UpdateDocumentAsync(root, document, parentBlock, localFunction, c)));
}
private static async Task<Document> UpdateDocumentAsync(
......@@ -311,8 +312,8 @@ private static string GenerateUniqueMethodName(ISymbol declaredSymbol)
private sealed class MyCodeAction : CodeActions.CodeAction.DocumentChangeAction
{
public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument)
: base(CSharpFeaturesResources.Convert_to_method, createChangedDocument)
public MyCodeAction(string title, Func<CancellationToken, Task<Document>> createChangedDocument)
: base(title, createChangedDocument)
{
}
}
......
......@@ -642,11 +642,6 @@
<target state="new">Convert to method</target>
<note />
</trans-unit>
<trans-unit id="Convert_to_regular_method">
<source>Convert to regular method</source>
<target state="new">Convert to regular method</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -642,11 +642,6 @@
<target state="new">Convert to method</target>
<note />
</trans-unit>
<trans-unit id="Convert_to_regular_method">
<source>Convert to regular method</source>
<target state="new">Convert to regular method</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -642,11 +642,6 @@
<target state="new">Convert to method</target>
<note />
</trans-unit>
<trans-unit id="Convert_to_regular_method">
<source>Convert to regular method</source>
<target state="new">Convert to regular method</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -642,11 +642,6 @@
<target state="new">Convert to method</target>
<note />
</trans-unit>
<trans-unit id="Convert_to_regular_method">
<source>Convert to regular method</source>
<target state="new">Convert to regular method</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -642,11 +642,6 @@
<target state="new">Convert to method</target>
<note />
</trans-unit>
<trans-unit id="Convert_to_regular_method">
<source>Convert to regular method</source>
<target state="new">Convert to regular method</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -642,11 +642,6 @@
<target state="new">Convert to method</target>
<note />
</trans-unit>
<trans-unit id="Convert_to_regular_method">
<source>Convert to regular method</source>
<target state="new">Convert to regular method</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -642,11 +642,6 @@
<target state="new">Convert to method</target>
<note />
</trans-unit>
<trans-unit id="Convert_to_regular_method">
<source>Convert to regular method</source>
<target state="new">Convert to regular method</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -642,11 +642,6 @@
<target state="new">Convert to method</target>
<note />
</trans-unit>
<trans-unit id="Convert_to_regular_method">
<source>Convert to regular method</source>
<target state="new">Convert to regular method</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -642,11 +642,6 @@
<target state="new">Convert to method</target>
<note />
</trans-unit>
<trans-unit id="Convert_to_regular_method">
<source>Convert to regular method</source>
<target state="new">Convert to regular method</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -642,11 +642,6 @@
<target state="new">Convert to method</target>
<note />
</trans-unit>
<trans-unit id="Convert_to_regular_method">
<source>Convert to regular method</source>
<target state="new">Convert to regular method</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -642,11 +642,6 @@
<target state="new">Convert to method</target>
<note />
</trans-unit>
<trans-unit id="Convert_to_regular_method">
<source>Convert to regular method</source>
<target state="new">Convert to regular method</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -642,11 +642,6 @@
<target state="new">Convert to method</target>
<note />
</trans-unit>
<trans-unit id="Convert_to_regular_method">
<source>Convert to regular method</source>
<target state="new">Convert to regular method</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
......@@ -642,11 +642,6 @@
<target state="new">Convert to method</target>
<note />
</trans-unit>
<trans-unit id="Convert_to_regular_method">
<source>Convert to regular method</source>
<target state="new">Convert to regular method</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册