修改英文标题

This commit is contained in:
liuhongyu 2020-05-01 13:19:57 +08:00 committed by mayswind
parent db6699084d
commit cff87831ac
8 changed files with 21 additions and 20 deletions

View file

@ -179,7 +179,7 @@ Navigate to Downloading Tasks Page=转到正在下载列表页面
Stay on Current Page=留在当前页面 Stay on Current Page=留在当前页面
Remove Old Tasks After Retrying=重试任务后删除原任务 Remove Old Tasks After Retrying=重试任务后删除原任务
Confirm Task Removal=任务删除前确认 Confirm Task Removal=任务删除前确认
Task Detail Copy With Perfix=任务详情页复制时包括前缀 Include Prefix When Copying From Task Details=任务详情页复制时包括前缀
RPC List Display Order=RPC 列表显示顺序 RPC List Display Order=RPC 列表显示顺序
Recently Used=最近使用 Recently Used=最近使用
RPC Alias=RPC 别名 RPC Alias=RPC 别名

View file

@ -179,7 +179,7 @@ Navigate to Downloading Tasks Page=轉到正在下載工作頁面
Stay on Current Page=留在目前頁面 Stay on Current Page=留在目前頁面
Remove Old Tasks After Retrying=重試工作後刪除原工作 Remove Old Tasks After Retrying=重試工作後刪除原工作
Confirm Task Removal=工作刪除前確認 Confirm Task Removal=工作刪除前確認
Task Detail Copy With Perfix=任務詳情頁複製時包括前綴 Include Prefix When Copying From Task Details=任務詳情頁複製時包括前綴
RPC List Display Order=RPC 清單顯示順序 RPC List Display Order=RPC 清單顯示順序
Recently Used=最近使用 Recently Used=最近使用
RPC Alias=RPC 別名 RPC Alias=RPC 別名

View file

@ -40,7 +40,7 @@
afterCreatingNewTask: 'task-list', afterCreatingNewTask: 'task-list',
removeOldTaskAfterRetrying: false, removeOldTaskAfterRetrying: false,
confirmTaskRemoval: true, confirmTaskRemoval: true,
taskDetailCopyWithPerfix: true, includePrefixWhenCopyingFromTaskDetails: true,
afterRetryingTask: 'task-list-downloading', afterRetryingTask: 'task-list-downloading',
displayOrder: 'default:asc', displayOrder: 'default:asc',
fileListDisplayOrder: 'default:asc', fileListDisplayOrder: 'default:asc',

View file

@ -183,7 +183,7 @@
'Stay on Current Page': 'Stay on Current Page', 'Stay on Current Page': 'Stay on Current Page',
'Remove Old Tasks After Retrying': 'Remove Old Tasks After Retrying', 'Remove Old Tasks After Retrying': 'Remove Old Tasks After Retrying',
'Confirm Task Removal': 'Confirm Task Removal', 'Confirm Task Removal': 'Confirm Task Removal',
'Task Detail Copy With Perfix': 'Task Detail Copy With Perfix', 'Include Prefix When Copying From Task Details': 'Include Prefix When Copying From Task Details',
'RPC List Display Order': 'RPC List Display Order', 'RPC List Display Order': 'RPC List Display Order',
'Recently Used': 'Recently Used', 'Recently Used': 'Recently Used',
'RPC Alias': 'RPC Alias', 'RPC Alias': 'RPC Alias',

View file

@ -191,8 +191,8 @@
ariaNgSettingService.setConfirmTaskRemoval(value); ariaNgSettingService.setConfirmTaskRemoval(value);
}; };
$scope.setTaskDetailCopyWithPerfix = function (value) { $scope.setIncludePrefixWhenCopyingFromTaskDetails = function (value) {
ariaNgSettingService.setTaskDetailCopyWithPerfix(value); ariaNgSettingService.setIncludePrefixWhenCopyingFromTaskDetails(value);
}; };
$scope.setAfterRetryingTask = function (value) { $scope.setAfterRetryingTask = function (value) {

View file

@ -637,12 +637,8 @@
return; return;
} }
var value = ''; var name = currentRowTriggeredMenu.find('.setting-key > span').text().trim();
var value = "";
if (ariaNgSettingService.getTaskDetailCopyWithPerfix()) {
var name = currentRowTriggeredMenu.find('.setting-key > span').text().trim();
value = name + ': ';
};
currentRowTriggeredMenu.find('.setting-value > span').each(function (i, element) { currentRowTriggeredMenu.find('.setting-value > span').each(function (i, element) {
if (i > 0) { if (i > 0) {
@ -652,7 +648,12 @@
value += angular.element(element).text().trim(); value += angular.element(element).text().trim();
}); });
clipboard.copyText(value); if (ariaNgSettingService.getIncludePrefixWhenCopyingFromTaskDetails()) {
var info = name + ': ' + value;
clipboard.copyText(info);
} else {
clipboard.copyText(value);
};
}; };
if (ariaNgSettingService.getDownloadTaskRefreshInterval() > 0) { if (ariaNgSettingService.getDownloadTaskRefreshInterval() > 0) {

View file

@ -387,11 +387,11 @@
setConfirmTaskRemoval: function (value) { setConfirmTaskRemoval: function (value) {
setOption('confirmTaskRemoval', value); setOption('confirmTaskRemoval', value);
}, },
getTaskDetailCopyWithPerfix: function () { getIncludePrefixWhenCopyingFromTaskDetails: function () {
return getOption('taskDetailCopyWithPerfix'); return getOption('includePrefixWhenCopyingFromTaskDetails');
}, },
setTaskDetailCopyWithPerfix: function (value) { setIncludePrefixWhenCopyingFromTaskDetails: function (value) {
setOption('taskDetailCopyWithPerfix', value); setOption('includePrefixWhenCopyingFromTaskDetails', value);
}, },
getAfterRetryingTask: function () { getAfterRetryingTask: function () {
return getOption('afterRetryingTask'); return getOption('afterRetryingTask');

View file

@ -184,11 +184,11 @@
</div> </div>
<div class="row"> <div class="row">
<div class="setting-key setting-key-without-desc col-sm-4"> <div class="setting-key setting-key-without-desc col-sm-4">
<span translate>Task Detail Copy With Perfix</span> <span translate>Include Prefix When Copying From Task Details</span>
</div> </div>
<div class="setting-value col-sm-8"> <div class="setting-value col-sm-8">
<select class="form-control" style="width: 100%;" ng-model="context.settings.taskDetailCopyWithPerfix" <select class="form-control" style="width: 100%;" ng-model="context.settings.includePrefixWhenCopyingFromTaskDetails"
ng-change="setTaskDetailCopyWithPerfix(context.settings.taskDetailCopyWithPerfix)" ng-change="setIncludePrefixWhenCopyingFromTaskDetails(context.settings.includePrefixWhenCopyingFromTaskDetails)"
ng-options="option.value as (option.name | translate) for option in context.trueFalseOptions"> ng-options="option.value as (option.name | translate) for option in context.trueFalseOptions">
</select> </select>
</div> </div>