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