Merge "Remove old trans filter"

This commit is contained in:
Jenkins 2015-07-08 22:39:11 +00:00 committed by Gerrit Code Review
commit 4d4045097e
2 changed files with 3 additions and 20 deletions

View File

@ -163,18 +163,6 @@
var format = ngettext('Displaying %s item', 'Displaying %s items', count);
return interpolate(format, [count]);
};
})
});
/**
* @ngdoc filter
* @name trans
* @description
* Returns translated text.
*/
.filter('trans', ['horizon.framework.util.i18n.gettext', function (gettextFunc) {
return function (input) {
// NOTE: uses 'gettextFunc' to avoid message collection.
return gettextFunc(input);
};
}]);
}());

View File

@ -202,10 +202,5 @@
);
});
describe('trans', function () {
it('should return translated text', inject(function (transFilter) {
expect(transFilter("Howdy")).toBe("Howdy");
}));
});
});
})();
}); // end of horizon.framework.util.filters
})(); // end of IIFE