From 9cd7a376464fde0cf767b6e26e7c4f9b63a7d5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ho=C3=A0ng=20Rio?= Date: Mon, 5 Nov 2018 11:26:32 +0700 Subject: [PATCH] Update missing trasnlate --- client/src/__locales/vi.js | 3 +++ client/src/components/Logs/index.js | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/__locales/vi.js b/client/src/__locales/vi.js index 28bb429c..7765aa80 100644 --- a/client/src/__locales/vi.js +++ b/client/src/__locales/vi.js @@ -112,6 +112,9 @@ export default { Page: 'Trang', of: 'của', rows: 'hàng', + 'Updated the custom filtering rules': 'Đã cập nhật quy tắc lọc tuỳ chỉnh', + 'Rule removed from the custom filtering rules': 'Quy tắc đã được xoá khỏi quy tắc lọc tuỳ chỉnh', + 'Rule added to the custom filtering rules': 'Quy tắc đã được thêm vào quy tắc lọc tuỳ chỉnh', // Popover Source: 'Nguồn', 'Found in the known domains database.': 'Tìm thấy trong cơ sở dữ liệu tên miền', diff --git a/client/src/components/Logs/index.js b/client/src/components/Logs/index.js index 7db5911f..9d7705e2 100644 --- a/client/src/components/Logs/index.js +++ b/client/src/components/Logs/index.js @@ -46,6 +46,7 @@ class Logs extends Component { toggleBlocking = (type, domain) => { const { userRules } = this.props.filtering; + const { t } = this.props; const lineEnding = !endsWith(userRules, '\n') ? '\n' : ''; const baseRule = `||${domain}^$important`; const baseUnblocking = `@@${baseRule}`; @@ -56,10 +57,10 @@ class Logs extends Component { if (userRules.match(preparedBlockingRule)) { this.props.setRules(userRules.replace(`${blockingRule}`, '')); - this.props.addSuccessToast(`Rule removed from the custom filtering rules: ${blockingRule}`); + this.props.addSuccessToast(`${t('Rule removed from the custom filtering rules')}: ${blockingRule}`); } else if (!userRules.match(preparedUnblockingRule)) { this.props.setRules(`${userRules}${lineEnding}${unblockingRule}\n`); - this.props.addSuccessToast(`Rule added to the custom filtering rules: ${unblockingRule}`); + this.props.addSuccessToast(`${t('Rule added to the custom filtering rules')}: ${unblockingRule}`); } this.props.getFilteringStatus();