mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Refs #27067 -- Removed django.utils.translation.string_concat() per deprecation timeline.
This commit is contained in:
parent
9463a7a8cd
commit
87d2240e6c
4 changed files with 5 additions and 37 deletions
|
@ -1057,17 +1057,6 @@ functions without the ``u``.
|
|||
|
||||
See :ref:`lazy translations documentation <lazy-translations>`.
|
||||
|
||||
.. function:: string_concat(*strings)
|
||||
|
||||
.. deprecated:: 1.11
|
||||
|
||||
Use :meth:`django.utils.text.format_lazy` instead.
|
||||
``string_concat(*strings)`` can be replaced by
|
||||
``format_lazy('{}' * len(strings), *strings)``.
|
||||
|
||||
Lazy variant of string concatenation, needed for translations that are
|
||||
constructed from multiple parts.
|
||||
|
||||
.. function:: activate(language)
|
||||
|
||||
Fetches the translation object for a given language and activates it as
|
||||
|
|
|
@ -234,3 +234,5 @@ how to remove usage of these features.
|
|||
is removed.
|
||||
|
||||
* ``django.test.runner.setup_databases()`` is removed.
|
||||
|
||||
* ``django.utils.translation.string_concat()`` is removed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue