Skip to content

Commit 3d664a1

Browse files
sebashwafelixxm
authored andcommitted
Fixed #31690 -- Added note about fuzzy entries in translation docs.
1 parent 6b25d24 commit 3d664a1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/ref/django-admin.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ are excluded.
160160

161161
.. django-admin-option:: --use-fuzzy, -f
162162

163-
Includes fuzzy translations into compiled files.
163+
Includes `fuzzy translations`_ into compiled files.
164164

165165
Example usage::
166166

@@ -173,6 +173,8 @@ Example usage::
173173
django-admin compilemessages -x pt_BR
174174
django-admin compilemessages -x pt_BR -x fr
175175

176+
.. _fuzzy translations: https://www.gnu.org/software/gettext/manual/html_node/Fuzzy-Entries.html
177+
176178
.. django-admin-option:: --ignore PATTERN, -i PATTERN
177179

178180
Ignores directories matching the given :mod:`glob`-style pattern. Use

docs/topics/i18n/translation.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,6 +1619,13 @@ otherwise, they'll be tacked together without whitespace!
16191619
files are created). This means that everybody will be using the same
16201620
encoding, which is important when Django processes the PO files.
16211621

1622+
.. admonition:: Fuzzy entries
1623+
1624+
:djadmin:`makemessages` sometimes generates translation entries marked as
1625+
fuzzy, e.g. when translations are inferred from previously translated
1626+
strings. By default, fuzzy entries are **not** processed by
1627+
:djadmin:`compilemessages`.
1628+
16221629
To reexamine all source code and templates for new translation strings and
16231630
update all message files for **all** languages, run this::
16241631

0 commit comments

Comments
 (0)