diff options
Diffstat (limited to 'ishtar_common/models_common.py')
-rw-r--r-- | ishtar_common/models_common.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 8707120f9..66025948a 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -2093,7 +2093,7 @@ GEOJSON_POINT_TPL = { GEOMETRY_TYPE_LBL = { "POINT": _("Point"), "MULTILINE": _("Line(s)"), - "MULTIPOINTS": _("Points"), + "MULTIPOINTS": _("Point(s)"), "MULTIPOLYGON": _("Polygon(s)"), } @@ -2124,7 +2124,7 @@ class GeoVectorData(Imported, OwnPerms): null=True, on_delete=models.PROTECT, verbose_name=_("Origin"), - help_text=_("For instance: topographical surveys, georeferencing, ..."), + help_text=_("For instance: topographical survey, georeferencing, ..."), ) data_type = models.ForeignKey( GeoDataType, @@ -2170,8 +2170,8 @@ class GeoVectorData(Imported, OwnPerms): point_2d = models.PointField(_("Point (2D)"), blank=True, null=True) point_3d = models.PointField(_("Point (3D)"), blank=True, null=True, dim=3) multi_points = models.MultiPointField(_("Multi points"), blank=True, null=True) - multi_line = models.MultiLineStringField(_("Multi line"), blank=True, null=True) - multi_polygon = models.MultiPolygonField(_("Multi polygon"), blank=True, null=True) + multi_line = models.MultiLineStringField(_("Multi lines"), blank=True, null=True) + multi_polygon = models.MultiPolygonField(_("Multi polygons"), blank=True, null=True) need_update = models.BooleanField(_("Need update"), default=False) class Meta: @@ -2245,7 +2245,7 @@ class GeoVectorData(Imported, OwnPerms): def get_coordinates(self, rounded=5, srid: int = None, dim=2, cache=False): if dim not in (2, 3): - raise ValueError(_("Only 2 or 3 dimension")) + raise ValueError(_("Only 2 or 3 dimensions")) if cache: coordinates = [self.cached_x, self.cached_y] if dim == 3: |