{"action":"created","issue":{"url":"https://api.github.com/repos/pioneerspacesim/pioneer/issues/3527","labels_url":"https://api.github.com/repos/pioneerspacesim/pioneer/issues/3527/labels{/name}","comments_url":"https://api.github.com/repos/pioneerspacesim/pioneer/issues/3527/comments","events_url":"https://api.github.com/repos/pioneerspacesim/pioneer/issues/3527/events","html_url":"https://github.com/pioneerspacesim/pioneer/issues/3527","id":116096426,"number":3527,"title":"Crash with translations in Options screen","user":{"login":"gunchleoc","id":4095570,"avatar_url":"https://avatars.githubusercontent.com/u/4095570?v=3","gravatar_id":"","url":"https://api.github.com/users/gunchleoc","html_url":"https://github.com/gunchleoc","followers_url":"https://api.github.com/users/gunchleoc/followers","following_url":"https://api.github.com/users/gunchleoc/following{/other_user}","gists_url":"https://api.github.com/users/gunchleoc/gists{/gist_id}","starred_url":"https://api.github.com/users/gunchleoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunchleoc/subscriptions","organizations_url":"https://api.github.com/users/gunchleoc/orgs","repos_url":"https://api.github.com/users/gunchleoc/repos","events_url":"https://api.github.com/users/gunchleoc/events{/privacy}","received_events_url":"https://api.github.com/users/gunchleoc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pioneerspacesim/pioneer/labels/Build","name":"Build","color":"E04000"},{"url":"https://api.github.com/repos/pioneerspacesim/pioneer/labels/Crash%20or%20hang","name":"Crash or hang","color":"c70000"},{"url":"https://api.github.com/repos/pioneerspacesim/pioneer/labels/Language","name":"Language","color":"7F3F00"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-10T12:20:14Z","updated_at":"2015-11-10T14:08:02Z","closed_at":null,"body":"Pioneer crashes due to translation contents in the gd locale - this crash does not happen in the English language version.\r\n\r\nVersion: pioneer-20151109-linux32, downloaded from Sourceforge\r\nOS: Ubuntu 14.04\r\n\r\nTo reproduce, set the language to \"Gàidhlig\" and restart Pioneer.\r\n\r\nClick on \"Roghainnean\" (Options).\r\n\r\nMa language has a lot of `' `  in it, so if you use `' '` to delimit your JSON files, that might be the problem. Is there a way to have an error messages that shows which string, or at least with JSON file has the problem? Unfortunately, Transifex doesn't allow you to search for `' `. I can search for JSON Key names there though.\r\n\r\nConsole output:\r\n\r\n\r\nLoading took: 56132.430260 milliseconds\r\nCreateCollisionMesh for : (ac33)\r\nCreateCollisionMesh for : (amphiesma)\r\nCreateCollisionMesh for : (deneb)\r\nCreateCollisionMesh for : (dsminer)\r\nCreateCollisionMesh for : (kanara_civ)\r\nCreateCollisionMesh for : (lunarshuttle)\r\nCreateCollisionMesh for : (malabar)\r\nCreateCollisionMesh for : (molamola)\r\nCreateCollisionMesh for : (natrix)\r\nCreateCollisionMesh for : (nerodia)\r\nCreateCollisionMesh for : (pumpkinseed)\r\nCreateCollisionMesh for : (sinonatrix)\r\nCreateCollisionMesh for : (storeria)\r\nCreateCollisionMesh for : (varada)\r\nCreateCollisionMesh for : (vatakara)\r\nCreateCollisionMesh for : (venturestar)\r\nCreateCollisionMesh for : (wave)\r\nCreateCollisionMesh for : (xylophis)\r\nerror: [string \"[T] @ui/Settings.lua\"]:22: bad argument #1 to 'Label' (string expected, got nil)\r\nstack traceback:\r\n\t[C]: in function 'Label'\r\n\t[string \"[T] @ui/Settings.lua\"]:22: in function 'optionCheckBox'\r\n\t[string \"[T] @ui/Settings.lua\"]:123: in function 'template'\r\n\t[string \"[T] @ui/Settings.lua\"]:360: in function 'template'\r\n\t[string \"[T] @libs/ui/TabView.lua\"]:130: in function 'SwitchToNum'\r\n\t[string \"[T] @libs/ui/TabView.lua\"]:96: in function 'AddTab'\r\n\t[string \"[T] @ui/Settings.lua\"]:367: in function 'Settings'\r\n\t[string \"[T] @ui/MainMenu.lua\"]:78: in function <[string \"[T] @ui/MainMenu.lua\"]:76>\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pioneerspacesim/pioneer/issues/comments/155430058","html_url":"https://github.com/pioneerspacesim/pioneer/issues/3527#issuecomment-155430058","issue_url":"https://api.github.com/repos/pioneerspacesim/pioneer/issues/3527","id":155430058,"user":{"login":"gunchleoc","id":4095570,"avatar_url":"https://avatars.githubusercontent.com/u/4095570?v=3","gravatar_id":"","url":"https://api.github.com/users/gunchleoc","html_url":"https://github.com/gunchleoc","followers_url":"https://api.github.com/users/gunchleoc/followers","following_url":"https://api.github.com/users/gunchleoc/following{/other_user}","gists_url":"https://api.github.com/users/gunchleoc/gists{/gist_id}","starred_url":"https://api.github.com/users/gunchleoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunchleoc/subscriptions","organizations_url":"https://api.github.com/users/gunchleoc/orgs","repos_url":"https://api.github.com/users/gunchleoc/repos","events_url":"https://api.github.com/users/gunchleoc/events{/privacy}","received_events_url":"https://api.github.com/users/gunchleoc/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T14:08:02Z","updated_at":"2015-11-10T14:08:02Z","body":"Although this is an edge case, it might be good to have a fallback, e.g. when a key is missing from the JSON file (I assume that this is the problem?), load the original English string instead and write some log output."}}