Skip to content

A full-featured download manager.

feat: Add vietnamese translation (#680)

Duy–Thanh Doan117dba9f3786
diff --git a/src/shared/locales/all.js b/src/shared/locales/all.js
index 4953c2e6..6b7abd37 100644
--- a/src/shared/locales/all.js
+++ b/src/shared/locales/all.js
@@ -10,6 +10,7 @@ import eleLocaleKo from 'element-ui/lib/locale/lang/ko'
import eleLocalePtBR from 'element-ui/lib/locale/lang/pt-br'
import eleLocaleRu from 'element-ui/lib/locale/lang/ru-RU'
import eleLocaleTr from 'element-ui/lib/locale/lang/tr-TR'
+import eleLocaleVi from 'element-ui/lib/locale/lang/vi'
import eleLocaleZhCN from 'element-ui/lib/locale/lang/zh-CN'
import eleLocaleZhTW from 'element-ui/lib/locale/lang/zh-TW'
import eleLocaleUk from 'element-ui/lib/locale/lang/ua'
@@ -25,6 +26,7 @@ import appLocaleKo from '@shared/locales/ko'
import appLocalePtBR from '@shared/locales/pt-BR'
import appLocaleRu from '@shared/locales/ru'
import appLocaleTr from '@shared/locales/tr'
+import appLocaleVi from '@shared/locales/vi'
import appLocaleZhCN from '@shared/locales/zh-CN'
import appLocaleZhTW from '@shared/locales/zh-TW'
import appLocaleUk from '@shared/locales/uk'
@@ -104,6 +106,12 @@ const resources = {
...appLocaleTr
}
},
+ 'vi': {
+ translation: {
+ ...eleLocaleVi,
+ ...appLocaleVi
+ }
+ },
'zh-CN': {
translation: {
...eleLocaleZhCN,
diff --git a/src/shared/locales/app.js b/src/shared/locales/app.js
index 39763ba7..6600597f 100644
--- a/src/shared/locales/app.js
+++ b/src/shared/locales/app.js
@@ -9,6 +9,7 @@ import appLocaleKo from '@shared/locales/ko'
import appLocalePtBR from '@shared/locales/pt-BR'
import appLocaleRu from '@shared/locales/ru'
import appLocaleTr from '@shared/locales/tr'
+import appLocaleVi from '@shared/locales/vi'
import appLocaleZhCN from '@shared/locales/zh-CN'
import appLocaleZhTW from '@shared/locales/zh-TW'
import appLocaleUk from '@shared/locales/uk'
@@ -71,6 +72,11 @@ const resources = {
...appLocaleTr
}
},
+ 'vi': {
+ translation: {
+ ...appLocaleVi
+ }
+ },
'zh-CN': {
translation: {
...appLocaleZhCN
diff --git a/src/shared/locales/index.js b/src/shared/locales/index.js
index 099e4b65..85796a7e 100644
--- a/src/shared/locales/index.js
+++ b/src/shared/locales/index.js
@@ -54,6 +54,10 @@ export const availableLanguages = [
value: 'tr',
label: 'Türkçe'
},
+ {
+ value: 'vi',
+ label: 'Tiếng Việt'
+ },
{
value: 'zh-CN',
label: '简体中文'
diff --git a/src/shared/locales/vi/about.js b/src/shared/locales/vi/about.js
new file mode 100644
index 00000000..d314f3f4
--- /dev/null
+++ b/src/shared/locales/vi/about.js
@@ -0,0 +1,7 @@
+export default {
+ 'engine-version': 'Phiên bản Ứng dụng',
+ 'license': 'Giấy phép',
+ 'about': 'Về Motrix',
+ 'release': 'Phát hành',
+ 'support': 'Hỗ trợ'
+}
diff --git a/src/shared/locales/vi/app.js b/src/shared/locales/vi/app.js
new file mode 100644
index 00000000..d260f202
--- /dev/null
+++ b/src/shared/locales/vi/app.js
@@ -0,0 +1,32 @@
+export default {
+ 'task-list': 'Danh sách Tác vụ',
+ 'add-task': 'Thêm tác vụ',
+ 'about': 'Về Motrix',
+ 'preferences': 'Cài đặt...',
+ 'check-for-updates': 'Kiểm tra Cập nhật...',
+ 'check-updates-now': 'Cập nhật ngay',
+ 'checking-for-updates': 'Đang kiểm tra Cập nhật...',
+ 'check-for-updates-title': 'Kiểm tra Cập nhật',
+ 'update-available-message': 'Bạn ơi, đang có một bản cập nhật mới từ Motrix, bạn có muốn cập nhật không?',
+ 'update-not-available-message': 'Không có bản cập nhật mới.',
+ 'update-downloaded-message': 'Đã sẵn sàng để cài đặt...',
+ 'update-error-message': 'Cập nhật lỗi',
+ 'engine-damaged-message': 'Ứng dụng bị lỗi, vui lòng cài đặt lại : (',
+ 'engine-missing-message': 'Ứng dụng bị thiếu tập tin, vui lòng cài đặt lại : (',
+ 'system-error-title': 'Lỗi ứng dụng',
+ 'system-error-message': 'Khởi động ứng dụng thất bại: {{message}}',
+ 'hide': 'Ẩn Motrix',
+ 'hide-others': 'Ẩn tất cả',
+ 'unhide': 'Hiển thị tất cả',
+ 'show': 'Hiển thị Motrix',
+ 'quit': 'Thoát Motrix',
+ 'under-development-message': 'Xin lỗi, tính năng này đang được phát triển...',
+ 'yes': 'Có',
+ 'no': 'Không',
+ 'cancel': 'Huỷ',
+ 'submit': 'Tải về',
+ 'gt1d': '> 1 ngày',
+ 'hour': ' giờ',
+ 'minute': ' phút',
+ 'second': ' giây'
+}
diff --git a/src/shared/locales/vi/edit.js b/src/shared/locales/vi/edit.js
new file mode 100644
index 00000000..e22272d9
--- /dev/null
+++ b/src/shared/locales/vi/edit.js
@@ -0,0 +1,9 @@
+export default {
+ 'undo': 'Undo',
+ 'redo': 'Redo',
+ 'cut': 'Cắt',
+ 'copy': 'Sao chép',
+ 'paste': 'Dán',
+ 'delete': 'Xóa',
+ 'select-all': 'Xóa tất cả'
+}
diff --git a/src/shared/locales/vi/help.js b/src/shared/locales/vi/help.js
new file mode 100644
index 00000000..cfaa362f
--- /dev/null
+++ b/src/shared/locales/vi/help.js
@@ -0,0 +1,7 @@
+export default {
+ 'official-website': 'Trang thông tin chính thức của Motrix',
+ 'manual': 'Hướng dẫn sử dụng',
+ 'release-notes': 'Ghi chú Phát hành...',
+ 'report-problem': 'Báo cáo Vấn đề',
+ 'toggle-dev-tools': 'Mở công cụ Dành cho Nhà phát triển'
+}
diff --git a/src/shared/locales/vi/index.js b/src/shared/locales/vi/index.js
new file mode 100644
index 00000000..f9320afb
--- /dev/null
+++ b/src/shared/locales/vi/index.js
@@ -0,0 +1,21 @@
+import about from './about'
+import app from './app'
+import edit from './edit'
+import help from './help'
+import menu from './menu'
+import preferences from './preferences'
+import subnav from './subnav'
+import task from './task'
+import window from './window'
+
+export default {
+ about,
+ app,
+ edit,
+ help,
+ menu,
+ preferences,
+ subnav,
+ task,
+ window
+}
diff --git a/src/shared/locales/vi/menu.js b/src/shared/locales/vi/menu.js
new file mode 100644
index 00000000..a62d3580
--- /dev/null
+++ b/src/shared/locales/vi/menu.js
@@ -0,0 +1,8 @@
+export default {
+ 'app': 'Motrix',
+ 'file': 'Tập tin',
+ 'task': 'Tác vụ',
+ 'edit': 'Chỉnh sửa',
+ 'window': 'Cửa sổ',
+ 'help': 'Trợ giúp'
+}
diff --git a/src/shared/locales/vi/preferences.js b/src/shared/locales/vi/preferences.js
new file mode 100644
index 00000000..cfc81fa1
--- /dev/null
+++ b/src/shared/locales/vi/preferences.js
@@ -0,0 +1,72 @@
+export default {
+ 'basic': 'Cơ bản',
+ 'advanced': 'Nâng cao',
+ 'lab': 'Phòng thí nghiệm',
+ 'save': 'Lưu & Áp dụng',
+ 'save-success-message': 'Lưu cài đặt thành công',
+ 'save-fail-message': 'Lưu cài đặt thất bại',
+ 'discard': 'Loại bỏ',
+ 'startup': 'Khởi động',
+ 'open-at-login': 'Mở khi đăng nhập',
+ 'keep-window-state': 'Giữ kích thước và vị trí của cửa sổ khi thoát',
+ 'auto-resume-all': 'Tự động tiếp tục tất cả các tác vụ chưa hoàn thành',
+ 'default-dir': 'Đường dẫn mặc định',
+ 'mas-default-dir-tips': 'Do các hạn chế cấp phép sandbox của App Store, thư mục tải xuống mặc định được khuyến nghị đặt tại ~/Downloads',
+ 'transfer-settings': 'Tốc độ truyền',
+ 'transfer-speed-upload': 'Giới hạn Tải lên',
+ 'transfer-speed-download': 'Giới hạn Tải về',
+ 'transfer-speed-unlimited': 'Không giới hạn',
+ 'task-manage': 'Quản lý Tác vụ',
+ 'max-concurrent-downloads': 'Số tác vụ đang hoạt động tối đa',
+ 'max-connection-per-server': 'Số kết nối tối đa trên mỗi máy chủ',
+ 'new-task-show-downloading': 'Tự động hiển thị tải xuống sau khi thêm tác vụ',
+ 'no-confirm-before-delete-task': 'Không cần xác nhận trước khi xóa tác vụ',
+ 'continue': 'Tiếp tục',
+ 'task-completed-notify': 'Thông báo sau khi tải xuống hoàn tất',
+ 'auto-purge-record': 'Tự động lọc hồ sơ tải xuống khi thoát khỏi ứng dụng',
+ 'ui': 'UI',
+ 'appearance': 'Giao diện',
+ 'theme-auto': 'Tự động',
+ 'theme-light': 'Nền sáng',
+ 'theme-dark': 'Nền tối',
+ 'run-mode': 'Chạy như',
+ 'auto-hide-window': 'Tự động ẩn cửa sổ',
+ 'run-mode-standard': 'Ứng dụng Tiêu chuẩn',
+ 'run-mode-menu-bar': 'Ứng dụng trên thanh Menu',
+ 'language': 'Ngôn ngữ',
+ 'change-language': 'Thay đổi Ngôn ngữ',
+ 'hide-app-menu': 'Ẩn ứng dụng trên thanh Menu (Chỉ có trên Windows & Linux)',
+ 'proxy': 'Proxy',
+ 'use-proxy': 'Bật Proxy',
+ 'no-proxy-input-tips': 'Bỏ qua cài đặt proxy cho các Máy chủ và Miền này, mỗi thông tin trên một dòng',
+ 'proxy-tips': 'Xem Proxy thủ công',
+ 'bt-tracker': 'Máy chủ theo dõi',
+ 'bt-tracker-input-tips': 'Máy chủ theo dõi, mỗi thông tin trên một dòng',
+ 'bt-tracker-tips': 'Gợi ý: ',
+ 'sync-tracker-tips': 'Đồng bộ',
+ 'auto-sync-tracker': 'Cập nhật danh sách theo dõi tự động mỗi ngày',
+ 'port': 'Cổng giao tiếp cuối',
+ 'bt-port': 'Cổng giao tiếp BT cuối',
+ 'dht-port': 'Cổng giao tiếp DHT cuối',
+ 'security': 'Bảo mật',
+ 'rpc-secret': 'RPC bí mật',
+ 'rpc-secret-tips': 'Xem RPC bí mật thủ công',
+ 'developer': 'Lập trình viên',
+ 'mock-user-agent': 'Mock User-Agent',
+ 'app-log-path': 'Đường dẫn nhật ký ứng dụng',
+ 'download-session-path': 'Đường dẫn phiên tải về',
+ 'factory-reset': 'Khôi phục cài đặt gốc',
+ 'factory-reset-confirm': 'Bạn có chắc chắn muốn quay lại cài đặt gốc?',
+ 'lab-warning': '⚠️ Kích hoạt các tính năng trong phòng thí nghiệm có thể dẫn đến sự cố ứng dụng hoặc mất dữ liệu, bạn hãy cân nhắc cho quyết định của mình!',
+ 'download-protocol': 'Các giao thức',
+ 'protocols-default-client': 'Đặt làm máy khách mặc định cho các giao thức sau',
+ 'protocols-magnet': 'Magnet [ magnet:// ]',
+ 'protocols-thunder': 'Thunder [ thunder:// ]',
+ 'browser-extensions': 'Tiện ích mở rộng',
+ 'baidu-exporter': 'BaiduExporter',
+ 'browser-extensions-tips': 'Được cung cấp bởi Cộng đồng, ',
+ 'baidu-exporter-help': 'Nhấn vào đây để sử dụng',
+ 'auto-update': 'Tự động cập nhật',
+ 'auto-check-update': 'Tự động kiểm tra cập nhật',
+ 'last-check-update-time': 'Kiểm tra cập nhật lần cuối'
+}
diff --git a/src/shared/locales/vi/subnav.js b/src/shared/locales/vi/subnav.js
new file mode 100644
index 00000000..97a848f8
--- /dev/null
+++ b/src/shared/locales/vi/subnav.js
@@ -0,0 +1,4 @@
+export default {
+ 'task-list': 'Tác vụ',
+ 'preferences': 'Cài đặt'
+}
diff --git a/src/shared/locales/vi/task.js b/src/shared/locales/vi/task.js
new file mode 100644
index 00000000..105c5670
--- /dev/null
+++ b/src/shared/locales/vi/task.js
@@ -0,0 +1,93 @@
+export default {
+ 'active': 'Đang tải về',
+ 'waiting': 'Đang đợi',
+ 'stopped': 'Ngừng',
+ 'new-task': 'Tác vụ mới',
+ 'new-bt-task': 'Tác vụ BT mới',
+ 'open-file': 'Mở tập tin Torrent...',
+ 'uri-task': 'URL',
+ 'torrent-task': 'Torrent',
+ 'uri-task-tips': 'Mỗi URL Tác vụ nên nằm ở một dòng (hỗ trợ magnet)',
+ 'thunder-link-tips': 'Mẹo: Liên kết Thunder có thể không tải được sau khi giải mã',
+ 'new-task-uris-required': 'Vui lòng nhập ít nhất một url tài nguyên hợp lệ',
+ 'new-task-torrent-required': 'Vui lòng chọn tập tin Torrent',
+ 'file-name': 'Tên tập tin',
+ 'file-extension': 'Loại tập tin',
+ 'file-size': 'Kích thước tập tin',
+ 'selected-files-sum': 'Đã lựa chọn: {{selectedFilesCount}} tập tin, tổng kích thước {{selectedFilesTotalSize}}',
+ 'task-name': 'Tên Tác vụ',
+ 'task-out': 'Đổi tên',
+ 'task-out-tips': 'Không bắt buộc',
+ 'task-split': 'Chia nhỏ',
+ 'task-dir': 'Lưu đến',
+ 'pause-task': 'Tạm dừng Tác vụ',
+ 'task-ua': 'UA',
+ 'task-user-agent': 'User-Agent',
+ 'task-referer': 'Referer',
+ 'task-cookie': 'Cookie',
+ 'task-proxy': 'Proxy',
+ 'navigate-to-downloading': 'Điều hướng tải xuống',
+ 'show-advanced-options': 'Lựa chọn Nâng cao',
+ 'copyright-warning': 'Cảnh báo Bản quyền',
+ 'copyright-warning-message': 'Tập tin bạn muốn tải xuống có thể là âm thanh hoặc video có bản quyền, vui lòng đảm bảo rằng bạn có quyền truy cập vào nó.',
+ 'copyright-yes': 'Đúng, Tôi được cấp phép',
+ 'copyright-no': 'Không, tôi không được cấp phép',
+ 'copyright-error-message': 'Không thể thêm Tác vụ vì vấn đề bản quyền',
+ 'pause-task-success': 'Dừng Tác vụ thành công "{{taskName}}"',
+ 'pause-task-fail': 'Dừng Tác vụ thất bại "{{taskName}}"',
+ 'resume-task': 'Tiếp tục Tác vụ',
+ 'resume-task-success': 'Tác vụ được tải lại thành công "{{taskName}}"',
+ 'resume-task-fail': 'Tác vụ không thể tải lại "{{taskName}}"',
+ 'delete-task': 'Xóa Tác vụ',
+ 'delete-selected-tasks': 'Xóa những Tác vụ được chọn',
+ 'delete-task-confirm': 'Bạn có chắc chắn muốn xóa Tác vụ tải xuống "{{taskName}}"?',
+ 'batch-delete-task-confirm': 'Bạn có chắc chắn muốn xóa {{Count}} Tác vụ tải xuống hàng loạt không?',
+ 'delete-task-label': 'Xóa kèm tập tin',
+ 'delete-task-success': 'Xóa Tác vụ thành công "{{taskName}}"',
+ 'delete-task-fail': 'Xóa Tác vụ thất bại "{{taskName}}"',
+ 'remove-task-file-fail': 'Không thể xóa (các) tập tin trong Tác vụ, vui lòng xóa chúng theo cách thủ công',
+ 'remove-task-config-file-fail': 'Không thể xóa tập tin cấu hình Tác vụ, vui lòng xóa chúng thủ công',
+ 'move-task-up': 'Di chuyển Tác vụ lên',
+ 'move-task-down': 'Di chuyển Tác vụ xuống',
+ 'pause-all-task': 'Dừng Tất cả Tác vụ',
+ 'pause-all-task-success': 'Dừng Tất cả Tác vụ Thành công',
+ 'pause-all-task-fail': 'Dừng Tất cả Tác vụ Thất bại',
+ 'resume-all-task': 'Tải lại Tất cả Tác vụ',
+ 'resume-all-task-success': 'Tải lại Tất cả Tác vụ Thành công',
+ 'resume-all-task-fail': 'Tải lại Tất cả Tác vụ Thất bại',
+ 'select-all-task': 'Chọn Tất cả Tác vụ',
+ 'clear-recent-tasks': 'Xóa các Tác vụ gần đây',
+ 'purge-record': 'Làm mới Bản ghi Tác vụ',
+ 'purge-record-success': 'Làm mới Bản ghi Tác vụ Thành công',
+ 'purge-record-fail': 'Làm mới Bản ghi Tác vụ Thất bại',
+ 'batch-delete-task-success': 'Xóa các Tác vụ Hàng loạt Thành công',
+ 'batch-delete-task-fail': 'Xóa các Tác vụ Hàng loạt Thất bại',
+ 'refresh-list': 'Làm mới Danh sách Tác vụ',
+ 'no-task': 'Hiện tại không có Tác vụ',
+ 'copy-link': 'Sao chép Đường dẫn',
+ 'copy-link-success': 'Sao chép Đường dẫn Thành công',
+ 'remove-record': 'Xóa Bản ghi Tác vụ',
+ 'remove-record-confirm': 'Bạn có chắc chắn muốn xóa bản ghi tải xuống cho "{{taskName}}" không?',
+ 'remove-record-label': 'Xóa kèm Tập tin',
+ 'remove-record-success': 'Xoá thành công bản ghi tác vụ cho "{{taskName}}"',
+ 'remove-record-fail': 'Xoá thất bại bản ghi tác vụ cho "{{taskName}}"',
+ 'show-in-folder': 'Hiển thị Tác vụ trong Thư mục',
+ 'file-not-exist': 'Tập tin mục tiêu không tồn tại hoặc đã bị xóa',
+ 'file-path-error': 'Lỗi đường dẫn tệp',
+ 'opening-task-message': 'Đang mở "{{taskName}}" ...',
+ 'get-task-name': 'Lấy tên Tác vụ....',
+ 'remaining-prefix': 'Còn lại',
+ 'select-torrent': 'Kéo thả tập tin torrent vào đây hoặc nhấp để chọn',
+ 'task-info-dialog-title': '{{title}} Chi tiết',
+ 'download-start-message': 'Bắt đầu tải xuống {{taskName}}',
+ 'download-pause-message': 'Tạm dừng tải xuống {{taskName}}',
+ 'download-stop-message': 'Đã dừng tải xuống {{taskName}}',
+ 'download-error-message': 'Xảy ra lỗi khi tải xuống {{taskName}}',
+ 'download-complete-message': 'Đã hoàn tất tải xuống {{taskName}}',
+ 'download-complete-notify': 'Tải xuống hoàn tất',
+ 'bt-download-complete-message': 'Đã hoàn tất tải xuống {{taskName}}, đang seed',
+ 'bt-download-complete-notify': 'BT đã hoàn tất tải xuống, đang seed...',
+ 'bt-download-complete-tips': 'Mẹo: Bạn có thể dừng một tác vụ để kết thúc việc seed',
+ 'download-fail-message': 'Không thể tải xuống {{taskName}}',
+ 'download-fail-notify': 'Tải xuống thất bại'
+}
diff --git a/src/shared/locales/vi/window.js b/src/shared/locales/vi/window.js
new file mode 100644
index 00000000..0e28cb26
--- /dev/null
+++ b/src/shared/locales/vi/window.js
@@ -0,0 +1,8 @@
+export default {
+ 'reload': 'Tải lại',
+ 'close': 'Đóng',
+ 'minimize': 'Thu nhỏ',
+ 'zoom': 'Zoom',
+ 'toggle-fullscreen': 'Mở toàn màn hình',
+ 'front': 'Đưa tất cả lên phía trước'
+}