{"action":"closed","issue":{"url":"https://api.github.com/repos/MoonStorm/trNgGrid/issues/89","labels_url":"https://api.github.com/repos/MoonStorm/trNgGrid/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/MoonStorm/trNgGrid/issues/89/comments","events_url":"https://api.github.com/repos/MoonStorm/trNgGrid/issues/89/events","html_url":"https://github.com/MoonStorm/trNgGrid/issues/89","id":42603456,"number":89,"title":"display-name=\"nameProviderFunction()\"","user":{"login":"daniboomerang","id":3329046,"avatar_url":"https://avatars.githubusercontent.com/u/3329046?v=3","gravatar_id":"","url":"https://api.github.com/users/daniboomerang","html_url":"https://github.com/daniboomerang","followers_url":"https://api.github.com/users/daniboomerang/followers","following_url":"https://api.github.com/users/daniboomerang/following{/other_user}","gists_url":"https://api.github.com/users/daniboomerang/gists{/gist_id}","starred_url":"https://api.github.com/users/daniboomerang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniboomerang/subscriptions","organizations_url":"https://api.github.com/users/daniboomerang/orgs","repos_url":"https://api.github.com/users/daniboomerang/repos","events_url":"https://api.github.com/users/daniboomerang/events{/privacy}","received_events_url":"https://api.github.com/users/daniboomerang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-09-12T07:31:15Z","updated_at":"2015-03-06T22:25:32Z","closed_at":"2015-03-06T22:25:32Z","body":"Hi, \r\nI am using angular-translate in order to internationalize my app.\r\nI need the column name to be translated.\r\nI can use angular-translate anywhere in the table, except for the column headers.\r\nIn the previous version of trNgGrid, I use to do it like this and it worked:\r\n\r\n thead\r\n   tr\r\n     th field-name=\"id\"> ID /th\r\n     th field-name=\"severity\">{{ 'SEVERITY' | translate }}/th\r\n  /tr\r\n /thead\r\n\r\nBut in 3.X.X this is not working anymore.\r\nWe need to use \"display-name\" option:\r\n\r\n thead\r\n   tr\r\n     th field-name=\"id\"> ID /th\r\n     th field-name=\"severity\" display-name=\"{{ 'SEVERITY' | translate }}\">/th\r\n  /tr\r\n /thead\r\n\r\nAnd this is not working anymore.\r\n\r\nHaving a look, i´ve realised that actually, display name doesn´t take $scope functions, it just take $scope variables.\r\n\r\nSo for example if I have my controller:\r\n$scope.testNameVariable = \"testName\";\r\nth field-name=\"severity\" display-name=\"{{ testNameVariable }}\" /th \r\nWorks Perfectly !!\r\n\r\nBut if I have something like this:\r\n$scope.testNameFunction = function (){ return \"testName\";};\r\nth field-name=\"severity\" display-name=\"{{ testNameFunction() }}\" /th\r\nIt doesn´t work !!\r\n\r\nI wonder if this is the fact why I can´t use angular-translate....\r\n\r\nAny clue on that??\r\n\r\nThanks a lot!"}}