W dniu wtorek, 24 lipca 2018 14:43:51 UTC+2 użytkownik Ramiro Morales napisał: > > Marcin, > > You have upgraded recently to version 1.11.13? > > About month ago. It was litlle painful process, BTW.
> IIRC handling of percent symbols in translatable literals has been the > subject of a few commits along the history trying to get it right for as > many use cases as possible. It's entirely possible it was broken in some > way during the 1.11 release cycle. > I saw these commits and some tickets (#24257 for example). I tried to match these changes, but I'm still getting bug reports about translations containing a percent char. > Please examine the history for the compilemessages module source file. > Perhaps you can cherry pick one or more commit to your local copy. > > I did that. I'm using older version, copied into my project/app. > If memory doesn't fail me there is some complexity related to the fact > that xgettext (used by makemessages) auto detects some strings that contain > % symbols as literals using 'traditional' Python string interpolation and > there is no way to control such detection. > > But the problem is that translations are inconsistent. It would be better to replace/fix/workaround xgettext instead of making translation process invalid... BR, Marcin -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/304b4aa5-e036-47bc-88b7-0d0e54818ee3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.