From b6419517594c4ee5d533af11b0b580572924a7df Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Fri, 10 Mar 2023 20:27:11 +0100 Subject: [PATCH] Init + Translate #40 --- web/html/xui/client_bulk_modal.html | 18 ++++++++++++------ web/translation/translate.en_US.toml | 5 +++++ web/translation/translate.fa_IR.toml | 5 +++++ web/translation/translate.zh_Hans.toml | 5 +++++ 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html index ae400a11..dfa845d7 100644 --- a/web/html/xui/client_bulk_modal.html +++ b/web/html/xui/client_bulk_modal.html @@ -3,7 +3,7 @@ :confirm-loading="clientsBulkModal.confirmLoading" :closable="true" :mask-closable="false" :ok-text="clientsBulkModal.okText" cancel-text='{{ i18n "close" }}'> - + Random Random_Prefix @@ -13,20 +13,20 @@
- First + {{ i18n "pages.client.first" }} - Last + {{ i18n "pages.client.last" }} - Prefix + {{ i18n "pages.client.prefix" }} tg_uname - Postfix + {{ i18n "pages.client.postfix" }} @@ -76,7 +76,7 @@ totalGB: 0, expiryTime: '', emailMethod: 0, - firstNum: 0, + firstNum: 1, lastNum: 1, emailPrefix: "", emailPostfix: "", @@ -109,6 +109,12 @@ this.quantity = 1; this.totalGB = 0; this.expiryTime = ''; + this.emailMethod= 0; + this.firstNum= 1; + this.lastNum= 1; + this.emailPrefix= ""; + this.emailPostfix= ""; + this.dbInbound = new DBInbound(dbInbound); this.inbound = dbInbound.toInbound(); this.clients = this.getClients(this.inbound.protocol, this.inbound.settings); diff --git a/web/translation/translate.en_US.toml b/web/translation/translate.en_US.toml index ecf0532b..4c200a22 100644 --- a/web/translation/translate.en_US.toml +++ b/web/translation/translate.en_US.toml @@ -135,6 +135,11 @@ "submitEdit" = "Save changes" "clientCount" = "Number of clients" "bulk" = "Add bulk" +"method" = "Method" +"first" = "First" +"last" = "Last" +"prefix" = "Prefix" +"postfix" = "postfix" [pages.inbounds.toasts] "obtain" = "Obtain" diff --git a/web/translation/translate.fa_IR.toml b/web/translation/translate.fa_IR.toml index 9c0e092c..6f992cc0 100644 --- a/web/translation/translate.fa_IR.toml +++ b/web/translation/translate.fa_IR.toml @@ -135,6 +135,11 @@ "submitEdit" = "ذخیره تغییرات" "clientCount" = "تعداد کاربران" "bulk" = "انبوه سازی" +"method" = "روش" +"first" = "از" +"last" = "تا" +"prefix" = "پیشوند" +"postfix" = "پسوند" [pages.inbounds.toasts] "obtain" = "Obtain" diff --git a/web/translation/translate.zh_Hans.toml b/web/translation/translate.zh_Hans.toml index a7710b10..8a7029bc 100644 --- a/web/translation/translate.zh_Hans.toml +++ b/web/translation/translate.zh_Hans.toml @@ -135,6 +135,11 @@ "submitEdit" = "保存修改" "clientCount" = "客户数量" "bulk" = "批量创建" +"method" = "方法" +"first" = "第一" +"last" = "最后" +"prefix" = "前缀" +"postfix" = "后缀" [pages.inbounds.toasts] "obtain" = "获取"