Skip to content

Commit

Permalink
add English UI text
Browse files Browse the repository at this point in the history
  • Loading branch information
chinosk6 committed Jun 11, 2024
1 parent 75dda05 commit ee9740b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
16 changes: 8 additions & 8 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
android:layout_height="48dp"
android:checked="@={config.textTest}"
android:onCheckedChanged="@{(view, value) -> listener.onTextTestChanged(value)}"
android:text="文本 hook 测试模式" />
android:text="@string/text_hook_test_mode" />
</TableRow>

<TableRow
Expand All @@ -93,7 +93,7 @@
android:layout_height="48dp"
android:checked="@={config.dumpText}"
android:onCheckedChanged="@{(view, value) -> listener.onDumpTextChanged(value)}"
android:text="导出文本" />
android:text="@string/export_text" />
</TableRow>

<TableRow
Expand All @@ -106,7 +106,7 @@
android:layout_height="48dp"
android:checked="@={config.forceExportResource}"
android:onCheckedChanged="@{(view, value) -> listener.onForceExportResourceChanged(value)}"
android:text="启动后强制导出资源" />
android:text="@string/force_export_resource" />
</TableRow>


Expand Down Expand Up @@ -294,7 +294,7 @@
android:layout_weight="1"
android:minWidth="1sp"
android:onClick="@{() -> listener.onChangePresetQuality(4)}"
android:text="极高" />
android:text="@string/max_high" />

<com.google.android.material.button.MaterialButton
android:id="@+id/qualityVeryHighButton"
Expand All @@ -304,7 +304,7 @@
android:layout_weight="1"
android:minWidth="1sp"
android:onClick="@{() -> listener.onChangePresetQuality(3)}"
android:text="超高" />
android:text="@string/very_high" />

<com.google.android.material.button.MaterialButton
android:id="@+id/qualityHighButton"
Expand All @@ -314,7 +314,7 @@
android:layout_weight="1"
android:minWidth="1sp"
android:onClick="@{() -> listener.onChangePresetQuality(2)}"
android:text="" />
android:text="@string/hign" />

<com.google.android.material.button.MaterialButton
android:id="@+id/qualityMidButton"
Expand All @@ -324,7 +324,7 @@
android:layout_weight="1"
android:minWidth="1sp"
android:onClick="@{() -> listener.onChangePresetQuality(1)}"
android:text="" />
android:text="@string/middle" />

<com.google.android.material.button.MaterialButton
android:id="@+id/qualityLowButton"
Expand All @@ -333,7 +333,7 @@
android:layout_weight="1"
android:minWidth="1sp"
android:onClick="@{() -> listener.onChangePresetQuality(0)}"
android:text="" />
android:text="@string/low" />

</LinearLayout>

Expand Down
26 changes: 17 additions & 9 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
<resources>
<string name="app_name">Gakumas Localify</string>
<string name="gakumas_localify">Gakumas Localify</string>
<string name="enable_plugin">启用插件 (不可热重载)</string>
<string name="enable_free_camera">启用自由视角(可热重载; 需使用实体键盘)</string>
<string name="start_game">以上述配置启动游戏/重载配置</string>
<string name="setFpsTitle">最大 FPS (0 为保持游戏原设置)</string>
<string name="unlockAllLive">解锁所有 Live</string>
<string name="liveUseCustomeDress">Live 使用自定义角色</string>
<string name="live_costume_head_id">Live 自定义头部 ID (例: costume_head_hski-cstm-0002)</string>
<string name="live_custome_dress_id">Live 自定义服装 ID (例: hski-cstm-0002)</string>
<string name="useCustomeGraphicSettings">使用自定义画质设置</string>
<string name="enable_plugin">Enable Plugin (Can\'t Hot Reloading)</string>
<string name="enable_free_camera">Enable Free Camera</string>
<string name="start_game">Start Game / Hot Reload Config</string>
<string name="setFpsTitle">Max FPS (0 is Not Change)</string>
<string name="unlockAllLive">Unlock All Live</string>
<string name="liveUseCustomeDress">Live Custom Character</string>
<string name="live_costume_head_id">Live Custom Head ID (eg. costume_head_hski-cstm-0002)</string>
<string name="live_custome_dress_id">Live Custom Costume ID (eg. hski-cstm-0002)</string>
<string name="useCustomeGraphicSettings">Use Custom Graphics Settings</string>
<string name="renderscale">RenderScale (0.5/0.59/0.67/0.77/1.0)</string>
<string name="text_hook_test_mode">Text Hook Test Mode</string>
<string name="export_text">Export Text</string>
<string name="force_export_resource">Force Update Resource</string>
<string name="max_high">Ex High</string>
<string name="very_high">Very High</string>
<string name="hign">High</string>
<string name="middle">Mid</string>
<string name="low">Low</string>
</resources>

0 comments on commit ee9740b

Please sign in to comment.