add many multilingual fields

add torrents and forum topbar menu
This commit is contained in:
OldHawk
2017-03-26 18:27:53 +08:00
parent 34e11b53c5
commit 756c0a9052
8 changed files with 83 additions and 11 deletions

View File

@@ -15,10 +15,23 @@
var stringcn = {
COMINGSOON: '开发中,请稍候...',
//topbar menu
//client topbar menu
MENU_CHAT: '聊天室',
MENU_TORRENTS: '种子',
MENU_UPLOAD: '发布',
MENU_FORUMS: '论坛',
MENU_RANKING: '排行榜',
MENU_RULES: '规则',
MENU_VIP: 'VIP',
MENU_ADMIN: '管理中心',
//sub menu of torrents
MENU_TORRENTS_SUB: {
SUB_MOVIE: '电影',
SUB_MTV: 'MTV',
SUB_MUSIC: '音乐',
SUB_OTHER: '其它'
},
//client account menu
SIGNOUT: '退出登录',

View File

@@ -15,10 +15,23 @@
var stringen = {
COMINGSOON: 'coming soon...',
//client menu
//client topbar menu
MENU_CHAT: 'Chat',
MENU_TORRENTS: 'Torrents',
MENU_UPLOAD: 'Upload',
MENU_FORUMS: 'Forums',
MENU_RANKING: 'Ranking',
MENU_RULES: 'Rules',
MENU_VIP: 'VIP',
MENU_ADMIN: 'Admin',
//sub menu of torrents
MENU_TORRENTS_SUB: {
SUB_MOVIE: 'Movie',
SUB_MTV: 'MTV',
SUB_MUSIC: 'Music',
SUB_OTHER: 'Other'
},
//client menu
SIGNOUT: 'Signout',

View File

@@ -5,15 +5,15 @@
.module('core.admin')
.run(menuConfig);
menuConfig.$inject = ['menuService'];
menuConfig.$inject = ['menuService', '$translate'];
function menuConfig(menuService) {
function menuConfig(menuService, $translate) {
menuService.addMenuItem('topbar', {
title: 'Admin',
title: $translate.instant('MENU_ADMIN'),
state: 'admin',
type: 'dropdown',
roles: ['admin'],
position: 11
position: 10
});
}
}());

View File

@@ -6,7 +6,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a ui-sref="home" class="navbar-brand"><span style="font-size: 25px; font-weight: bold; line-height: 16px;">meanTorrent</span></a>
<a ui-sref="home" class="navbar-brand"><span style="font-size: 25px; font-weight: bold; line-height: 18px;">meanTorrent</span></a>
</div>
<nav class="navbar-collapse" uib-collapse="!vm.isCollapsed" role="navigation">
<ul class="nav navbar-nav" ng-if="vm.menu.shouldRender(vm.authentication.user);">