#19552: makemessages ignores translations in templates with inline comment tags -------------------------------------+------------------------------------- Reporter: juneih@… | Owner: nobody Type: Bug | Status: new Component: | Version: 1.4 Internationalization | Resolution: Severity: Normal | Triage Stage: Accepted Keywords: makemessages, | Needs documentation: 0 template, gettext, xgettext | Patch needs improvement: 0 Has patch: 1 | UI/UX: 0 Needs tests: 0 | Easy pickings: 1 | -------------------------------------+-------------------------------------
Comment (by ramiro): Replying to [comment:3 claudep]: > I realized that my patch (with the OP proposal) has one major drawback, it doesn't preserve the line numbers. We've made considerable efforts in templatize to preserve line numbers, so as line numbers in po files match line numbers in the source file. For comments which are not translator comments, we could replace `#` by `''' '''`, but this doesn't work for translator comments. Ramiro, any idea? Maybe something like this? (needs validation of the idea, polishing and tests): http://dpaste.de/hJepF/ -- Ticket URL: <https://code.djangoproject.com/ticket/19552#comment:4> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.