Django

Code

Changeset 962

Show
Ignore:
Timestamp:
10/19/05 13:18:03 (3 years ago)
Author:
hugo
Message:

i18n: re-added lost translation hooks (dropped in the last big merge)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/i18n/django/contrib/admin/models/admin.py

    r956 r962  
    11from django.core import meta 
    22from django.models import auth, core 
     3from django.utils.translation import gettext_lazy as _ 
    34 
    45class LogEntry(meta.Model): 
    5     action_time = meta.DateTimeField(auto_now=True) 
     6    action_time = meta.DateTimeField(_('action time'), auto_now=True) 
    67    user = meta.ForeignKey(auth.User) 
    7     content_type = meta.ForeignKey(core.ContentType, blank=True, null=True) 
    8     object_id = meta.TextField(blank=True, null=True) 
    9     object_repr = meta.CharField(maxlength=200) 
    10     action_flag = meta.PositiveSmallIntegerField(
    11     change_message = meta.TextField(blank=True) 
     8    content_type = meta.ForeignKey(_('content type'), core.ContentType, blank=True, null=True) 
     9    object_id = meta.TextField(_('object id'), blank=True, null=True) 
     10    object_repr = meta.CharField('object repr'), maxlength=200) 
     11    action_flag = meta.PositiveSmallIntegerField(_('action flag')
     12    change_message = meta.TextField(_('change message'), blank=True) 
    1213    class META: 
    1314        module_name = 'log' 
    14         verbose_name_plural = 'log entries' 
     15        verbose_name = _('log entry') 
     16        verbose_name_plural = _('log entries') 
    1517        db_table = 'django_admin_log' 
    1618        ordering = ('-action_time',)