Skip to content

Commit 3a96dbb

Browse files
committed
Redefine hook and hooks. Add term links.
1 parent f466123 commit 3a96dbb

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

docs/backend/upgrading/version-specific-migration/upgrade-to-51.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Adding or editing a document is faster, because care was taken to avoid duplicat
282282
The [collective.indexing](https://pypi.org/project/collective.indexing) package was merged into the core of Plone.
283283
This makes sure that objects are only indexed once per transaction.
284284

285-
It also gives hooks for calling external indexers, like Solr and Elasticsearch.
285+
It also gives {term}`hooks` for calling external indexers, like Solr and Elasticsearch.
286286
See https://docs.plone.org/develop/plone/searching_and_indexing/external-catalogs.html.
287287

288288
There is a workaround when you get {ref}`catalog-errors-during-upgrades-label`.

docs/glossary.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,11 @@ Redux middleware
277277
Custom wrappers for the [Redux](https://redux.js.org/) store dispatch methods.
278278
They allow customizing the behavior of the data flow inside the Redux store.
279279
280+
hook
280281
hooks
281-
[Hooks](https://reactjs.org/docs/hooks-overview.html) are a React API that allow function components to use React features, such as lifecycle methods, states, and so on.
282+
In general, a hook in programming is a place in code that allows you to tap in to a module to either provide different behavior or to react when something happens.
283+
284+
**React [Hooks](https://reactjs.org/docs/hooks-overview.html)** are a React API that allow function components to use React features, such as lifecycle methods, states, and so on.
282285
283286
hoisting
284287
[Hoisting](https://yarnpkg.com/advanced/lexicon#hoisting) is an optimization provided by Yarn.

docs/i18n-l10n/translating-content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Plone will not translate the content for you.
6161
It will only create the content in the other language folders, and both LRFs' contents will be linked to the translations.
6262

6363
Plone does not use any third party tools to automatically translate content.
64-
If needed, you will need to develop such connector tools and hook into a content creation process.
64+
If needed, you will need to develop such connector tools and {term}`hook` into a content creation process.
6565

6666

6767
(translating-content-language-independent-content)=

docs/i18n-l10n/translating-text-strings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ It will use the text content of the element as `msgid`.
155155
Use attributes `i18n:translate`, `i18n:attributes`, and so on.
156156
For examples, look at any core Plone `.pt` files.
157157

158-
The `i18n:translate` attribute will hook into the translation machinery, and will look up the corresponding translated string to the one stated there, while looking in the relevant `domain.po` file corresponding to the `i18n:domain` stated in the file and the language negotiated by Plone.
158+
The `i18n:translate` attribute will {term}`hook` into the translation machinery, and will look up the corresponding translated string to the one stated there, while looking in the relevant `domain.po` file corresponding to the `i18n:domain` stated in the file and the language negotiated by Plone.
159159

160160

161161
(translating-text-strings-automatically-translated-message-ids-label)=

0 commit comments

Comments
 (0)