Make category button translatable in appstore
This commit is contained in:
@@ -761,7 +761,8 @@
|
|||||||
"blog": "Blog",
|
"blog": "Blog",
|
||||||
"chat": "Chat",
|
"chat": "Chat",
|
||||||
"analytics": "Analytics"
|
"analytics": "Analytics"
|
||||||
}
|
},
|
||||||
|
"categoryLabel": "Kategorie"
|
||||||
},
|
},
|
||||||
"services": {
|
"services": {
|
||||||
"title": "Dienste",
|
"title": "Dienste",
|
||||||
|
|||||||
@@ -129,7 +129,8 @@
|
|||||||
"createAccountAction": "Create Account",
|
"createAccountAction": "Create Account",
|
||||||
"switchToSignUpAction": "Don't have an account yet? Sign up",
|
"switchToSignUpAction": "Don't have an account yet? Sign up",
|
||||||
"switchToLoginAction": "Already have an account? Log in"
|
"switchToLoginAction": "Already have an account? Log in"
|
||||||
}
|
},
|
||||||
|
"categoryLabel": "Category"
|
||||||
},
|
},
|
||||||
"users": {
|
"users": {
|
||||||
"title": "Users",
|
"title": "Users",
|
||||||
|
|||||||
@@ -74,14 +74,16 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$tran
|
|||||||
});
|
});
|
||||||
|
|
||||||
$scope.categoryButtonLabel = function (category) {
|
$scope.categoryButtonLabel = function (category) {
|
||||||
if (category === 'new') return 'Category';
|
var categoryLabel = $translate.instant('appstore.categoryLabel')
|
||||||
if (category === 'recent') return 'Category';
|
|
||||||
if (category === 'featured') return 'Category';
|
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; });
|
var tmp = $scope.categories.find(function (c) { return c.id === category; });
|
||||||
if (tmp) return tmp.label;
|
if (tmp) return tmp.label;
|
||||||
|
|
||||||
return 'Category';
|
return categoryLabel;
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.appInstall = {
|
$scope.appInstall = {
|
||||||
|
|||||||
Reference in New Issue
Block a user