Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.

Commit

Permalink
ローカライズされてない部分をローカライズした
Browse files Browse the repository at this point in the history
  • Loading branch information
giginet committed Nov 14, 2014
1 parent 645a931 commit 21cfbb9
Show file tree
Hide file tree
Showing 2 changed files with 143 additions and 98 deletions.
5 changes: 3 additions & 2 deletions src/kawaz/apps/products/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import pgettext_lazy
from django.conf import settings
from django.core.exceptions import ValidationError
from django.core.exceptions import PermissionDenied
Expand Down Expand Up @@ -125,7 +126,7 @@ def _get_thumbnail_upload_path(self, filename):
platforms = models.ManyToManyField(Platform, verbose_name=_('Platforms'))
categories = models.ManyToManyField(Category, verbose_name=_('Categories'))
contact_info = models.TextField(_('Contact info'), default='', blank=True,
help_text='Fill your contact info for visitors, e.f. Twitter account, Email address or Facebook account')
help_text=_('Fill your contact info for visitors, e.f. Twitter account, Email address or Facebook account'))
# TODO: published
publish_at = models.DateField(_('Published at'))
administrators = models.ManyToManyField(Persona,
Expand Down Expand Up @@ -211,7 +212,7 @@ class AbstractRelease(models.Model):
"""
リリース形態のアブストラクトモデル
"""
label = models.CharField(_('Label'), max_length=32)
label = models.CharField(pgettext_lazy('Release name', 'Label'), max_length=32)
platform = models.ForeignKey(Platform, verbose_name=_('Platform'))
version = models.CharField(_('Version'), max_length=32, default='', blank=True)
product = models.ForeignKey(Product, verbose_name=_('Product'),
Expand Down
Loading

0 comments on commit 21cfbb9

Please sign in to comment.