Somebody in the bug raised the point that whether it's translated should be a user/developer option. I agree - it can become very difficult to search the internet for error messages when they're translated, and to deal with bug reports where all error messages are localized.
Anything the user sees in the UI should be translated, command line should be up to the user (except for help-related stuff like command descriptions, man pages etc., which should be translatable in all cases). Sgrìobh Claude Paroz na leanas 13/05/2017 aig 19:39: > Hi Ricardo, > > Until now, developer-facing strings are not translated in Django. > Read https://code.djangoproject.com/ticket/13860 and you'll see I > already tried to convince other devs :-) > > You can still try to relaunch a discussion on the main django-developers > list if you have the energy. > > Claude > > Le 13. 05. 17 à 20:13, Ricardo Mendonça Ferreira a écrit : >> Hello, Django i18n World! >> >> I've just started playing around with Django 1.11, and I noticed that >> there are no translations for most (if any) Django error messages. >> >> I have set [LANGUAGE_CODE = 'pt-br'] and the admin pages are in >> Portuguese, yet 404 errors and others are still in English: >> >> <https://lh3.googleusercontent.com/-Z1MfVshrKfw/WRdIXeRHxKI/AAAAAAAAJsQ/VKltY7_w2D8XZmp84qfjR5bZhWIIGvAtgCLcB/s1600/Django_404.png> >> >> >> >> The above image was produced by following the tutorial03 >> <https://docs.djangoproject.com/en/1.11/intro/tutorial03/>. >> >> Notice, for example, the "No Question matches the given query", produced >> by the shortcuts module. >> In /usr/local/lib/python3.5/dist-packages/django/shortcuts.py the >> strings (such as 'No %s matches the given query.') are not >> "translatable" (the module doesn't even import ugettext). >> >> Is this a "bug" or a "feature"? >> >> I.e., are error messages not being translated for a specific reason? And >> if so, what reason? Or is it possible to tag them for translation in the >> next release? >> >> Thanks! > -- -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2.0.22 (MingW32) mQINBFNbSyEBEADh+uhohycnZgPPnyMs5pZQG6pKyLzFZoIKbVjY31ZoPZ2SdltB elrwn6kFZkQiDx4K6nkZFHsPh8RMvWoFWg1rGiWkdsZessLFawraC8YEZDwtlaU5 SFXbE4+QnMfbPhe9tmC8Nbhec3dfV9zcXAhxc+zkIUsKFhSkpJ2Syvo9FCA/5adW UZgWWKFwlSg4+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tr4KmsuueEI2v5cLkoDzwCpYyMnu BfU8d0mt5eULbQCWcy7LYeQs6E+CEB+tPL3Qz2zaAAvwt7N2PLMjHf5Fcqj5LqrV mzQfcB9zQFq9Rtld/IIIDkE1y/q/SNFYsFNW/u/bxWsu+lMOYtBco++O5DJhAq6t 7rJXUBirju50hhogHfBL2v6RG1b8/uiWm0m8713ZhiSvpr4Dd+V+DU9nPli5nTmU En6gP7TTYJKETMf7O9i873Z8yG6zd0/fBzFyruS2KRTPV2GiVT6CI37gUtw= =fcOW -----END PGP PUBLIC KEY BLOCK----- -- You received this message because you are subscribed to the Google Groups "Django internationalization and localization" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-i18n+unsubscr...@googlegroups.com. To post to this group, send email to django-i18n@googlegroups.com. Visit this group at https://groups.google.com/group/django-i18n. For more options, visit https://groups.google.com/d/optout.