{"action":"closed","issue":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/2192","repository_url":"https://api.github.com/repos/eclipse/smarthome","labels_url":"https://api.github.com/repos/eclipse/smarthome/issues/2192/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/smarthome/issues/2192/comments","events_url":"https://api.github.com/repos/eclipse/smarthome/issues/2192/events","html_url":"https://github.com/eclipse/smarthome/issues/2192","id":177878004,"number":2192,"title":"PaperUI: Locale settings does not work properly","user":{"login":"MHerbst","id":616792,"avatar_url":"https://avatars.githubusercontent.com/u/616792?v=3","gravatar_id":"","url":"https://api.github.com/users/MHerbst","html_url":"https://github.com/MHerbst","followers_url":"https://api.github.com/users/MHerbst/followers","following_url":"https://api.github.com/users/MHerbst/following{/other_user}","gists_url":"https://api.github.com/users/MHerbst/gists{/gist_id}","starred_url":"https://api.github.com/users/MHerbst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MHerbst/subscriptions","organizations_url":"https://api.github.com/users/MHerbst/orgs","repos_url":"https://api.github.com/users/MHerbst/repos","events_url":"https://api.github.com/users/MHerbst/events{/privacy}","received_events_url":"https://api.github.com/users/MHerbst/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eclipse/smarthome/labels/PaperUI","name":"PaperUI","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-19T19:44:05Z","updated_at":"2016-09-24T03:26:50Z","closed_at":"2016-09-24T03:26:50Z","body":"Test environment: openHAB 2.0 b4 on a Raspberry PI \r\nBrowser: Chrome 53 on Windows 10\r\n\r\nI have played a bit with the locale settings options and discovered some problems. This is what I did.\r\nIn a previous setting I have set the language explicitly to \"en\" and country to \"US\".\r\n\r\nNow I entered an invalid language under _Configuration/System_:\r\n![image](https://cloud.githubusercontent.com/assets/616792/18646093/54611adc-7eb0-11e6-827b-76a4471097ec.png)\r\nAfter pressing the \"Save\" button, nothing happened. So I pressed the button a second time and the Locale was set to \"enxx_US\":\r\n21:31:32.615 [INFO ] [ore.internal.i18n.LocaleProviderImpl] - Locale set to enxx_US\r\n\r\nNote: sometimes it works with the first press of the Save buttons, sometimes it is necessary to press the button two times to save the changes\r\n\r\nWithout leaving the locale settings I tried to set language back to \"en\":\r\n![image](https://cloud.githubusercontent.com/assets/616792/18646179/b558907c-7eb0-11e6-9d73-5fc796d31d3e.png)\r\nThe save button disappeared. When I change the locale to a value that is different from \"en\" the save button gets visible. \r\nAfter switching to another page and then back to _Configuration/System_ I could change the language back to \"en\". This time the first press of the \"Save\" button worked.\r\nApparently the current value is compared with the value that was valid when entering this page and not with the value that was stored.\r\n\r\n\r\nBTW: I would be fine if the language and country would be checked for correctness before enabling the \"Save\" button :-).\r\n"}}
{"actor":{"display_login":"kaikreuzer"}}