Browse Source

sync tb version mismatch version with g78 (#2088)

Martin Landa 3 năm trước cách đây
mục cha
commit
7e9610cfd6
1 tập tin đã thay đổi với 6 bổ sung5 xóa
  1. 6 5
      python/grass/temporal/core.py

+ 6 - 5
python/grass/temporal/core.py

@@ -712,13 +712,14 @@ def init(raise_fatal_error=False, skip_db_version_check=False):
         if dbif.fetchone()[0]:
             db_exists = True
 
-    backup_howto = _(
-        "Please create a backup of your temporal database to avoid losing data.\n"
-    )
     if tgis_db_version > 2:
-        backup_howto += _("Run t.upgrade command to upgrade your temporal database.\n")
+        backup_howto = _(
+            "Run t.upgrade command to upgrade your temporal database.\n"
+            "Consider creating a backup of your temporal database to avoid "
+            "loosing data in case something goes wrong.\n"
+        )
     else:
-        backup_howto += _(
+        backup_howto = _(
             "You need to export it by "
             "restoring the GRASS GIS version used for creating this DB."
             "Notes: Use t.rast.export and t.vect.export "