Hello,
I’m translating Django into my language and it creates some fuzzy entries in the .po file.
One of them is Permissions from django.contrib.auth and the other one is Permission denied from a library I’ve installed.
I know this happens when Django thinks those two entries are similar, but in this case they have a completely different meaning and purpose. Also, none of them are from my own apps.
Is there a way to stop makemessages command to create fuzzy entries?
We’re using an automated translation pipeline where some amount of “extra” translation is preferable over manual resolution of fuzzy entries. Thus, we’re very interested in this topic – appreciate the question and response as it led me to a workable solution.
Per discussion in https://code.djangoproject.com/ticket/10852 (linked by @claudep), it’s now possible to subclass the makemessages command and add an additional option for disabling “fuzzy entries” entirely. Add a file called commands/makemessages.py in any Django INSTALLED_APP which has content along these lines:
from django.core.management.commands import makemessages
class Command(makemessages.Command):
msgmerge_options = makemessages.Command.msgmerge_options + ["--no-fuzzy-matching"]
Knowing this would have saved me some time/digging, paying it forward for anyone else coming across this.