{"action":"closed","issue":{"url":"https://api.github.com/repos/TYPO3-Solr/ext-solr/issues/407","repository_url":"https://api.github.com/repos/TYPO3-Solr/ext-solr","labels_url":"https://api.github.com/repos/TYPO3-Solr/ext-solr/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/TYPO3-Solr/ext-solr/issues/407/comments","events_url":"https://api.github.com/repos/TYPO3-Solr/ext-solr/issues/407/events","html_url":"https://github.com/TYPO3-Solr/ext-solr/issues/407","id":154044411,"number":407,"title":"Floatval is not locale aware","user":{"login":"thombeck","id":15835008,"avatar_url":"https://avatars.githubusercontent.com/u/15835008?v=3","gravatar_id":"","url":"https://api.github.com/users/thombeck","html_url":"https://github.com/thombeck","followers_url":"https://api.github.com/users/thombeck/followers","following_url":"https://api.github.com/users/thombeck/following{/other_user}","gists_url":"https://api.github.com/users/thombeck/gists{/gist_id}","starred_url":"https://api.github.com/users/thombeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thombeck/subscriptions","organizations_url":"https://api.github.com/users/thombeck/orgs","repos_url":"https://api.github.com/users/thombeck/repos","events_url":"https://api.github.com/users/thombeck/events{/privacy}","received_events_url":"https://api.github.com/users/thombeck/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TYPO3-Solr/ext-solr/labels/needs%20feedback","name":"needs feedback","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/TYPO3-Solr/ext-solr/milestones/4","html_url":"https://github.com/TYPO3-Solr/ext-solr/milestones/5.0","labels_url":"https://api.github.com/repos/TYPO3-Solr/ext-solr/milestones/4/labels","id":1123665,"number":4,"title":"5.0","description":"Preparations for Fluid Templates","creator":{"login":"irnnr","id":320915,"avatar_url":"https://avatars.githubusercontent.com/u/320915?v=3","gravatar_id":"","url":"https://api.github.com/users/irnnr","html_url":"https://github.com/irnnr","followers_url":"https://api.github.com/users/irnnr/followers","following_url":"https://api.github.com/users/irnnr/following{/other_user}","gists_url":"https://api.github.com/users/irnnr/gists{/gist_id}","starred_url":"https://api.github.com/users/irnnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irnnr/subscriptions","organizations_url":"https://api.github.com/users/irnnr/orgs","repos_url":"https://api.github.com/users/irnnr/repos","events_url":"https://api.github.com/users/irnnr/events{/privacy}","received_events_url":"https://api.github.com/users/irnnr/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":52,"state":"open","created_at":"2015-05-21T16:39:45Z","updated_at":"2016-06-29T13:47:58Z","due_on":"2016-07-03T22:00:00Z","closed_at":null},"comments":5,"created_at":"2016-05-10T16:02:35Z","updated_at":"2016-06-29T13:47:58Z","closed_at":"2016-06-29T13:47:58Z","body":"Hi\r\nI think a found a bug with the relevance bar. PHP's floatval is not locale aware so I modified the render function of viewhelepers relevance.php and relevanceBar.php.\r\n\r\n    protected function render($documentScore, $maximumScore)\r\n    {\r\n        $content = '';\r\n        if ($maximumScore > 0) {\r\n            $score = floatval($documentScore);\r\n            $LocaleInfo = localeconv();\r\n            $score = str_replace($LocaleInfo[\"mon_thousands_sep\"] , \"\", $documentScore);\r\n            $score = str_replace($LocaleInfo[\"mon_decimal_point\"] , \".\", $score);\r\n            \r\n            $scorePercentage = round($score * 100 / $maximumScore);\r\n            $content = $scorePercentage;\r\n        }\r\n        return $content;\r\n    }\r\n"}}
{"actor":{"display_login":"timoschmidt"}}