From 0a7f8f489625d90b8969f112d80059d6757d5e8d Mon Sep 17 00:00:00 2001
From: pacien
Date: Thu, 9 Aug 2018 00:09:39 +0200
Subject: Refactor configuration activity
---
app/src/main/res/layout/configure_activity.xml | 53 +++++++++
...configure_tools_dialog_encrypt_decrypt_keys.xml | 51 +++++++++
.../configure_tools_dialog_network_generate.xml | 51 +++++++++
.../layout/configure_tools_dialog_network_join.xml | 78 +++++++++++++
.../main/res/layout/configure_tools_fragment.xml | 73 +++++++++++++
.../layout/configure_tools_path_info_fragment.xml | 74 +++++++++++++
.../res/layout/dialog_encrypt_decrypt_keys.xml | 51 ---------
.../main/res/layout/dialog_network_generate.xml | 51 ---------
app/src/main/res/layout/dialog_network_join.xml | 66 -----------
app/src/main/res/layout/page_configure.xml | 121 ---------------------
app/src/main/res/values-ja/strings.xml | 2 +-
app/src/main/res/values-nb-rNO/strings.xml | 2 +-
app/src/main/res/values-zh-rCN/strings.xml | 48 ++++----
app/src/main/res/values-zh-rHK/strings.xml | 48 ++++----
app/src/main/res/values-zh-rTW/strings.xml | 48 ++++----
app/src/main/res/values/strings.xml | 55 ++++++----
16 files changed, 485 insertions(+), 387 deletions(-)
create mode 100644 app/src/main/res/layout/configure_activity.xml
create mode 100644 app/src/main/res/layout/configure_tools_dialog_encrypt_decrypt_keys.xml
create mode 100644 app/src/main/res/layout/configure_tools_dialog_network_generate.xml
create mode 100644 app/src/main/res/layout/configure_tools_dialog_network_join.xml
create mode 100644 app/src/main/res/layout/configure_tools_fragment.xml
create mode 100644 app/src/main/res/layout/configure_tools_path_info_fragment.xml
delete mode 100644 app/src/main/res/layout/dialog_encrypt_decrypt_keys.xml
delete mode 100644 app/src/main/res/layout/dialog_network_generate.xml
delete mode 100644 app/src/main/res/layout/dialog_network_join.xml
delete mode 100644 app/src/main/res/layout/page_configure.xml
(limited to 'app/src/main/res')
diff --git a/app/src/main/res/layout/configure_activity.xml b/app/src/main/res/layout/configure_activity.xml
new file mode 100644
index 0000000..6097384
--- /dev/null
+++ b/app/src/main/res/layout/configure_activity.xml
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/configure_tools_dialog_encrypt_decrypt_keys.xml b/app/src/main/res/layout/configure_tools_dialog_encrypt_decrypt_keys.xml
new file mode 100644
index 0000000..1e8e64a
--- /dev/null
+++ b/app/src/main/res/layout/configure_tools_dialog_encrypt_decrypt_keys.xml
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/configure_tools_dialog_network_generate.xml b/app/src/main/res/layout/configure_tools_dialog_network_generate.xml
new file mode 100644
index 0000000..614cc16
--- /dev/null
+++ b/app/src/main/res/layout/configure_tools_dialog_network_generate.xml
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/configure_tools_dialog_network_join.xml b/app/src/main/res/layout/configure_tools_dialog_network_join.xml
new file mode 100644
index 0000000..9171284
--- /dev/null
+++ b/app/src/main/res/layout/configure_tools_dialog_network_join.xml
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/configure_tools_fragment.xml b/app/src/main/res/layout/configure_tools_fragment.xml
new file mode 100644
index 0000000..bb67b45
--- /dev/null
+++ b/app/src/main/res/layout/configure_tools_fragment.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/configure_tools_path_info_fragment.xml b/app/src/main/res/layout/configure_tools_path_info_fragment.xml
new file mode 100644
index 0000000..376fa3d
--- /dev/null
+++ b/app/src/main/res/layout/configure_tools_path_info_fragment.xml
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/dialog_encrypt_decrypt_keys.xml b/app/src/main/res/layout/dialog_encrypt_decrypt_keys.xml
deleted file mode 100644
index 47433e4..0000000
--- a/app/src/main/res/layout/dialog_encrypt_decrypt_keys.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/layout/dialog_network_generate.xml b/app/src/main/res/layout/dialog_network_generate.xml
deleted file mode 100644
index 5e3d42c..0000000
--- a/app/src/main/res/layout/dialog_network_generate.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/layout/dialog_network_join.xml b/app/src/main/res/layout/dialog_network_join.xml
deleted file mode 100644
index 65d772d..0000000
--- a/app/src/main/res/layout/dialog_network_join.xml
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/layout/page_configure.xml b/app/src/main/res/layout/page_configure.xml
deleted file mode 100644
index c86ff76..0000000
--- a/app/src/main/res/layout/page_configure.xml
+++ /dev/null
@@ -1,121 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml
index 3e5b26a..4d6cc80 100644
--- a/app/src/main/res/values-ja/strings.xml
+++ b/app/src/main/res/values-ja/strings.xml
@@ -32,7 +32,7 @@
このアプリについて
- Tinc ネットワーク名
+ Tinc ネットワーク名
ネットワークに接続
VPN 権限のリクエスト
diff --git a/app/src/main/res/values-nb-rNO/strings.xml b/app/src/main/res/values-nb-rNO/strings.xml
index 7a3bb01..4952beb 100644
--- a/app/src/main/res/values-nb-rNO/strings.xml
+++ b/app/src/main/res/values-nb-rNO/strings.xml
@@ -32,7 +32,7 @@
Om
- Tinc-nettverksnavn
+ Tinc-nettverksnavn
Koble til nettverk
Forespør VPN-tilganger
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index d684517..35e39a2 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -35,22 +35,22 @@
配置
断开连接
- Tinc 网络名称
- 此节点名称
- 邀请 URL
- 当前密码\n(没有则为空)
- 新密码\n(空白以解密)
- 密码(可选)
+ Tinc 网络名称
+ 此节点名称
+ 邀请 URL
+ 当前密码\n(没有则为空)
+ 新密码\n(空白以解密)
+ 密码(可选)
密码
连接到网络
请求 VPN 权限
- 路径信息
+ 路径信息
节点信息
- 工具
- 配置目录
- 日志目录
- Tinc 二进制文件
+ 工具
+ 配置目录
+ 日志目录
+ Tinc 二进制文件
网络信息
网络名称
IP 地址
@@ -62,35 +62,35 @@
允许旁路
节点
错误
- 新建网络
- 加入网络
+ 新建网络
+ 加入网络
无法启动 tinc
- 私钥加密
+ 私钥加密
解锁 tinc 私钥
关闭
取消
项目网站
- 生成节点配置和密钥
- 通过邀请 URL 加入网络
- 创建
- 加入
+ 生成节点配置和密钥
+ 通过邀请 URL 加入网络
+ 创建
+ 加入
打开手册
- 扫描 QR 码
+ 扫描 QR 码
安装
解锁
- 应用
- 加密或解密私钥
+ 应用
+ 加密或解密私钥
未找到网络配置。
- 生成节点配置…
- 加入网络…
+ 生成节点配置…
+ 加入网络…
网络配置写入成功。
没有提供网络名称。
没有找到网络“%1$s”的配置。
在“%1$s”找不到网络配置文件。
network.conf 中的网络配置无效:\n%1$s
- 加密/解密私钥
+ 加密/解密私钥
无法解密私钥:\n%1$s
无
diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml
index 2636aa2..c56e1ab 100644
--- a/app/src/main/res/values-zh-rHK/strings.xml
+++ b/app/src/main/res/values-zh-rHK/strings.xml
@@ -35,22 +35,22 @@
配置
斷開連接
- Tinc 網絡名稱
- 此節點名稱
- 邀請 URL
- 當前密碼\n(沒有則為空)
- 新密碼\n(空白以解密)
- 密碼(可選)
+ Tinc 網絡名稱
+ 此節點名稱
+ 邀請 URL
+ 當前密碼\n(沒有則為空)
+ 新密碼\n(空白以解密)
+ 密碼(可選)
密碼
連接到網絡
請求 VPN 權限
- 路徑信息
+ 路徑信息
節點信息
- 工具
- 配置目錄
- 日誌目錄
- Tinc 二進制文件
+ 工具
+ 配置目錄
+ 日誌目錄
+ Tinc 二進制文件
網絡信息
網絡名稱
IP 地址
@@ -62,35 +62,35 @@
允許旁路
節點
錯誤
- 新建網絡
- 加入網絡
+ 新建網絡
+ 加入網絡
無法啟動 tinc
- 私鑰加密
+ 私鑰加密
解鎖 tinc 私鑰
關閉
取消
項目網站
- 生成節點配置和密鑰
- 通過邀請 URL 加入網絡
- 創建
- 加入
+ 生成節點配置和密鑰
+ 通過邀請 URL 加入網絡
+ 創建
+ 加入
打開手冊
- 掃描 QR 碼
+ 掃描 QR 碼
安裝
解鎖
- 應用
- 加密或解密私鑰
+ 應用
+ 加密或解密私鑰
未找到網絡配置。
- 生成節點配置…
- 加入網絡…
+ 生成節點配置…
+ 加入網絡…
網絡配置寫入成功。
沒有提供網絡名稱。
沒有找到網絡“%1$s”的配置。
在“%1$s”找不到網絡配置文件。
network.conf 中的網絡配置無效:\n%1$s
- 加密/解密私鑰
+ 加密/解密私鑰
無法解密私鑰:\n%1$s
無
diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml
index 297e551..b110498 100644
--- a/app/src/main/res/values-zh-rTW/strings.xml
+++ b/app/src/main/res/values-zh-rTW/strings.xml
@@ -35,22 +35,22 @@
配置
斷開連線
- Tinc 網路名稱
- 此節點名稱
- 邀請 URL
- 當前密碼\n(沒有則為空)
- 新密碼\n(空白以解密)
- 密碼(可選)
+ Tinc 網路名稱
+ 此節點名稱
+ 邀請 URL
+ 當前密碼\n(沒有則為空)
+ 新密碼\n(空白以解密)
+ 密碼(可選)
密碼
連線到網路
請求 VPN 許可權
- 路徑資訊
+ 路徑資訊
節點資訊
- 工具
- 配置目錄
- 日誌目錄
- Tinc 二進位制檔案
+ 工具
+ 配置目錄
+ 日誌目錄
+ Tinc 二進位制檔案
網路資訊
網路名稱
IP 地址
@@ -62,35 +62,35 @@
允許旁路
節點
錯誤
- 新建網路
- 加入網路
+ 新建網路
+ 加入網路
無法啟動 tinc
- 私鑰加密
+ 私鑰加密
解鎖 tinc 私鑰
關閉
取消
專案網站
- 生成節點配置和金鑰
- 通過邀請 URL 加入網路
- 建立
- 加入
+ 生成節點配置和金鑰
+ 通過邀請 URL 加入網路
+ 建立
+ 加入
開啟手冊
- 掃描 QR 碼
+ 掃描 QR 碼
安裝
解鎖
- 應用
- 加密或解密私鑰
+ 應用
+ 加密或解密私鑰
未找到網路配置。
- 生成節點配置…
- 加入網路…
+ 生成節點配置…
+ 加入網路…
網路配置寫入成功。
沒有提供網路名稱。
沒有找到網路“%1$s”的配置。
在“%1$s”找不到網路配置檔案。
network.conf 中的網路配置無效:\n%1$s
- 加密/解密私鑰
+ 加密/解密私鑰
無法解密私鑰:\n%1$s
無
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 6899082..fc689fd 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -41,22 +41,11 @@
Toggle logging
Share log
- Tinc network name
- Name of this node
- Invitation URL
- Current passphrase\n(leave empty if none)
- New passphrase\n(leave empty to decrypt)
- Passphrase (optional)
Passphrase
Connect to network
Request VPN permissions
- Path info
Node info
- Tools
- Configuration directory
- Log directory
- Tinc binary
Network info
Network name
IP addresses
@@ -68,40 +57,28 @@
Allow bypass
Nodes
Error
- New network
- Join network
Unable to start tinc
- Private keys encryption
Unlock tinc private keys
App crash
Close
Cancel
Project website
- Generate node configuration and keys
- Join network via invitation URL
- Create
- Join
Open manual
- Scan QR code
Install
Unlock
- Apply
- Encrypt or decrypt private keys
+
Dismiss
Open web page
Send e-mail
Send report
No network configuration has been found.
- Generating node configuration…
- Joining network…
Network configuration successfully written.
No network name has been provided.
No configuration has been found for network \"%1$s\".
Network configuration file not found at \"%1$s\".
Invalid network configuration in network.conf:\n%1$s
- Encrypting/decrypting private keys
Could not decrypt private keys:\n%1$s
Storage directory is unavailable.
Starting VPN…
@@ -123,4 +100,34 @@
none
yes
no
+
+
+ Path info
+ Configuration directory
+ Log directory
+ Tinc binary
+
+ Tools
+ Generate node configuration and keys
+ Join network via invitation URL
+ Encrypt or decrypt private keys
+
+ New network
+ Tinc network name
+ Name of this node
+ Passphrase (optional)
+ Create
+ Generating node configuration…
+
+ Join network
+ Invitation URL
+ Scan QR code
+ Join
+ Joining network…
+
+ Private keys encryption
+ Current passphrase\n(leave empty if none)
+ New passphrase\n(leave empty to decrypt)
+ Apply
+ Encrypting/decrypting private keys
--
cgit v1.2.3