Skip to content

Commit a580b5a

Browse files
authored
Update template spelling and wording (#46886)
* Update template spelling and wording - follow up to #46714 - correct 'ReadWrite' and 'Am' * Address code review comments - no need to change post-action `description`s * Capitalize as agreed in PR - also, update English resources to match template.json content * Build to propagate strings - fill in missed files in localize/ folder
1 parent 6647d80 commit a580b5a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+333
-20
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "API Controller",
4+
"description": "API Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "API Controller",
4+
"description": "API Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}

src/ProjectTemplates/Web.ItemTemplates/content/ApiController/.template.config/localize/templatestrings.en.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"author": "Microsoft",
33
"name": "API Controller",
44
"description": "API Controller with or without read/write actions",
5-
"symbols/namespace/description": "namespace for the generated code",
6-
"symbols/actions/description": "create controller with read/write actions",
7-
"symbols/actions/displayName": "Add ReadWrite Actions",
8-
"postActions/openInEditor/description": "Opens ValueController.cs in the editor"
9-
}
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "API Controller",
4+
"description": "API Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "API Controller",
4+
"description": "API Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "API Controller",
4+
"description": "API Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "API Controller",
4+
"description": "API Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "API Controller",
4+
"description": "API Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "API Controller",
4+
"description": "API Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "API Controller",
4+
"description": "API Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "API Controller",
4+
"description": "API Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "API Controller",
4+
"description": "API Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "API Controller",
4+
"description": "API Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "API Controller",
4+
"description": "API Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}

src/ProjectTemplates/Web.ItemTemplates/content/ApiController/.template.config/template.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
"defaultName": "ValueController",
2323
"symbols": {
2424
"namespace": {
25-
"description": "namespace for the generated code",
25+
"description": "Namespace for the generated code",
2626
"replaces": "MyApp.Namespace",
2727
"type": "parameter"
2828
},
2929
"actions": {
30-
"description": "create controller with read/write actions",
31-
"displayName": "Add ReadWrite Actions",
30+
"description": "Create controller with read/write actions",
31+
"displayName": "Add Read/Write Actions",
3232
"type": "parameter",
3333
"datatype": "bool",
3434
"defaultValue": "false"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "MVC Controller",
4+
"description": "MVC Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "MVC Controller",
4+
"description": "MVC Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}

src/ProjectTemplates/Web.ItemTemplates/content/MvcController/.template.config/localize/templatestrings.en.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"author": "Microsoft",
33
"name": "MVC Controller",
44
"description": "MVC Controller with or without read/write actions",
5-
"symbols/namespace/description": "namespace for the generated code",
6-
"symbols/actions/description": "create controller with read/write actions",
7-
"symbols/actions/displayName": "Add ReadWrite Actions",
8-
"postActions/openInEditor/description": "Opens HomeController.cs in the editor"
9-
}
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "MVC Controller",
4+
"description": "MVC Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "MVC Controller",
4+
"description": "MVC Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "MVC Controller",
4+
"description": "MVC Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "MVC Controller",
4+
"description": "MVC Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "MVC Controller",
4+
"description": "MVC Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "MVC Controller",
4+
"description": "MVC Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "MVC Controller",
4+
"description": "MVC Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "MVC Controller",
4+
"description": "MVC Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "MVC Controller",
4+
"description": "MVC Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "MVC Controller",
4+
"description": "MVC Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "MVC Controller",
4+
"description": "MVC Controller with or without read/write actions",
5+
"symbols/namespace/description": "Namespace for the generated code",
6+
"symbols/actions/description": "Create controller with read/write actions",
7+
"symbols/actions/displayName": "Add Read/Write Actions",
8+
"postActions/openInEditor/description": "Opens the created controller in the editor"
9+
}

src/ProjectTemplates/Web.ItemTemplates/content/MvcController/.template.config/template.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
"defaultName": "HomeController",
2323
"symbols": {
2424
"namespace": {
25-
"description": "namespace for the generated code",
25+
"description": "Namespace for the generated code",
2626
"replaces": "MyApp.Namespace",
2727
"type": "parameter"
2828
},
2929
"actions": {
30-
"description": "create controller with read/write actions",
31-
"displayName": "Add ReadWrite Actions",
30+
"description": "Create controller with read/write actions",
31+
"displayName": "Add Read/Write Actions",
3232
"type": "parameter",
3333
"datatype": "bool",
3434
"defaultValue": "false"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "Razor View",
4+
"description": "An empty Razor View",
5+
"postActions/openInEditor/description": "Opens the created view in the editor"
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "Razor View",
4+
"description": "An empty Razor View",
5+
"postActions/openInEditor/description": "Opens the created view in the editor"
6+
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"author": "Microsoft",
33
"name": "Razor View",
4-
"description": "A Razor view without a page model",
5-
"postActions/openInEditor/description": "Opens Index.cshtml in the editor"
6-
}
4+
"description": "An empty Razor View",
5+
"_description.comment": "Reviewers: Could also be 'A Razor view without a page model'. And should View be capitalized?",
6+
"postActions/openInEditor/description": "Opens the created view in the editor"
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "Razor View",
4+
"description": "An empty Razor View",
5+
"postActions/openInEditor/description": "Opens the created view in the editor"
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"author": "Microsoft",
3+
"name": "Razor View",
4+
"description": "An empty Razor View",
5+
"postActions/openInEditor/description": "Opens the created view in the editor"
6+
}

0 commit comments

Comments
 (0)