From 474ceab4b9e33dcda4fa62ff559bac9119a04193 Mon Sep 17 00:00:00 2001 From: Glenn Carremans Date: Mon, 11 Sep 2017 10:50:06 +0200 Subject: [PATCH 1/2] - Added English translation and made this default - Added Dutch translation --- lib/src/main/res/values-nl/strings.xml | 28 ++++++++++++++++++++ lib/src/main/res/values-zh/strings.xml | 28 ++++++++++++++++++++ lib/src/main/res/values/strings.xml | 36 +++++++++++++------------- 3 files changed, 74 insertions(+), 18 deletions(-) create mode 100644 lib/src/main/res/values-nl/strings.xml create mode 100644 lib/src/main/res/values-zh/strings.xml diff --git a/lib/src/main/res/values-nl/strings.xml b/lib/src/main/res/values-nl/strings.xml new file mode 100644 index 0000000..fd4e905 --- /dev/null +++ b/lib/src/main/res/values-nl/strings.xml @@ -0,0 +1,28 @@ + + + Het huidige netwerk is niet beschikbaar + Is momenteel de nieuwste versie + + + Download geannuleerd + Bijwerken op de achtergrond + Download is compleet + Download mislukt + Downloaden(%1$s/%2$s) + + + Update de inhoud: + Versienummer: + Update + Annuleren + Update + + + Bestand downloaden + Wordt gedownload... + + + Downloaden + Stop met downloaden + Achtergrond download + \ No newline at end of file diff --git a/lib/src/main/res/values-zh/strings.xml b/lib/src/main/res/values-zh/strings.xml new file mode 100644 index 0000000..c0e2d55 --- /dev/null +++ b/lib/src/main/res/values-zh/strings.xml @@ -0,0 +1,28 @@ + + + 当前网络不可用 + 当前已是最新版本 + + + 已取消更新 + 正在后台进行更新 + 下载完成 + 下载失败 + 正在下载(%1$s/%2$s) + + + 更新内容: + 版本号: + 升级 + 取消 + 更新提示 + + + 文件下载 + 正在下载中... + + + 正在下载 + 停止下载 + 后台下载 + diff --git a/lib/src/main/res/values/strings.xml b/lib/src/main/res/values/strings.xml index eee5b25..7de3340 100644 --- a/lib/src/main/res/values/strings.xml +++ b/lib/src/main/res/values/strings.xml @@ -1,28 +1,28 @@ + - 当前网络不可用 - 当前已是最新版本 + The current network is not available + Is currently the latest version - 已取消更新 - 正在后台进行更新 - 下载完成 - 下载失败 - 正在下载(%1$s/%2$s) + Download canceled + Is updating in the background + Download completed + Download failed + Downloading(%1$s/%2$s) - 更新内容: - 版本号: - 升级 - 取消 - 更新提示 + Update content: + Version number: + Update + Cancel + Update - 文件下载 - 正在下载中... + Download document + Is being downloaded... - 正在下载 - 停止下载 - 后台下载 - + Downloading + Stop downloading + Background download From 6a5e56b45198b886a6940b8377358167317ce201 Mon Sep 17 00:00:00 2001 From: Glenn Carremans Date: Wed, 13 Sep 2017 14:27:30 +0200 Subject: [PATCH 2/2] Improved for landscape mode --- lib/src/main/res/layout/activity_update.xml | 8 +- lib/src/main/res/layout/fragment_download.xml | 33 +++--- lib/src/main/res/layout/fragment_update.xml | 103 +++++++++--------- lib/src/main/res/values-nl/strings.xml | 8 +- lib/src/main/res/values-zh/strings.xml | 6 +- lib/src/main/res/values/strings.xml | 8 +- 6 files changed, 84 insertions(+), 82 deletions(-) diff --git a/lib/src/main/res/layout/activity_update.xml b/lib/src/main/res/layout/activity_update.xml index f6df1ce..e5656a9 100644 --- a/lib/src/main/res/layout/activity_update.xml +++ b/lib/src/main/res/layout/activity_update.xml @@ -1,11 +1,11 @@ + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + android:layout_height="wrap_content" /> \ No newline at end of file diff --git a/lib/src/main/res/layout/fragment_download.xml b/lib/src/main/res/layout/fragment_download.xml index 7c30329..9aa7e97 100644 --- a/lib/src/main/res/layout/fragment_download.xml +++ b/lib/src/main/res/layout/fragment_download.xml @@ -1,33 +1,33 @@ + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="wrap_content" + tools:context="com.kcode.lib.dialog.UpdateActivity"> + + android:orientation="vertical"> + android:textSize="18sp" /> + android:layout_margin="12dp" /> + android:textSize="16sp" />