{"action":"created","issue":{"url":"https://api.github.com/repos/stefanfoulis/django-filer/issues/494","labels_url":"https://api.github.com/repos/stefanfoulis/django-filer/issues/494/labels{/name}","comments_url":"https://api.github.com/repos/stefanfoulis/django-filer/issues/494/comments","events_url":"https://api.github.com/repos/stefanfoulis/django-filer/issues/494/events","html_url":"https://github.com/stefanfoulis/django-filer/issues/494","id":56382773,"number":494,"title":"Making File fields (name, description, etc.) translatable","user":{"login":"skirsdeda","id":7189652,"avatar_url":"https://avatars.githubusercontent.com/u/7189652?v=3","gravatar_id":"","url":"https://api.github.com/users/skirsdeda","html_url":"https://github.com/skirsdeda","followers_url":"https://api.github.com/users/skirsdeda/followers","following_url":"https://api.github.com/users/skirsdeda/following{/other_user}","gists_url":"https://api.github.com/users/skirsdeda/gists{/gist_id}","starred_url":"https://api.github.com/users/skirsdeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skirsdeda/subscriptions","organizations_url":"https://api.github.com/users/skirsdeda/orgs","repos_url":"https://api.github.com/users/skirsdeda/repos","events_url":"https://api.github.com/users/skirsdeda/events{/privacy}","received_events_url":"https://api.github.com/users/skirsdeda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stefanfoulis/django-filer/labels/design%20decision%20needed","name":"design decision needed","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-03T14:16:30Z","updated_at":"2015-02-08T00:02:39Z","closed_at":null,"body":"I need to have translations for File.name, File.description and for BaseImage.default_alt_text/default_caption. \r\nI am using django-parler, which plays nice with django-polymorphic and such and is very clean and interoperable (as opposed to django-hvad for example).\r\nMy initial approach was to create a translated File model and custom image model with mentioned fields as translated fields. The problem is that django-parler is unable to redefine existing fields (due to django model metaclass limitations), so the only way is to create those fields with different names. But in that case I would have a very messy solution and I would have to fix various filer views, etc.\r\nThis is the code:\r\n```python\r\nfrom filer.models import File\r\nfrom parler.models import TranslatableModel, TranslatedFields\r\nclass TransFile(File, TranslatableModel):\r\n    translations = TranslatedFields(\r\n        name = models.CharField(max_length=255, default='', blank=True, verbose_name=_('name')),\r\n        description = models.TextField(null=True, blank=True, verbose_name=_('description'))\r\n    )\r\n```\r\n\r\nSo my question is: would you consider making filer models translatable by default and pulling django-parler in as a dependency? I will do this anyway, but I don't want my solution to be fork-only. Any suggestions?"},"comment":{"url":"https://api.github.com/repos/stefanfoulis/django-filer/issues/comments/73389737","html_url":"https://github.com/stefanfoulis/django-filer/issues/494#issuecomment-73389737","issue_url":"https://api.github.com/repos/stefanfoulis/django-filer/issues/494","id":73389737,"user":{"login":"yakky","id":714711,"avatar_url":"https://avatars.githubusercontent.com/u/714711?v=3","gravatar_id":"","url":"https://api.github.com/users/yakky","html_url":"https://github.com/yakky","followers_url":"https://api.github.com/users/yakky/followers","following_url":"https://api.github.com/users/yakky/following{/other_user}","gists_url":"https://api.github.com/users/yakky/gists{/gist_id}","starred_url":"https://api.github.com/users/yakky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yakky/subscriptions","organizations_url":"https://api.github.com/users/yakky/orgs","repos_url":"https://api.github.com/users/yakky/repos","events_url":"https://api.github.com/users/yakky/events{/privacy}","received_events_url":"https://api.github.com/users/yakky/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T00:02:39Z","updated_at":"2015-02-08T00:02:39Z","body":"@stefanfoulis how about making the File model abstract, and ship an (optional) model with translated fields?\r\n"}}