Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
6d4f58bf
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6d4f58bf
编写于
3月 19, 2019
作者:
A
Andrew Hall (METAL)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move strings to resource file
上级
76833ddb
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
224 addition
and
5 deletion
+224
-5
src/Test/Utilities/Portable/Traits/Traits.cs
src/Test/Utilities/Portable/Traits/Traits.cs
+1
-0
src/VisualStudio/Core/Def/Implementation/MoveToNamespace/MoveToNamespaceDialogViewModel.cs
...ntation/MoveToNamespace/MoveToNamespaceDialogViewModel.cs
+3
-5
src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs
src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs
+18
-0
src/VisualStudio/Core/Def/ServicesVSResources.resx
src/VisualStudio/Core/Def/ServicesVSResources.resx
+6
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.cs.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.cs.xlf
+10
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.de.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.de.xlf
+10
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.es.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.es.xlf
+10
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.fr.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.fr.xlf
+10
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.it.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.it.xlf
+10
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ja.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ja.xlf
+10
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ko.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ko.xlf
+10
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pl.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pl.xlf
+10
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pt-BR.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pt-BR.xlf
+10
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ru.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ru.xlf
+10
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.tr.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.tr.xlf
+10
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hans.xlf
...VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hans.xlf
+10
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hant.xlf
...VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hant.xlf
+10
-0
src/VisualStudio/Core/Test/MoveToNamespace/MoveToNamespaceDialogViewModelTests.vb
...st/MoveToNamespace/MoveToNamespaceDialogViewModelTests.vb
+66
-0
未找到文件。
src/Test/Utilities/Portable/Traits/Traits.cs
浏览文件 @
6d4f58bf
...
...
@@ -111,6 +111,7 @@ public static class Features
public
const
string
CodeActionsMergeConsecutiveIfStatements
=
"CodeActions.MergeConsecutiveIfStatements"
;
public
const
string
CodeActionsMergeNestedIfStatements
=
"CodeActions.MergeNestedIfStatements"
;
public
const
string
CodeActionsMoveDeclarationNearReference
=
"CodeActions.MoveDeclarationNearReference"
;
public
const
string
CodeActionsMoveToNamespace
=
nameof
(
CodeActionsMoveToNamespace
);
public
const
string
CodeActionsMoveToTopOfFile
=
"CodeActions.MoveToTopOfFile"
;
public
const
string
CodeActionsMoveType
=
"CodeActions.MoveType"
;
public
const
string
CodeActionsOrderModifiers
=
"CodeActions.OrderModifiers"
;
...
...
src/VisualStudio/Core/Def/Implementation/MoveToNamespace/MoveToNamespaceDialogViewModel.cs
浏览文件 @
6d4f58bf
...
...
@@ -2,10 +2,8 @@
using
System.Collections.Immutable
;
using
Microsoft.VisualStudio.Imaging.Interop
;
using
Microsoft.VisualStudio.Language.Intellisense
;
using
Microsoft.VisualStudio.LanguageServices.Implementation.Utilities
;
using
Microsoft.VisualStudio.Imaging
;
using
Microsoft.CodeAnalysis.MoveToNamespace
;
using
Roslyn.Utilities
;
namespace
Microsoft.VisualStudio.LanguageServices.Implementation.MoveToNamespace
...
...
@@ -19,7 +17,7 @@ class MoveToNamespaceDialogViewModel : AbstractNotifyPropertyChanged
NamespaceName
=
defaultNamespace
;
AvailableNamespaces
=
availableNamespaces
;
this
.
PropertyChanged
+=
MoveToNamespaceDialogViewModel_PropertyChanged
;
PropertyChanged
+=
MoveToNamespaceDialogViewModel_PropertyChanged
;
}
private
void
MoveToNamespaceDialogViewModel_PropertyChanged
(
object
sender
,
System
.
ComponentModel
.
PropertyChangedEventArgs
e
)
...
...
@@ -40,14 +38,14 @@ public void OnNamespaceUpdated()
if
(
isNewNamespace
&&
isValidName
)
{
Icon
=
KnownMonikers
.
StatusInformation
;
Message
=
$"'
{
NamespaceName
}
' will be created as a new namespace"
;
Message
=
string
.
Format
(
ServicesVSResources
.
_0_will_be_created_as_a_new_namespace
,
NamespaceName
)
;
ShowMessage
=
true
;
CanSubmit
=
true
;
}
else
if
(!
isValidName
)
{
Icon
=
KnownMonikers
.
StatusInvalid
;
Message
=
$"'
{
NamespaceName
}
' is not a valid namespace"
;
Message
=
string
.
Format
(
ServicesVSResources
.
_0_is_an_invalid_namespace
,
NamespaceName
)
;
ShowMessage
=
true
;
CanSubmit
=
false
;
}
...
...
src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs
浏览文件 @
6d4f58bf
...
...
@@ -69,6 +69,15 @@ internal class ServicesVSResources {
}
}
/// <summary>
/// Looks up a localized string similar to '{0}' is an invalid namespace.
/// </summary>
internal
static
string
_0_is_an_invalid_namespace
{
get
{
return
ResourceManager
.
GetString
(
"_0_is_an_invalid_namespace"
,
resourceCulture
);
}
}
/// <summary>
/// Looks up a localized string similar to {0} references.
/// </summary>
...
...
@@ -116,6 +125,15 @@ internal class ServicesVSResources {
}
}
/// <summary>
/// Looks up a localized string similar to '{0}' will be created as a new namespace.
/// </summary>
internal
static
string
_0_will_be_created_as_a_new_namespace
{
get
{
return
ResourceManager
.
GetString
(
"_0_will_be_created_as_a_new_namespace"
,
resourceCulture
);
}
}
/// <summary>
/// Looks up a localized string similar to 1 reference.
/// </summary>
...
...
src/VisualStudio/Core/Def/ServicesVSResources.resx
浏览文件 @
6d4f58bf
...
...
@@ -1210,4 +1210,10 @@ I agree to all of the foregoing:</value>
<data
name=
"Target_Namespace_colon"
xml:space=
"preserve"
>
<value>
Target Namespace:
</value>
</data>
<data
name=
"_0_is_an_invalid_namespace"
xml:space=
"preserve"
>
<value>
'{0}' is an invalid namespace
</value>
</data>
<data
name=
"_0_will_be_created_as_a_new_namespace"
xml:space=
"preserve"
>
<value>
'{0}' will be created as a new namespace
</value>
</data>
</root>
\ No newline at end of file
src/VisualStudio/Core/Def/xlf/ServicesVSResources.cs.xlf
浏览文件 @
6d4f58bf
...
...
@@ -432,6 +432,11 @@
<target
state=
"translated"
>
Není platnou hodnotou.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_is_an_invalid_namespace"
>
<source>
'{0}' is an invalid namespace
</source>
<target
state=
"new"
>
'{0}' is an invalid namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_changed_to_abstract"
>
<source>
'{0}' will be changed to abstract.
</source>
<target
state=
"translated"
>
{0} se změní na abstraktní.
</target>
...
...
@@ -447,6 +452,11 @@
<target
state=
"translated"
>
{0} se změní na veřejný.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_created_as_a_new_namespace"
>
<source>
'{0}' will be created as a new namespace
</source>
<target
state=
"new"
>
'{0}' will be created as a new namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"given_workspace_doesn_t_support_undo"
>
<source>
given workspace doesn't support undo
</source>
<target
state=
"translated"
>
Daný pracovní prostor nepodporuje vrácení akce zpátky.
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.de.xlf
浏览文件 @
6d4f58bf
...
...
@@ -432,6 +432,11 @@
<target
state=
"translated"
>
Kein gültiger Wert.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_is_an_invalid_namespace"
>
<source>
'{0}' is an invalid namespace
</source>
<target
state=
"new"
>
'{0}' is an invalid namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_changed_to_abstract"
>
<source>
'{0}' will be changed to abstract.
</source>
<target
state=
"translated"
>
"{0}" wird in abstrakten Wert geändert.
</target>
...
...
@@ -447,6 +452,11 @@
<target
state=
"translated"
>
"{0}" wird in öffentlichen Wert geändert.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_created_as_a_new_namespace"
>
<source>
'{0}' will be created as a new namespace
</source>
<target
state=
"new"
>
'{0}' will be created as a new namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"given_workspace_doesn_t_support_undo"
>
<source>
given workspace doesn't support undo
</source>
<target
state=
"translated"
>
Der angegebene Arbeitsbereich unterstützt die Funktion "Rückgängig" nicht.
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.es.xlf
浏览文件 @
6d4f58bf
...
...
@@ -432,6 +432,11 @@
<target
state=
"translated"
>
No es un valor válido
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_is_an_invalid_namespace"
>
<source>
'{0}' is an invalid namespace
</source>
<target
state=
"new"
>
'{0}' is an invalid namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_changed_to_abstract"
>
<source>
'{0}' will be changed to abstract.
</source>
<target
state=
"translated"
>
"{0}" se cambiará a abstracto.
</target>
...
...
@@ -447,6 +452,11 @@
<target
state=
"translated"
>
"{0}" se cambiará a público.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_created_as_a_new_namespace"
>
<source>
'{0}' will be created as a new namespace
</source>
<target
state=
"new"
>
'{0}' will be created as a new namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"given_workspace_doesn_t_support_undo"
>
<source>
given workspace doesn't support undo
</source>
<target
state=
"translated"
>
el área de trabajo determinada no permite deshacer
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.fr.xlf
浏览文件 @
6d4f58bf
...
...
@@ -432,6 +432,11 @@
<target
state=
"translated"
>
Valeur non valide
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_is_an_invalid_namespace"
>
<source>
'{0}' is an invalid namespace
</source>
<target
state=
"new"
>
'{0}' is an invalid namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_changed_to_abstract"
>
<source>
'{0}' will be changed to abstract.
</source>
<target
state=
"translated"
>
'{0}' va être changé en valeur abstraite.
</target>
...
...
@@ -447,6 +452,11 @@
<target
state=
"translated"
>
'{0}' va être changé en valeur publique.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_created_as_a_new_namespace"
>
<source>
'{0}' will be created as a new namespace
</source>
<target
state=
"new"
>
'{0}' will be created as a new namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"given_workspace_doesn_t_support_undo"
>
<source>
given workspace doesn't support undo
</source>
<target
state=
"translated"
>
l'espace de travail donné ne prend pas en charge la fonction Annuler
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.it.xlf
浏览文件 @
6d4f58bf
...
...
@@ -432,6 +432,11 @@
<target
state=
"translated"
>
Valore non valido
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_is_an_invalid_namespace"
>
<source>
'{0}' is an invalid namespace
</source>
<target
state=
"new"
>
'{0}' is an invalid namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_changed_to_abstract"
>
<source>
'{0}' will be changed to abstract.
</source>
<target
state=
"translated"
>
'{0}' verrà modificato in astratto.
</target>
...
...
@@ -447,6 +452,11 @@
<target
state=
"translated"
>
'{0}' verrà modificato in pubblico.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_created_as_a_new_namespace"
>
<source>
'{0}' will be created as a new namespace
</source>
<target
state=
"new"
>
'{0}' will be created as a new namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"given_workspace_doesn_t_support_undo"
>
<source>
given workspace doesn't support undo
</source>
<target
state=
"translated"
>
l'area di lavoro specificata non supporta l'annullamento di operazioni
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ja.xlf
浏览文件 @
6d4f58bf
...
...
@@ -432,6 +432,11 @@
<target
state=
"translated"
>
有効な値ではありません
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_is_an_invalid_namespace"
>
<source>
'{0}' is an invalid namespace
</source>
<target
state=
"new"
>
'{0}' is an invalid namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_changed_to_abstract"
>
<source>
'{0}' will be changed to abstract.
</source>
<target
state=
"translated"
>
'{0}' は抽象に変更されます。
</target>
...
...
@@ -447,6 +452,11 @@
<target
state=
"translated"
>
'{0}' はパブリックに変更されます。
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_created_as_a_new_namespace"
>
<source>
'{0}' will be created as a new namespace
</source>
<target
state=
"new"
>
'{0}' will be created as a new namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"given_workspace_doesn_t_support_undo"
>
<source>
given workspace doesn't support undo
</source>
<target
state=
"translated"
>
指定されたワークスペースは元に戻す操作をサポートしていません
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ko.xlf
浏览文件 @
6d4f58bf
...
...
@@ -432,6 +432,11 @@
<target
state=
"translated"
>
값이 잘못되었습니다.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_is_an_invalid_namespace"
>
<source>
'{0}' is an invalid namespace
</source>
<target
state=
"new"
>
'{0}' is an invalid namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_changed_to_abstract"
>
<source>
'{0}' will be changed to abstract.
</source>
<target
state=
"translated"
>
'{0}'이(가) 추상으로 변경됩니다.
</target>
...
...
@@ -447,6 +452,11 @@
<target
state=
"translated"
>
'{0}'이(가) 공용으로 변경됩니다.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_created_as_a_new_namespace"
>
<source>
'{0}' will be created as a new namespace
</source>
<target
state=
"new"
>
'{0}' will be created as a new namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"given_workspace_doesn_t_support_undo"
>
<source>
given workspace doesn't support undo
</source>
<target
state=
"translated"
>
지정한 작업 영역에서 실행을 취소할 수 없습니다.
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pl.xlf
浏览文件 @
6d4f58bf
...
...
@@ -432,6 +432,11 @@
<target
state=
"translated"
>
Nieprawidłowa wartość
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_is_an_invalid_namespace"
>
<source>
'{0}' is an invalid namespace
</source>
<target
state=
"new"
>
'{0}' is an invalid namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_changed_to_abstract"
>
<source>
'{0}' will be changed to abstract.
</source>
<target
state=
"translated"
>
Element „{0}” zostanie zmieniony na abstrakcyjny.
</target>
...
...
@@ -447,6 +452,11 @@
<target
state=
"translated"
>
Element „{0}” zostanie zmieniony na publiczny.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_created_as_a_new_namespace"
>
<source>
'{0}' will be created as a new namespace
</source>
<target
state=
"new"
>
'{0}' will be created as a new namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"given_workspace_doesn_t_support_undo"
>
<source>
given workspace doesn't support undo
</source>
<target
state=
"translated"
>
dany obszar roboczy nie obsługuje operacji cofania
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pt-BR.xlf
浏览文件 @
6d4f58bf
...
...
@@ -432,6 +432,11 @@
<target
state=
"translated"
>
O valor não é válido
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_is_an_invalid_namespace"
>
<source>
'{0}' is an invalid namespace
</source>
<target
state=
"new"
>
'{0}' is an invalid namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_changed_to_abstract"
>
<source>
'{0}' will be changed to abstract.
</source>
<target
state=
"translated"
>
'{0}' será alterado para abstrato.
</target>
...
...
@@ -447,6 +452,11 @@
<target
state=
"translated"
>
'{0}' será alterado para público.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_created_as_a_new_namespace"
>
<source>
'{0}' will be created as a new namespace
</source>
<target
state=
"new"
>
'{0}' will be created as a new namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"given_workspace_doesn_t_support_undo"
>
<source>
given workspace doesn't support undo
</source>
<target
state=
"translated"
>
o workspace fornecido não dá suporte a desfazer
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ru.xlf
浏览文件 @
6d4f58bf
...
...
@@ -432,6 +432,11 @@
<target
state=
"translated"
>
Недопустимое значение
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_is_an_invalid_namespace"
>
<source>
'{0}' is an invalid namespace
</source>
<target
state=
"new"
>
'{0}' is an invalid namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_changed_to_abstract"
>
<source>
'{0}' will be changed to abstract.
</source>
<target
state=
"translated"
>
Элемент "{0}" будет изменен на абстрактный.
</target>
...
...
@@ -447,6 +452,11 @@
<target
state=
"translated"
>
Элемент "{0}" будет изменен на открытый.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_created_as_a_new_namespace"
>
<source>
'{0}' will be created as a new namespace
</source>
<target
state=
"new"
>
'{0}' will be created as a new namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"given_workspace_doesn_t_support_undo"
>
<source>
given workspace doesn't support undo
</source>
<target
state=
"translated"
>
заданная рабочая область не поддерживает отмену.
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.tr.xlf
浏览文件 @
6d4f58bf
...
...
@@ -432,6 +432,11 @@
<target
state=
"translated"
>
Geçerli bir değer değil
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_is_an_invalid_namespace"
>
<source>
'{0}' is an invalid namespace
</source>
<target
state=
"new"
>
'{0}' is an invalid namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_changed_to_abstract"
>
<source>
'{0}' will be changed to abstract.
</source>
<target
state=
"translated"
>
'{0}' soyut olacak şekilde değiştirildi.
</target>
...
...
@@ -447,6 +452,11 @@
<target
state=
"translated"
>
'{0}' ortak olacak şekilde değiştirildi.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_created_as_a_new_namespace"
>
<source>
'{0}' will be created as a new namespace
</source>
<target
state=
"new"
>
'{0}' will be created as a new namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"given_workspace_doesn_t_support_undo"
>
<source>
given workspace doesn't support undo
</source>
<target
state=
"translated"
>
sağlanan çalışma alanı, geri almayı desteklemiyor
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hans.xlf
浏览文件 @
6d4f58bf
...
...
@@ -432,6 +432,11 @@
<target
state=
"translated"
>
值无效
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_is_an_invalid_namespace"
>
<source>
'{0}' is an invalid namespace
</source>
<target
state=
"new"
>
'{0}' is an invalid namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_changed_to_abstract"
>
<source>
'{0}' will be changed to abstract.
</source>
<target
state=
"translated"
>
“{0}”将更改为“抽象”。
</target>
...
...
@@ -447,6 +452,11 @@
<target
state=
"translated"
>
“{0}”将更改为“公共”。
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_created_as_a_new_namespace"
>
<source>
'{0}' will be created as a new namespace
</source>
<target
state=
"new"
>
'{0}' will be created as a new namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"given_workspace_doesn_t_support_undo"
>
<source>
given workspace doesn't support undo
</source>
<target
state=
"translated"
>
给定的工作区不支持撤消
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hant.xlf
浏览文件 @
6d4f58bf
...
...
@@ -432,6 +432,11 @@
<target
state=
"translated"
>
值無效
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_is_an_invalid_namespace"
>
<source>
'{0}' is an invalid namespace
</source>
<target
state=
"new"
>
'{0}' is an invalid namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_changed_to_abstract"
>
<source>
'{0}' will be changed to abstract.
</source>
<target
state=
"translated"
>
'{0}' 會變更為抽象。
</target>
...
...
@@ -447,6 +452,11 @@
<target
state=
"translated"
>
'{0}' 會變更為公用。
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"_0_will_be_created_as_a_new_namespace"
>
<source>
'{0}' will be created as a new namespace
</source>
<target
state=
"new"
>
'{0}' will be created as a new namespace
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"given_workspace_doesn_t_support_undo"
>
<source>
given workspace doesn't support undo
</source>
<target
state=
"translated"
>
指定的工作區不支援復原
</target>
...
...
src/VisualStudio/Core/Test/MoveToNamespace/MoveToNamespaceDialogViewModelTests.vb
0 → 100644
浏览文件 @
6d4f58bf
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports
System.Collections.Immutable
Imports
Microsoft.CodeAnalysis.Test.Utilities
Imports
Microsoft.VisualStudio.Imaging
Imports
Microsoft.VisualStudio.LanguageServices.Implementation.MoveToNamespace
Namespace
Microsoft.VisualStudio.LanguageServices.UnitTests.MoveToNamespace
<
[
UseExportProvider
]
>
Public
Class
MoveToNamespaceDialogViewModelTests
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
CodeActionsMoveToNamespace
)
>
Public
Sub
TestMoveToNamespace_ErrorState
()
Dim
viewModel
=
CreateViewModel
()
Assert
.
True
(
viewModel
.
CanSubmit
)
Assert
.
False
(
viewModel
.
ShowMessage
)
viewModel
.
NamespaceName
=
"2InvalidNamespace"
Assert
.
False
(
viewModel
.
CanSubmit
)
Assert
.
True
(
viewModel
.
ShowMessage
)
Assert
.
Equal
(
viewModel
.
Icon
,
KnownMonikers
.
StatusInvalid
)
viewModel
.
NamespaceName
=
viewModel
.
AvailableNamespaces
.
First
()
Assert
.
True
(
viewModel
.
CanSubmit
)
Assert
.
False
(
viewModel
.
ShowMessage
)
End
Sub
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
CodeActionsMoveToNamespace
)
>
Public
Sub
TestMoveToNamespace_NewNamespaceState
()
Dim
viewModel
=
CreateViewModel
()
Assert
.
True
(
viewModel
.
CanSubmit
)
Assert
.
False
(
viewModel
.
ShowMessage
)
viewModel
.
NamespaceName
=
viewModel
.
AvailableNamespaces
.
Last
()
&
".NewNamespace"
Assert
.
True
(
viewModel
.
CanSubmit
)
Assert
.
True
(
viewModel
.
ShowMessage
)
Assert
.
Equal
(
viewModel
.
Icon
,
KnownMonikers
.
StatusInformation
)
viewModel
.
NamespaceName
=
viewModel
.
AvailableNamespaces
.
First
()
Assert
.
True
(
viewModel
.
CanSubmit
)
Assert
.
False
(
viewModel
.
ShowMessage
)
End
Sub
Private
Function
CreateViewModel
(
Optional
defaultNamespace
As
String
=
Nothing
,
Optional
availableNamespaces
As
ImmutableArray
(
Of
String
)
=
Nothing
)
As
MoveToNamespaceDialogViewModel
If
(
defaultNamespace
Is
Nothing
)
Then
defaultNamespace
=
"Default.Namespace"
End
If
If
(
availableNamespaces
=
Nothing
)
Then
availableNamespaces
=
ImmutableArray
.
Create
({
defaultNamespace
,
defaultNamespace
&
"1"
,
defaultNamespace
&
"2"
})
End
If
Return
New
MoveToNamespaceDialogViewModel
(
defaultNamespace
,
availableNamespaces
)
End
Function
End
Class
End
Namespace
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录