Skip to content

feat: add Simplified Chinese (zh-CN) localization and in-app language switcher - #266

Open
kk3432 wants to merge 2 commits into
BLE-Research-Group:masterfrom
kk3432:i18n/chinese-localization
Open

kk3432 wants to merge 2 commits into
BLE-Research-Group:masterfrom
kk3432:i18n/chinese-localization

Conversation

@kk3432

@kk3432 kk3432 commented Sep 27, 2026

Copy link
Copy Markdown

Summary

This PR adds Simplified Chinese (zh-CN) localization and an in-app language switcher to MetaRadar.

Changes

1. Chinese localization

  • app/src/main/res/values-zh-rCN/strings.xml — full translation of all 297 strings + 7 plurals
  • metadata/zh-CN/ — Play Store listing (title, short & full descriptions, screenshots)
  • README.zh-CN.md — Chinese project readme
  • PRIVACY_POLICY.zh-CN.md — Chinese privacy policy
  • All original English resources remain untouched; technical terms (BLE, GATT, RSSI, GPS) are kept in English

2. In-app language switcher (Settings)

  • New Language option in App settings with a dialog: System default / English / 中文 / Magyar / Русский
  • Selection is persisted in SharedPreferences via SettingsRepository
  • Locale applied with AppCompatDelegate.setApplicationLocales (appcompat 1.7.1)
  • Language labels added to all locale files (en, zh-rCN, ru, hu)

Verification

  • assembleGithubDebug and assembleGithubRelease both build successfully
  • Release build runs R8 minification + resource shrinking
  • Confirmed zh-rCN configs and new language strings are compiled into the APK resource table

Campus Browser Dev added 2 commits September 27, 2026 09:35
- Add Android string resources (values-zh-rCN/strings.xml) with 200+ translated strings
- Add app store metadata (metadata/zh-CN/) including title, short and full descriptions
- Add Chinese README (README.zh-CN.md)
- Add Chinese privacy policy (PRIVACY_POLICY.zh-CN.md)
- Copy screenshot images for zh-CN metadata
- Add Language option in App settings (System default / English / 中文 / Magyar / Русский)
- Persist selection via SettingsRepository (SharedPreferences)
- Apply locale via AppCompatDelegate.setApplicationLocales
- Add language strings to all locale files (en, zh-rCN, ru, hu)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant