-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(WIP) Django-parler translations #6
base: master
Are you sure you want to change the base?
Conversation
case = models.ForeignKey(Case, related_name='actions', help_text=_('Case this action is related to'), blank=True, | ||
null=True) | ||
ordering = models.IntegerField(help_text=_('Ordering of this action within a meeting')) | ||
article_number = models.CharField(max_length=255, blank=True, | ||
help_text=_('The article number given to this action after decision')) | ||
resolution = models.CharField(max_length=255, blank=True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are only a fixed number of different possible resolutions, so resolution
should either be a non-translated CharField or a ForeignKey.
'but start from a minimal set)')) | ||
translations = TranslatedFields( | ||
title=models.CharField(max_length=255, help_text=_('Title of this content'), blank=True), | ||
type=models.CharField(max_length=255, help_text=_( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
@@ -70,13 +74,15 @@ def __str__(self): | |||
|
|||
class Content(DataModel): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I think it might be better to make Content
fully translated, so skip translating the fields here for now. In the future, we could add a language_code
field.
No description provided.