Skip to content

Commit d797308

Browse files
committed
Fix gettext_lazy import
1 parent 581f38d commit d797308

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/configuration/general.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ TIME_ZONE = 'Europe/Berlin'
4040
By default, RDMO runs with English as the first and German as the second language. It can be configured to run with up to 5 arbitrary languages. For this, the `LANGUAGES` setting need to be added to `config/settings/local.py`. E.g. for French:
4141

4242
```python
43-
from django.utils.translation import ugettext_lazy as _
43+
from django.utils.translation import gettext_lazy as _
4444
LANGUAGE_CODE = 'fr-fr'
4545
TIME_ZONE = 'Europe/Paris'
4646
LANGUAGES = (

docs/plugins/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ As mentioned above, there are two possibilities of how to install [rdmo-plugins]
219219
Please note that the imports require Django's translation utils and that we usually use these with an underscore. If you are getting import errors please check if you have the first of the following lines at the beginning of your `local.py`. You also need to import `PROJECT_EXPORTS` and `PROJECT_IMPORTS` as we will later append our imports to these lists. Make sure you also have the second line in your `local.py`.
220220

221221
```python
222-
from django.utils.translation import ugettext_lazy as _
222+
from django.utils.translation import gettext_lazy as _
223223
from rdmo.core.settings import PROJECT_EXPORTS, PROJECT_IMPORTS
224224
```
225225

docs/upgrade/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ MIDDLEWARE.append('allauth.account.middleware.AccountMiddleware')
8787
RDMO 2.0.0 uses Django 4.2, which removed some functions. If you use
8888

8989
```python
90-
from django.utils.translation import ugettext_lazy as _
90+
from django.utils.translation import gettext_lazy as _
9191
```
9292

9393
in your `config/settings/local.py`, you need to change this to

0 commit comments

Comments
 (0)