4

I'm going crazy guys, my labels are not updated in my views after running "makemessages" and "compilemessages"! This is what I tried so far:

  1. make sure there is no "fuzzy" strings around in PO files
  2. delete MO files
  3. relaunch makemessages and compilemessages
  4. delete all .pyc files in my project
  5. delete browser cache
  6. change browser
  7. drop the local database and launch synchdb
  8. shout to the monitor

the commands I launch are the following:

python manage.py makemessages --all --no-obsolete --no-location --no-wrap --traceback
python manage.py compilemessages --traceback

Is there any sort of Django caching mechanism related to compiled MO files that I have to empty? What can I do? I'm really furious! -_-'

daveoncode
  • 18,900
  • 15
  • 104
  • 159
  • Have you restarted the django application? Translations are cached in memory. If it does not help, which labels bugs you? – ziima Jun 21 '13 at 14:40
  • I stopped and restarted the test server, but without effect... I currently solved restarting the OS! ...such sadness! I'm still trying to figure out the right and effective way to "refresh" my localizations :P – daveoncode Jun 21 '13 at 14:52
  • After you run the `compilemessages`, you should only need to restart the test server for changes to take effect. – ziima Jun 21 '13 at 15:27
  • but that did not work for me :P – daveoncode Jun 21 '13 at 15:49
  • 1
    still rebooting with every changed label? or found a solution? facing the same problem right now... – benzkji Apr 04 '17 at 13:40

2 Answers2

1

I met the same problem, I thought. But, I just incorrectly stated LOCALE_PATHS setting

Patrick Z
  • 2,119
  • 1
  • 16
  • 10
0

Problem seems related to how django finds translation files: see here (django docs). Normally, LOCALE_PATHS doesn't need to be defined - just make sure your app is in INSTALLED_APPS (which may seem obvious, but isn't always, for example when having sub-apps).

benzkji
  • 1,718
  • 20
  • 41