Skip to content

Commit cfa5485

Browse files
committed
Fix spellings and add words to accept.txt configuration
1 parent af4574a commit cfa5485

File tree

7 files changed

+25
-20
lines changed

7 files changed

+25
-20
lines changed

docs/classic-ui/csrf.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ myst:
44
"description": "How to protect Plone against CSRF attacks."
55
"property=og:description": "How to protect Plone against CSRF attacks."
66
"property=og:title": "Cross-Site Request Forgery protection in Plone"
7-
"keywords": "CSRF, security, token, protection, Cross-Site Request Forgery"
7+
"keywords": "CSRF, security, token, protection, cross-site request forgery"
88
---
99

1010
(classic-ui-csrf-label)=
1111

12-
# Cross-Site Request Forgery (CSRF)
12+
# Cross-site request forgery (CSRF)
1313

14-
Cross-Site Request Forgery (CSRF or XSRF) is a type of web attack that allows an attacker to send malicious requests to a web application on behalf of a legitimate user.
14+
Cross-site request forgery (CSRF or XSRF) is a type of web attack that allows an attacker to send malicious requests to a web application on behalf of a legitimate user.
1515
The attack works by tricking the user's web browser into sending a request to the web application that the user did not intentionally make.
1616
This can allow an attacker to perform actions on the web application without the user's knowledge or consent.
1717

docs/classic-ui/icons.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Examples include the following.
1616

1717
- Bootstrap icons
1818
- SVG inline icons
19-
- Iconresolver
19+
- `Iconresolver`
2020

2121

2222
(classic-ui-icons-bootstrap-label)=
@@ -41,7 +41,7 @@ Plone ships with the following icon registrations by default.
4141

4242
- [Bootstrap](https://github.com/plone/plone.staticresources/blob/master/src/plone/staticresources/profiles/default/registry/icons_bootstrap.xml)
4343
- [Content Type](https://github.com/plone/plone.staticresources/blob/master/src/plone/staticresources/profiles/default/registry/icons_contenttype.xml)
44-
- [Mimetype](https://github.com/plone/plone.staticresources/blob/master/src/plone/staticresources/profiles/default/registry/icons_mimetype.xml)
44+
- [MIME type](https://github.com/plone/plone.staticresources/blob/master/src/plone/staticresources/profiles/default/registry/icons_mimetype.xml)
4545
- [Language Flags](https://github.com/plone/plone.staticresources/blob/master/src/plone/staticresources/profiles/default/registry/icons_language_flags.xml)
4646
- [Country Flags](https://github.com/plone/plone.staticresources/blob/master/src/plone/staticresources/profiles/default/registry/icons_country_flags.xml)
4747
- [Plone](https://github.com/plone/plone.staticresources/blob/master/src/plone/staticresources/profiles/default/registry/icons_plone.xml)

docs/classic-ui/images.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ To get the original image, you can leave out the scale:
6868

6969
### By cacheable scale {term}`UID` name
7070

71-
When an image scale is created, it will be cached under the name `UID.EXT` (i.e. `f4c34254b44ba351af7393bfe0296664.jpeg`) in the object annotations.
71+
When an image scale is created, it will be cached under the name `UID.EXT` (such as `f4c34254b44ba351af7393bfe0296664.jpeg`) in the object annotations.
7272
Scaling keeps the uploaded formats, except for TIFF which ends up as JPEG.
7373
It can be resolved as follows:
7474

@@ -118,7 +118,7 @@ tag = scale_util.tag(
118118
)
119119
```
120120

121-
If you pass additional kwargs to `tag`, they become attributes on `tag`.
121+
If you pass additional `kwargs` to `tag`, they become attributes on `tag`.
122122

123123

124124
(classic-ui-images-image-scaling-no-tag-creation-label)=
@@ -181,7 +181,7 @@ tag = scale_util.scale("image", width=600, height=200)
181181

182182
### Using `image_scale` in templates
183183

184-
You could use the URL-variant from above, but that would be an uncached version.
184+
You could use the URL-variant from above, but that version would not be cached.
185185
To create a cached scale in a page template you can do the following:
186186

187187
```xml
@@ -215,7 +215,7 @@ You can also provide the following keyword arguments to set `title`, `alt`, or `
215215

216216
### Get `image_scale` by cached {term}`UID` name
217217

218-
If you only have the cached image name from an URL and need to get the image scale, unfortunately you can't use `restrictedTraverse()`, as this will not be able to resolve the scale.
218+
If you only have the cached image name from a URL and need to get the image scale, unfortunately you can't use `restrictedTraverse()`, as this will not be able to resolve the scale.
219219
But you can use this workaround, by calling the `publishTraverse` method in `ImageScaling` directly:
220220

221221
```python

docs/classic-ui/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The default frontend of Plone 6 is Volto.
2121
It is based on the React JavaScript framework.
2222

2323
The other frontend is based on Twitter Bootstrap 5.
24-
This frontend is now called "Classic UI".
24+
This frontend is now called {term}`Classic UI`.
2525

2626

2727
## Which frontend?

docs/classic-ui/viewlets.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ You can order, hide, and unhide or show viewlets.
9898
The next sections describe how to do so.
9999

100100

101-
### Ordering viewlets
101+
### Order viewlets
102102

103103
To set the order of a viewlet inside its viewlet manager, use the following `GenericSetup` configuration.
104104

@@ -116,9 +116,9 @@ See {ref}`classic-ui-viewlets-registering-viewlet-zcml-label`.
116116
```
117117

118118

119-
### Hiding viewlets
119+
### Hide viewlets
120120

121-
Hiding a viewlet is also done from the {file}`viewlets.xml` with the `<hidden />` node, which is at same level as `<order />`, and is done per skin selection.
121+
You can hide a viewlet from the {file}`viewlets.xml` with the `<hidden />` node, which is at same level as `<order />`, and is done per skin selection.
122122

123123
For instance, if you need to remove the global sections for your skin, you'd have to add some declaration, such as the following one in {file}`viewlets.xml`:
124124

@@ -129,7 +129,7 @@ For instance, if you need to remove the global sections for your skin, you'd hav
129129
```
130130

131131

132-
### Unhiding viewlets
132+
### Unhide viewlets
133133

134134
If, for any reason, you need to unhide one or more viewlets for a given viewlet manager, you can make use of the `purge` and `remove` node parameters in your `<hidden />` declaration in {file}`viewlets.xml`.
135135

@@ -915,7 +915,7 @@ Next, re-register some stock viewlets against your new viewlet manager in {file}
915915
916916
Next, we need to render our viewlet manager somehow.
917917
One place to do it is in a {file}`main_template.pt`, but because we need to add this HTML output to a header section which is produced by _another_ viewlet manager, we need to create a new viewlet just for rendering our viewlet manager.
918-
Yo, dawg, we put viewlets in your viewlets so you can render viewlets!
918+
We put viewlets in your viewlets so you can render viewlets!
919919
920920
In {file}`browser/viewlets/headerbottom.pt`:
921921

docs/classic-ui/views.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ If you need to override templates in core Plone or in an existing add-on, you ca
585585
After the file is in place, changes to the file are instantly picked up.
586586
The template code is re-read on every HTTP request.
587587

588-
If you want to override an already overridden template, read [How can I override an already overridden template by jbot?](https://stackoverflow.com/questions/16209392/how-can-i-override-an-already-overridden-template-by-jbot).
588+
If you want to override an already overridden template, read [How can I override an already overridden template by `jbot`?](https://stackoverflow.com/questions/16209392/how-can-i-override-an-already-overridden-template-by-jbot).
589589

590590

591591
(classic-ui-override-a-view-class-label)=
@@ -1009,7 +1009,7 @@ views = [ view.factory for view in views if IBlocksView.implementedBy(view.facto
10091009
10101010
### Default view of a content item
10111011
1012-
Objects have views for `default`, `view`, `edit`, and so on.
1012+
Objects have views for `default`, `view`, `edit`, and other views.
10131013
10141014
The distinction between the `default` and `view` views are that, for files, the default can be `download`.
10151015

styles/Vocab/Plone/accept.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,25 @@ APIs
1111
Barceloneta
1212
[Bb]oolean
1313
buildout
14+
cacheable
1415
doctest
1516
folderish
17+
fieldset
1618
getter
1719
JavaScript
20+
jQuery
21+
Mockup
1822
npm
1923
nvm
2024
Pastanaga
2125
Plone
2226
pluggab(le|ility)
2327
programatically
24-
portlet
28+
[Pp]ortlet
2529
prerendered
2630
[Qq]uerystring
2731
Razzle
28-
renderer
32+
[Rr]enderer
2933
RichText
3034
Sass
3135
Schuko
@@ -34,8 +38,9 @@ transpile[dr]{0,1}
3438
unregister
3539
UUID
3640
[Uu]ncomment
41+
[Uu]nhide
3742
validator
38-
viewlet
43+
[Vv]iewlet
3944
Volto
4045
Vue
4146
Zope

0 commit comments

Comments
 (0)