Django translations and gettext: The deprecation of the % (string interpolation) operator
问题 Although Django Django does not yet support Python 3, it eventually will, so I want to keep my code the more "future-proof" possible. Since Python 2.7 the string interpolation operator ( % ) is being deprecated. And I realized that every string that needs to be translated is using the % interpolation syntax. And in the Django docs there is no mention of the new str.format method (the "new" official way of string formatting)... Maybe there is a limitation of the gettext library, but I don't