Skip to content

Commit

Permalink
feat: Add download complete notification
Browse files Browse the repository at this point in the history
  • Loading branch information
RossWang committed Nov 18, 2017
1 parent 71ffefd commit 628bfc5
Show file tree
Hide file tree
Showing 13 changed files with 346 additions and 21 deletions.
60 changes: 60 additions & 0 deletions App/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,26 @@
}
},

"download_complete": {
"message": "Download Complete \n\n $NAME$",
"description": "notify the user when download complete",
"placeholders": {
"name" : {
"content" : "$1"
}
}
},

"download_error": {
"message": "Download Faild \n\n $NAME$",
"description": "notify the user when download failed",
"placeholders": {
"name" : {
"content" : "$1"
}
}
},

"UI_detail": {
"message": "Details",
"description": ""
Expand Down Expand Up @@ -180,6 +200,36 @@
"description": ""
},

"OP_sound": {
"message": "Downlod Complete Sound:",
"description": ""
},

"OP_sound0": {
"message": "None",
"description": ""
},

"OP_sound1": {
"message": "Sound 1",
"description": ""
},

"OP_sound2": {
"message": "Sound 2",
"description": ""
},

"OP_sound3": {
"message": "Sound 3",
"description": ""
},

"OPN_sound": {
"message": "Select a sound for download compete",
"description": ""
},

"OP_advanced": {
"message": "Advanced:",
"description": ""
Expand Down Expand Up @@ -255,6 +305,16 @@
"description": ""
},

"OP_badge": {
"message": "Display Current Active Download Count",
"description": ""
},

"OPN_badge": {
"message": "Display current active download count on top of the icon",
"description": ""
},

"OP_winWidth": {
"message": "Download Panel width offset",
"description": ""
Expand Down
76 changes: 68 additions & 8 deletions App/_locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,26 @@
}
},

"download_complete": {
"message": "下载完成 \n\n $NAME$",
"description": "当下载完成时,告知使用者",
"placeholders": {
"name" : {
"content" : "$1"
}
}
},

"download_error": {
"message": "下载失败 \n\n $NAME$",
"description": "当下载失败时,告知使用者",
"placeholders": {
"name" : {
"content" : "$1"
}
}
},

"UI_detail": {
"message": "详情",
"description": ""
Expand Down Expand Up @@ -105,7 +125,7 @@
},

"OP_defaultPath": {
"message": "默认下载路径:",
"message": "默认下载路径",
"description": ""
},

Expand All @@ -116,7 +136,7 @@
},

"OP_protocol": {
"message": "协议:",
"message": "协议",
"description": ""
},

Expand All @@ -131,7 +151,7 @@
},

"OP_host": {
"message": "地址:",
"message": "地址",
"description": ""
},

Expand All @@ -141,7 +161,7 @@
},

"OP_port": {
"message": "端口:",
"message": "端口",
"description": ""
},

Expand All @@ -151,7 +171,7 @@
},

"OP_interface": {
"message": "接口:",
"message": "接口",
"description": ""
},

Expand All @@ -161,7 +181,7 @@
},

"OP_token": {
"message": "密钥:",
"message": "密钥",
"description": ""
},

Expand All @@ -171,7 +191,7 @@
},

"OP_zoom": {
"message": "缩放倍数:",
"message": "缩放倍数",
"description": ""
},

Expand All @@ -180,8 +200,38 @@
"description": ""
},

"OP_sound": {
"message": "下载完成音效:",
"description": ""
},

"OP_sound0": {
"message": "",
"description": ""
},

"OP_sound1": {
"message": "音效1",
"description": ""
},

"OP_sound2": {
"message": "音效2",
"description": ""
},

"OP_sound3": {
"message": "音效3",
"description": ""
},

"OPN_sound": {
"message": "选择一个下载完成音效",
"description": ""
},

"OP_advanced": {
"message": "进阶选项:",
"message": "进阶选项",
"description": ""
},

Expand Down Expand Up @@ -254,6 +304,16 @@
"message": "更新后自动显示更新日誌",
"description": ""
},

"OP_badge": {
"message": "显示目前正在下载的数量",
"description": ""
},

"OPN_badge": {
"message": "在图标上显示目前正在下载的数量",
"description": ""
},

"OP_winWidth": {
"message": "下载窗口宽度改变量",
Expand Down
76 changes: 68 additions & 8 deletions App/_locales/zh_TW/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,26 @@
}
},

"download_complete": {
"message": "下載完成 \n\n $NAME$",
"description": "當下載完成時,告知使用者",
"placeholders": {
"name" : {
"content" : "$1"
}
}
},

"download_error": {
"message": "下載失敗 \n\n $NAME$",
"description": "當下載失敗時,告知使用者",
"placeholders": {
"name" : {
"content" : "$1"
}
}
},

"UI_detail": {
"message": "詳細",
"description": ""
Expand Down Expand Up @@ -105,7 +125,7 @@
},

"OP_defaultPath": {
"message": "預設下載路徑:",
"message": "預設下載路徑",
"description": ""
},

Expand All @@ -116,7 +136,7 @@
},

"OP_protocol": {
"message": "協定:",
"message": "協定",
"description": ""
},

Expand All @@ -126,7 +146,7 @@
},

"OP_host": {
"message": "地址:",
"message": "地址",
"description": ""
},

Expand All @@ -136,7 +156,7 @@
},

"OP_port": {
"message": "連接埠:",
"message": "連接埠",
"description": ""
},

Expand All @@ -146,7 +166,7 @@
},

"OP_interface": {
"message": "接口:",
"message": "接口",
"description": ""
},

Expand All @@ -156,7 +176,7 @@
},

"OP_token": {
"message": "金鑰:",
"message": "金鑰",
"description": ""
},

Expand All @@ -166,7 +186,7 @@
},

"OP_zoom": {
"message": "縮放倍數:",
"message": "縮放倍數",
"description": ""
},

Expand All @@ -175,8 +195,38 @@
"description": ""
},

"OP_sound": {
"message": "下載完成音效:",
"description": ""
},

"OP_sound0": {
"message": "",
"description": ""
},

"OP_sound1": {
"message": "音效1",
"description": ""
},

"OP_sound2": {
"message": "音效2",
"description": ""
},

"OP_sound3": {
"message": "音效3",
"description": ""
},

"OPN_sound": {
"message": "選擇一個下載完成音效",
"description": ""
},

"OP_advanced": {
"message": "進階選項:",
"message": "進階選項",
"description": ""
},

Expand Down Expand Up @@ -249,6 +299,16 @@
"message": "更新後自動顯示更新日誌",
"description": ""
},

"OP_badge": {
"message": "顯示目前正在下載的數量",
"description": ""
},

"OPN_badge": {
"message": "在圖標上顯示目前正在下載的數量",
"description": ""
},

"OP_winWidth": {
"message": "下載視窗寬度改變量",
Expand Down

0 comments on commit 628bfc5

Please sign in to comment.