{"action":"closed","issue":{"url":"https://api.github.com/repos/nijel/weblate/issues/627","labels_url":"https://api.github.com/repos/nijel/weblate/issues/627/labels{/name}","comments_url":"https://api.github.com/repos/nijel/weblate/issues/627/comments","events_url":"https://api.github.com/repos/nijel/weblate/issues/627/events","html_url":"https://github.com/nijel/weblate/issues/627","id":52349894,"number":627,"title":"Save translation causes template error","user":{"login":"Ninerian","id":117885,"avatar_url":"https://avatars.githubusercontent.com/u/117885?v=3","gravatar_id":"","url":"https://api.github.com/users/Ninerian","html_url":"https://github.com/Ninerian","followers_url":"https://api.github.com/users/Ninerian/followers","following_url":"https://api.github.com/users/Ninerian/following{/other_user}","gists_url":"https://api.github.com/users/Ninerian/gists{/gist_id}","starred_url":"https://api.github.com/users/Ninerian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ninerian/subscriptions","organizations_url":"https://api.github.com/users/Ninerian/orgs","repos_url":"https://api.github.com/users/Ninerian/repos","events_url":"https://api.github.com/users/Ninerian/events{/privacy}","received_events_url":"https://api.github.com/users/Ninerian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nijel/weblate/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-18T10:55:16Z","updated_at":"2015-01-12T14:36:36Z","closed_at":"2015-01-12T14:36:36Z","body":"I installed weblate to openshift. I'm a beginner to this tool, and also the workflow. Actually I managed to get the repo initialized and all languages are shown. But when I try to save an translation string the following error is logged:\r\n\r\n```\r\nERROR:django.request:Internal Server Error: /projects/tourplayer/web-ui/de/translate/\r\n[Thu Dec 18 05:48:34 2014] [error] Traceback (most recent call last):\r\n[Thu Dec 18 05:48:34 2014] [error]   File \"/var/lib/openshift/54914eb9e0b8cd71b90000ab/python/virtenv/lib/python2.7/site-packages/django/core/handlers/base.py\", line 111, in get_response\r\n[Thu Dec 18 05:48:34 2014] [error]     response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n[Thu Dec 18 05:48:34 2014] [error]   File \"/var/lib/openshift/54914eb9e0b8cd71b90000ab/python/virtenv/lib/python2.7/site-packages/django/db/transaction.py\", line 394, in inner\r\n[Thu Dec 18 05:48:34 2014] [error]     return func(*args, **kwargs)\r\n[Thu Dec 18 05:48:34 2014] [error]   File \"/var/lib/openshift/54914eb9e0b8cd71b90000ab/app-root/runtime/repo/weblate/trans/views/edit.py\", line 517, in translate\r\n[Thu Dec 18 05:48:34 2014] [error]     this_unit_url, next_unit_url\r\n[Thu Dec 18 05:48:34 2014] [error]   File \"/var/lib/openshift/54914eb9e0b8cd71b90000ab/app-root/runtime/repo/weblate/trans/views/edit.py\", line 312, in handle_translate\r\n[Thu Dec 18 05:48:34 2014] [error]     go_next = perform_translation(unit, form, request)\r\n[Thu Dec 18 05:48:34 2014] [error]   File \"/var/lib/openshift/54914eb9e0b8cd71b90000ab/app-root/runtime/repo/weblate/trans/views/edit.py\", line 231, in perform_translation\r\n[Thu Dec 18 05:48:34 2014] [error]     form.cleaned_data['fuzzy']\r\n[Thu Dec 18 05:48:34 2014] [error]   File \"/var/lib/openshift/54914eb9e0b8cd71b90000ab/app-root/runtime/repo/weblate/trans/models/unit.py\", line 966, in translate\r\n[Thu Dec 18 05:48:34 2014] [error]     saved = self.save_backend(request)\r\n[Thu Dec 18 05:48:34 2014] [error]   File \"/var/lib/openshift/54914eb9e0b8cd71b90000ab/app-root/runtime/repo/weblate/trans/models/unit.py\", line 528, in save_backend\r\n[Thu Dec 18 05:48:34 2014] [error]     (saved, pounit) = self.translation.update_unit(self, request, user)\r\n[Thu Dec 18 05:48:34 2014] [error]   File \"/var/lib/openshift/54914eb9e0b8cd71b90000ab/app-root/runtime/repo/weblate/trans/models/translation.py\", line 843, in update_unit\r\n[Thu Dec 18 05:48:34 2014] [error]     pounit, add = self.store.find_unit(unit.context, src)\r\n[Thu Dec 18 05:48:34 2014] [error]   File \"/var/lib/openshift/54914eb9e0b8cd71b90000ab/app-root/runtime/repo/weblate/trans/formats.py\", line 480, in find_unit\r\n[Thu Dec 18 05:48:34 2014] [error]     return self._find_unit_template(context)\r\n[Thu Dec 18 05:48:34 2014] [error]   File \"/var/lib/openshift/54914eb9e0b8cd71b90000ab/app-root/runtime/repo/weblate/trans/formats.py\", line 850, in _find_unit_template\r\n[Thu Dec 18 05:48:34 2014] [error]     '.' + context\r\n[Thu Dec 18 05:48:34 2014] [error]   File \"/var/lib/openshift/54914eb9e0b8cd71b90000ab/app-root/runtime/repo/weblate/trans/formats.py\", line 447, in _find_unit_template\r\n[Thu Dec 18 05:48:34 2014] [error]     'Could not find template unit for new unit!'\r\n[Thu Dec 18 05:48:34 2014] [error] Exception: Could not find template unit for new unit!\r\n```\r\n\r\nI use JSON Files to manage my translation. They are structured like:\r\nlanguages/de/web-ui.json\r\n\r\nI also checked, if there are missing or wrong written keywords, but there aren't any.\r\n"}}