Make category button translatable in appstore
This commit is contained in:
@@ -761,7 +761,8 @@
|
||||
"blog": "Blog",
|
||||
"chat": "Chat",
|
||||
"analytics": "Analytics"
|
||||
}
|
||||
},
|
||||
"categoryLabel": "Kategorie"
|
||||
},
|
||||
"services": {
|
||||
"title": "Dienste",
|
||||
|
||||
@@ -129,7 +129,8 @@
|
||||
"createAccountAction": "Create Account",
|
||||
"switchToSignUpAction": "Don't have an account yet? Sign up",
|
||||
"switchToLoginAction": "Already have an account? Log in"
|
||||
}
|
||||
},
|
||||
"categoryLabel": "Category"
|
||||
},
|
||||
"users": {
|
||||
"title": "Users",
|
||||
|
||||
@@ -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