diff --git a/src/dsmr_frontend/migrations/0026_v2140_release.py b/src/dsmr_frontend/migrations/0026_v2140_release.py index 76b49e62..1976790e 100644 --- a/src/dsmr_frontend/migrations/0026_v2140_release.py +++ b/src/dsmr_frontend/migrations/0026_v2140_release.py @@ -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): @@ -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." ) diff --git a/src/dsmr_frontend/migrations/0032_v3_4_0_release.py b/src/dsmr_frontend/migrations/0032_v3_4_0_release.py index a20b0ba4..e5fc2044 100644 --- a/src/dsmr_frontend/migrations/0032_v3_4_0_release.py +++ b/src/dsmr_frontend/migrations/0032_v3_4_0_release.py @@ -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): @@ -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." ) @@ -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." ) @@ -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".' ) ), diff --git a/src/dsmr_frontend/migrations/0034_mysql_timezone_support.py b/src/dsmr_frontend/migrations/0034_mysql_timezone_support.py index 3cb48288..bc626df3 100644 --- a/src/dsmr_frontend/migrations/0034_mysql_timezone_support.py +++ b/src/dsmr_frontend/migrations/0034_mysql_timezone_support.py @@ -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): @@ -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" )