accounts i18n

This commit is contained in:
life
2015-11-25 19:21:17 +08:00
parent dbb469e036
commit 3ebf3624ee

View File

@@ -38,7 +38,11 @@ define(function() {
"Notebook": "笔记本",
"Note": "笔记",
"Tag": "标签"
"Tag": "标签",
"Database": "数据库",
"Image": "图片",
"Attachment": "附件",
},
'zh-hk': {
'Accounts': '帳戶管理',
@@ -65,7 +69,11 @@ define(function() {
"Notebook": "筆記本",
"Note": "筆記",
"Tag": "標簽"
"Tag": "標簽",
"Database": "數據庫",
"Image": "圖片",
"Attachment": "附件",
}
},
_tpl: `
@@ -83,7 +91,7 @@ define(function() {
}
#accountsDialog .modal-dialog {
width: 750px ;
width: 830px ;
}
#accountsDialog .user-data {
margin: 0;
@@ -106,7 +114,7 @@ define(function() {
}
#accountsDialog .data-text {
display: inline-block;
min-width: 120px;
min-width: 130px;
}
#accountsDialog .user-data li {
border-bottom: 1px solid #eee;
@@ -271,21 +279,21 @@ define(function() {
var userStats = Api.userService.getUserDataStats(user);
var dataTd = '<ul class="user-data">';
dataTd += '<li><span class="data-text">数据库 '
dataTd += '<li><span class="data-text">' + me.getMsg('Database') + ': '
+ me.fixSize(userStats.db)
+ '</span><a data-op="open-db-dir" class="op">' + me.getMsg('Open Dir') + '</a>'
+ '<a data-op="db" class="op">' + me.getMsg('DB Optimization') + '</a>'
+ '<a class="account-q" onclick="openExternal(\'http://leanote.leanote.com/post/desktop-app-db-optimization\')"><i class="fa fa-question-circle"></i></a>'
+ '<br />'
+ me.getMsg('Notebook') + ' <span id="' + userId + '-stat-notebook"></span><br />'
+ me.getMsg('Note') + ' <span id="' + userId + '-stat-note"></span><br />'
+ me.getMsg('Tag') + ' <span id="' + userId + '-stat-tag"></span>'
+ me.getMsg('Notebook') + ': <span id="' + userId + '-stat-notebook"></span><br />'
+ me.getMsg('Note') + ': <span id="' + userId + '-stat-note"></span><br />'
+ me.getMsg('Tag') + ': <span id="' + userId + '-stat-tag"></span>'
+ ' </li>'
dataTd += '<li><span class="data-text">图片 '
dataTd += '<li><span class="data-text">' + me.getMsg('Image') + ': '
+ me.fixSize(userStats.image)
+ '</span><a data-op="open-image-dir" class="op">' + me.getMsg('Open Dir') + '</a>'
+ ' </li>'
dataTd += '<li><span class="data-text">附件 '
dataTd += '<li><span class="data-text">' + me.getMsg('Attachment') + ': '
+ me.fixSize(userStats.attach)
+ '</span><a data-op="open-attach-dir" class="op">' + me.getMsg('Open Dir') + '</a>'
+ ' </li>'
@@ -298,16 +306,15 @@ define(function() {
+ '</div>';
tr += '<td>' + options + '</td>';
setTimeout(function () {
me.renderUserDBDataStats(user);
}, 1000);
if (renderToExists) {
me.tbody.find('[data-id="' + user.UserId + '"]').html(tr);
return;
}
setTimeout(function () {
me.renderUserDBDataStats(user);
}, 1000);
var trContainer = '<tr data-id="' + user.UserId + '">'
+ tr
+ '</tr>';