Skip to content

Commit

Permalink
Replace ugettext_lazy() by gettext_lazy() #1594
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Jun 10, 2024
1 parent b6e9a48 commit 66ddfe5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/dsmr_frontend/migrations/0026_v2140_release.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generated by Django 2.2.9 on 2020-01-05 21:16

from django.db import migrations
from django.utils.translation import ugettext_lazy
from django.utils.translation import gettext_lazy


def migrate_forward(apps, schema_editor):
Expand All @@ -15,7 +15,7 @@ def migrate_forward(apps, schema_editor):
Notification = apps.get_model("dsmr_frontend", "Notification")
Notification.objects.create(
message=dsmr_frontend.services.get_translated_string(
text=ugettext_lazy(
text=gettext_lazy(
"DSMR-reader v2.14.0: Some configuration options in setting.py were relocated or removed. This only "
"affects you if you are using custom settings in setting.py. See the changelog for more information."
)
Expand Down
8 changes: 4 additions & 4 deletions src/dsmr_frontend/migrations/0032_v3_4_0_release.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generated by Django 3.0.3 on 2020-02-18 20:45

from django.db import migrations
from django.utils.translation import ugettext_lazy
from django.utils.translation import gettext_lazy


def migrate_forward(apps, schema_editor):
Expand All @@ -15,7 +15,7 @@ def migrate_forward(apps, schema_editor):
Notification = apps.get_model("dsmr_frontend", "Notification")
Notification.objects.create(
message=dsmr_frontend.services.get_translated_string(
text=ugettext_lazy(
text=gettext_lazy(
"DSMR-reader v3.4.0 (1/3): Archive graphs are now in bar style + stacked by default. You can change or "
"revert this using the admin interface in the Frontend configuration."
)
Expand All @@ -24,7 +24,7 @@ def migrate_forward(apps, schema_editor):
)
Notification.objects.create(
message=dsmr_frontend.services.get_translated_string(
text=ugettext_lazy(
text=gettext_lazy(
"DSMR-reader v3.4.0 (2/3): Starting this release you can (re)name the electricity tariffs yourself. Visit "
"the admin interface in the Frontend configuration to use your own names."
)
Expand All @@ -33,7 +33,7 @@ def migrate_forward(apps, schema_editor):
)
Notification.objects.create(
message=dsmr_frontend.services.get_translated_string(
text=ugettext_lazy(
text=gettext_lazy(
'DSMR-reader v3.4.0 (3/3): Graphs formerly displayed on the Dashboard are now available in "Live graphs".'
)
),
Expand Down
4 changes: 2 additions & 2 deletions src/dsmr_frontend/migrations/0034_mysql_timezone_support.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generated by Django 3.0.3 on 2020-03-03 18:24

from django.db import migrations, connection
from django.utils.translation import ugettext_lazy
from django.utils.translation import gettext_lazy


def migrate_forward(apps, schema_editor):
Expand All @@ -22,7 +22,7 @@ def migrate_forward(apps, schema_editor):
Notification = apps.get_model("dsmr_frontend", "Notification")
Notification.objects.create(
message=dsmr_frontend.services.get_translated_string(
text=ugettext_lazy(
text=gettext_lazy(
"You are using a MySQL database without timezone support. This may cause bugs. Please enable timezone "
"support in your database, see: https://dev.mysql.com/doc/refman/en/mysql-tzinfo-to-sql.html"
)
Expand Down

0 comments on commit 66ddfe5

Please sign in to comment.