#27067: Deprecate string_concat
--------------------------------------+--------------------
Reporter: lovmat | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Internationalization | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
Continuing from #26866 I'd like to deprecate
django.utils.translation.string_concat in favor of
django.utils.text.format_lazy. string_concat can easily be replaced by
format_lazy in Django source code.
The only use case I can think of where string_concat is still needed is
when concatenating an arbitrary amount of list elements. My guess is that
this use case rarely exists - and those that do exist might be able to use
django.utils.text.get_text_list ?
(An alternative approach would be to move
django.utils.translation.string_concat to django.utils.text.concat_lazy -
since django.utils.text is more appropriate)
--
Ticket URL: <https://code.djangoproject.com/ticket/27067>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.2649ade8a4ceb2617965ce96a5ea3c12%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.