Merge branch 'ZaneYork-master'

Allows translations to the installer app.
This commit is contained in:
Chris 2020-02-10 00:15:24 -05:00
commit b4c30d944d
5 changed files with 67 additions and 4 deletions

View File

@ -89,9 +89,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

View File

@ -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"

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">SMAPI Android Installer</string>
<string name="cant_find">Could not find the Stardew Valley Apk. Is the game installed?</string>
<string name="modify_apk">Modifying the Apk…this might take some time. Please keep the screen on.</string>
<string name="update_apk">Updating the Apk…this might take some time. Please keep the screen on.</string>
<string name="finished">Finished!</string>
<string name="install">Error in opening file!</string>
<string name="permission">Permission Granted</string>
<string name="notes">Notes: Game version 1.4.4.122 is required.</string>
<string name="base_game_required">The base game is required when updating/installing.</string>
<string name="installing_pufferchicks">Installing pufferchicks...</string>
<string name="install_milk_cows">Milking the cows...</string>
<string name="install_ancient_fruit">Planting ancient fruit...</string>
<string name="install_abigail_rocks">Feeding Abigail rocks...</string>
<string name="install_feeding_juminos">Jumping with juminos...</string>
<string name="install_squid_ocean">Grabbing squids from the ocean...</string>
<string name="install_dino_egg">Digging for dino eggs...</string>
<string name="install_rock_crab">That rock was a crab!?...</string>
<string name="stardew_14_warning">"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.</string>
<string name="github_message">The GitHub button leads to the latest release download page.</string>
<string name="mod_compat_message">The Compat button leads to SMAPI\'s Mod Compatibility page.</string>
<string name="nexus_message">The Nexus button leads to Stardew Valley\'s Nexus page.</string>
<string name="blank"> </string>
<string name="install_button_text">Install</string>
<string name="install_tab_text">Install</string>
<string name="config_tab_text">Config</string>
<string name="links_tab_text">Links</string>
</resources>

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">SMAPI安装器</string>
<string name="cant_find">无法找到星露谷物语安装包,是否已安装原版游戏本体?</string>
<string name="modify_apk">正在修改安装包…这需要花费一些时间,请保持前台亮屏</string>
<string name="update_apk">正在更新安装包…这需要花费一些时间,请保持前台亮屏</string>
<string name="finished">已完成!</string>
<string name="install">打开文件失败!</string>
<string name="permission">权限已获取</string>
<string name="notes">注意需要1.4.4.122版本的游戏本体</string>
<string name="base_game_required">更新或安装期间需要安装游戏本体</string>
<string name="installing_pufferchicks">正在安装河豚...</string>
<string name="install_milk_cows">正在挤牛奶...</string>
<string name="install_ancient_fruit">正在种植上古水果...</string>
<string name="install_abigail_rocks">正在送阿比快乐石..</string>
<string name="install_feeding_juminos">正在和祝尼魔跳舞...</string>
<string name="install_squid_ocean">正在下海挖大鱿鱼...</string>
<string name="install_dino_egg">正在挖恐龙蛋...</string>
<string name="install_rock_crab">那石头是个岩石蟹!?...</string>
<string name="stardew_14_warning">"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.</string>
<string name="github_message">GitHub按钮会跳转到最新的发行版下载网页</string>
<string name="mod_compat_message">Compat按钮会跳转到Mod兼容性网页</string>
<string name="nexus_message">Nexus按钮会跳转到Nexus的星露谷物语分区网页.</string>
<string name="blank"> </string>
<string name="install_button_text">安装</string>
<string name="install_tab_text">安装</string>
<string name="config_tab_text">配置</string>
<string name="links_tab_text">链接</string>
</resources>

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">SMAPI Android Installer</string>
<string name="cant_find">Could not find the Stardew Valley Apk. Is the game installed?</string>
@ -21,4 +22,8 @@
<string name="mod_compat_message">The Compat button leads to SMAPI\'s Mod Compatibility page.</string>
<string name="nexus_message">The Nexus button leads to Stardew Valley\'s Nexus page.</string>
<string name="blank"> </string>
<string name="install_button_text">Install</string>
<string name="install_tab_text">Install</string>
<string name="config_tab_text">Config</string>
<string name="links_tab_text">Links</string>
</resources>