Commits

Sebastian Rahlf committed a2bc575

Add German translation.

Comments (0)

Files changed (3)

easy_maps/locale/de/LC_MESSAGES/django.mo

Binary file added.

easy_maps/locale/de/LC_MESSAGES/django.po

+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Sebastian Rahlf <basti@redtoad.de>, 2013.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-06-30 20:59+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: Sebastian Rahlf <basti@redtoad.de>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1)\n"
+
+#: models.py:14
+msgid "Address"
+msgstr "Adresse"
+
+#: models.py:15
+msgid "Computed address"
+msgstr "Berechnete Adresse"
+
+#: models.py:16
+msgid "Latitude"
+msgstr "Breitengrad"
+
+#: models.py:17
+msgid "Longitude"
+msgstr "Längengrad"
+
+#: models.py:18
+msgid "Geocode error"
+msgstr "Geocode-Fehler"
+
+#: models.py:47
+msgid "EasyMaps Address"
+msgstr "EasyMaps-Adresse"
+
+#: models.py:48
+msgid "Address Geocoding Cache"
+msgstr "EasyMaps-Adressen"

easy_maps/models.py

 
 from django.conf import settings
 from django.db import models
+from django.utils.translation import ugettext_lazy as _
 
 from . import geocode
 
 
 
 class Address(models.Model):
-    address = models.CharField(max_length=255, unique=True)
-    computed_address = models.CharField(max_length=255, null=True, blank=True)
-    latitude = models.FloatField(null=True, blank=True)
-    longitude = models.FloatField(null=True, blank=True)
-    geocode_error = models.BooleanField(default=False)
+    address = models.CharField(_('Address'), max_length=255, unique=True)
+    computed_address = models.CharField(_('Computed address'), max_length=255, null=True, blank=True)
+    latitude = models.FloatField(_('Latitude'), null=True, blank=True)
+    longitude = models.FloatField(_('Longitude'), null=True, blank=True)
+    geocode_error = models.BooleanField(_('Geocode error'), default=False)
 
     def fill_geocode_data(self):
         if not self.address:
         return self.address
 
     class Meta:
-        verbose_name = "EasyMaps Address"
-        verbose_name_plural = "Address Geocoding Cache"
+        verbose_name = _("EasyMaps Address")
+        verbose_name_plural = _("Address Geocoding Cache")