# -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import python_2_unicode_compatible

from .. import settings


@python_2_unicode_compatible
class Translation(models.Model):
    """
    A Translation.
    """
    identifier = models.CharField(
        max_length=100,
        verbose_name=_('identifier'),
        help_text=_('The registered model identifier.'))

    object_id = models.IntegerField(
        verbose_name=_('The object ID'),
        help_text=_('The object ID of this translation'))

    locale = models.CharField(
        max_length=10,
        verbose_name=_('locale'),
        choices=settings.SUPPORTED_LOCALES,
        default=settings.DEFAULT_LOCALE,
        help_text=_('The locale for this translation'))

    field_name = models.CharField(
        max_length=100,
        verbose_name=_('field name'),
        help_text=_('The model field name for this translation.'))

    content = models.TextField(
        verbose_name=_('content'),
        null=True,
        help_text=_('The translated content for the field.'))

    class Meta:
        abstract = True
        app_label = 'linguist'
        verbose_name = _('translation')
        verbose_name_plural = _('translations')
        unique_together = (('identifier', 'object_id', 'locale', 'field_name'),)

    def __str__(self):
        return '%s:%d:%s:%s' % (
            self.identifier,
            self.object_id,
            self.field_name,
            self.locale)

@@ -585,20 +585,22 @@
 )%0A%0A    l
-ocal
+anguag
 e = mode
@@ -706,20 +706,22 @@
 PORTED_L
-OCAL
+ANGUAG
 ES,%0A    
@@ -754,12 +754,14 @@
 LT_L
-OCAL
+ANGUAG
 E,%0A 
@@ -785,20 +785,22 @@
 _('The l
-ocal
+anguag
 e for th
@@ -1348,20 +1348,22 @@
 _id', 'l
-ocal
+anguag
 e', 'fie
@@ -1535,15 +1535,17 @@
   self.l
-ocal
+anguag
 e)%0A

Rename locale field to language.