Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huawei App Gallery tweaks #92

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions huawei.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
diff --git a/android/values-zh-rCN/strings.xml b/android/values-zh-rCN/strings.xml
index 6c03140..8c1269f 100644
--- a/android/values-zh-rCN/strings.xml
+++ b/android/values-zh-rCN/strings.xml
@@ -10,11 +10,13 @@
-->

<resources>
- <string name="app_name">Celestia</string>
+ <string name="app_name">天际遨游</string>
<string name="celestia_language">zh_CN</string>
<string name="privacy_policy_alert_decline_button_title">暂不同意</string>
<string name="privacy_policy_alert_show_policy_button_title">查看协议</string>
<string name="privacy_policy_alert_title">隐私政策与服务协议</string>
<string name="privacy_policy_alert_detail">请您务必仔细阅读,充分理解服务协议和隐私政策各条款。如果您同意,请点击下方的\"同意\"按钮。</string>
<string name="privacy_policy_alert_accept_button_title">同意</string>
-</resources>
\ No newline at end of file
+ <string name="exit_celestia_alert_title">退出天际遨游</string>
+ <string name="exit_celestia_alert_message">确认需要退出?</string>
+</resources>
diff --git a/android/values/strings.xml b/android/values/strings.xml
index eb222a9..742e351 100644
--- a/android/values/strings.xml
+++ b/android/values/strings.xml
@@ -17,4 +17,6 @@
<string name="privacy_policy_alert_show_policy_button_title">View Policy</string>
<string name="privacy_policy_alert_accept_button_title">Agree</string>
<string name="privacy_policy_alert_decline_button_title">Not Now</string>
+ <string name="exit_celestia_alert_title">Exit Celestia</string>
+ <string name="exit_celestia_alert_message">Are you sure you want to exit?</string>
</resources>
5 changes: 5 additions & 0 deletions jobs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ jobs:
git checkout $(contentCommitHash)
displayName: 'Checkout Content'

- script: |
cd CelestiaLocalization
git apply ../AndroidCelestia/huawei.patch --ignore-whitespace --whitespace=nowarn
displayName: 'Apply Localization Patch'

- script: |
sh $(System.DefaultWorkingDirectory)/AndroidCelestia/app/run_gperf.sh $(System.DefaultWorkingDirectory)/Celestia
displayName: 'Running gperf'
Expand Down