Skip to content

Commit

Permalink
Enhance API docs of portal.translate to show that the domain is optio… (
Browse files Browse the repository at this point in the history
#510)

Co-authored-by: Steve Piercy <web@stevepiercy.com>
  • Loading branch information
thet and stevepiercy committed Jul 12, 2023
1 parent 0beddf5 commit 69a745d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/510.documentation
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enhance API docs of `portal.translate` to show that the domain is optional in some cases. @thet
4 changes: 3 additions & 1 deletion src/plone/api/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,9 @@ def translate(msgid, domain="plone", lang=None):
:param msgid: [required] message to translate
:type msgid: string
:param domain: i18n domain to use
:type msgid: zope.i18nmessageid.Message
:param domain: i18n domain to use. When ``msgid`` is an instance of ``Message``,
then the ``Message``'s domain is used.
:type domain: string
:param lang: target language
:type lang: string
Expand Down

0 comments on commit 69a745d

Please sign in to comment.