From cedea2a00fe5242a02737c60b10fa211fdc74c1f Mon Sep 17 00:00:00 2001
From: yangzhi <@4F!xZpJwly&KbWq>
Date: Fri, 7 Feb 2020 10:37:48 +0800
Subject: [PATCH] Chinese simplified localization
---
.../smapiandroidinstaller/MainActivity.java | 6 ++--
app/src/main/res/layout/activity_main.xml | 2 +-
app/src/main/res/values-en/strings.xml | 29 +++++++++++++++++++
app/src/main/res/values-zh/strings.xml | 29 +++++++++++++++++++
app/src/main/res/values/strings.xml | 5 ++++
5 files changed, 67 insertions(+), 4 deletions(-)
create mode 100644 app/src/main/res/values-en/strings.xml
create mode 100644 app/src/main/res/values-zh/strings.xml
diff --git a/app/src/main/java/com/MartyrPher/smapiandroidinstaller/MainActivity.java b/app/src/main/java/com/MartyrPher/smapiandroidinstaller/MainActivity.java
index 42beac1..7542b8c 100644
--- a/app/src/main/java/com/MartyrPher/smapiandroidinstaller/MainActivity.java
+++ b/app/src/main/java/com/MartyrPher/smapiandroidinstaller/MainActivity.java
@@ -91,9 +91,9 @@ public class MainActivity extends AppCompatActivity {
mTabAdapter = new TabAdapter(getSupportFragmentManager());
if (mTabAdapter.getCount() < 1 && mHasPermissions)
{
- mTabAdapter.addFragment(new InstallFragment(), "Install");
- mTabAdapter.addFragment(new ConfigEditorFragment(), "Configs");
- mTabAdapter.addFragment(new GitHubFragment(), "Links");
+ mTabAdapter.addFragment(new InstallFragment(), this.getString(R.string.install_button_text));
+ mTabAdapter.addFragment(new ConfigEditorFragment(), this.getString(R.string.config_tab_text));
+ mTabAdapter.addFragment(new GitHubFragment(), this.getString(R.string.links_tab_text));
}
//Setup the ViewPager adapter and TabLayout with ViewPager
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index fa67db3..ddea5fd 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -16,7 +16,7 @@
android:layout_marginStart="8dp"
android:layout_marginTop="32dp"
android:background="@drawable/button"
- android:text="Install"
+ android:text="@string/install_button_text"
android:textColor="@color/stardewText"
android:textSize="18sp"
android:textStyle="bold"
diff --git a/app/src/main/res/values-en/strings.xml b/app/src/main/res/values-en/strings.xml
new file mode 100644
index 0000000..9c5db98
--- /dev/null
+++ b/app/src/main/res/values-en/strings.xml
@@ -0,0 +1,29 @@
+
+
+ SMAPI Android Installer
+ Could not find the Stardew Valley Apk. Is the game installed?
+ Modifying the Apk…this might take some time. Please keep the screen on.
+ Updating the Apk…this might take some time. Please keep the screen on.
+ Finished!
+ Error in opening file!
+ Permission Granted
+ Notes: Game version 1.4.4.122 is required.
+ The base game is required when updating/installing.
+ Installing pufferchicks...
+ Milking the cows...
+ Planting ancient fruit...
+ Feeding Abigail rocks...
+ Jumping with juminos...
+ Grabbing squids from the ocean...
+ Digging for dino eggs...
+ That rock was a crab!?...
+ "WARNING: many mod updates are for Stardew Valley 1.4, which is not available on Android yet. Make sure to back up the previous mod version before attempting to install updates.
+ The GitHub button leads to the latest release download page.
+ The Compat button leads to SMAPI\'s Mod Compatibility page.
+ The Nexus button leads to Stardew Valley\'s Nexus page.
+
+ Install
+ Install
+ Config
+ Links
+
diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml
new file mode 100644
index 0000000..533a3ad
--- /dev/null
+++ b/app/src/main/res/values-zh/strings.xml
@@ -0,0 +1,29 @@
+
+
+ SMAPI安装器
+ 无法找到星露谷物语安装包,是否已安装原版游戏本体?
+ 正在修改安装包…这需要花费一些时间,请保持前台亮屏
+ 正在更新安装包…这需要花费一些时间,请保持前台亮屏
+ 已完成!
+ 打开文件失败!
+ 权限已获取
+ 注意:需要1.4.4.122版本的游戏本体
+ 更新或安装期间需要安装游戏本体
+ 正在安装河豚...
+ 正在挤牛奶...
+ 正在种植上古水果...
+ 正在送阿比快乐石..
+ 正在和祝尼魔跳舞...
+ 正在下海挖大鱿鱼...
+ 正在挖恐龙蛋...
+ 那石头是个岩石蟹!?...
+ "WARNING: many mod updates are for Stardew Valley 1.4, which is not available on Android yet. Make sure to back up the previous mod version before attempting to install updates.
+ GitHub按钮会跳转到最新的发行版下载网页
+ Compat按钮会跳转到Mod兼容性网页
+ Nexus按钮会跳转到Nexus的星露谷物语分区网页.
+
+ 安装
+ 安装
+ 配置
+ 链接
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 3fa8ffc..9c5db98 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,3 +1,4 @@
+
SMAPI Android Installer
Could not find the Stardew Valley Apk. Is the game installed?
@@ -21,4 +22,8 @@
The Compat button leads to SMAPI\'s Mod Compatibility page.
The Nexus button leads to Stardew Valley\'s Nexus page.
+ Install
+ Install
+ Config
+ Links