Make category button translatable in appstore
This commit is contained in:
@@ -74,14 +74,16 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$tran
|
||||
});
|
||||
|
||||
$scope.categoryButtonLabel = function (category) {
|
||||
if (category === 'new') return 'Category';
|
||||
if (category === 'recent') return 'Category';
|
||||
if (category === 'featured') return 'Category';
|
||||
var categoryLabel = $translate.instant('appstore.categoryLabel')
|
||||
|
||||
if (category === 'new') return categoryLabel;
|
||||
if (category === 'recent') return categoryLabel;
|
||||
if (category === 'featured') return categoryLabel;
|
||||
|
||||
var tmp = $scope.categories.find(function (c) { return c.id === category; });
|
||||
if (tmp) return tmp.label;
|
||||
|
||||
return 'Category';
|
||||
return categoryLabel;
|
||||
};
|
||||
|
||||
$scope.appInstall = {
|
||||
|
||||
Reference in New Issue
Block a user