Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

quvide
Copy link
Collaborator

@quvide quvide commented Jul 24, 2017

No description provided.

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,
Copy link
Contributor

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=_(
Copy link
Contributor

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):
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants