Repository navigation
Conversation
AppImage 目录的收录 PR(AppImage/appimage.github.io#8573)要求非中文环境默认显示英文界面。 - AppSettings.Language 出厂改为空串(= 跟随系统)。LocalizationService.SetLanguage("") 按系统界面文化折算成五种界面语言之一:沿父文化链找,中文按书写体系归到简 / 繁, 对不上(德语、法语、LANG=C……)就用英文。系统文化在构造时快照,切回「跟随系统」 不会停在上一次选的语言。 - 存量配置里写着的语言照旧生效,不做迁移(分不清是用户选的还是旧出厂值 zh-CN)。 - 设置 → 常规 → 语言:下拉首项加「跟随系统」,新增键 SetGeneral_LanguageSystem,五份 resx 齐。 - README 两份的「本地化」一行补上默认跟随系统。
joesdu
added a commit
to VelaShell/velashell-docs
that referenced
this pull request
Sep 30, 2026
docs(host): 界面语言出厂跟随系统,对不上用英文(joesdu/VelaShell#537)
Cyaim
pushed a commit
to Cyaim/velashell-docs
that referenced
this pull request
Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
主要改动
AppImage 目录的收录 PR AppImage/appimage.github.io#8573 要求:非中文环境(
LANG/LC_*)默认显示英文界面,中文环境照旧中文。原先AppSettings.Language出厂是zh-CN,任何环境下全新安装都是一屏中文。规则:设置里选过的语言优先;没选过的跟随系统语言;系统语言对不上五种界面语言就用英文。
AppSettings.Language出厂改为空串(= 跟随系统)。LocalizationService.SetLanguage("")按系统界面文化折算(新增ResolveSystemLanguage):沿父文化链找,中文按书写体系归到简 / 繁(zh-SG → 简体,zh-HK / zh-MO → 繁体),对不上(德语、法语、LANG=C的不变文化……)就用英文。系统语言由 .NET 取:Windows 是显示语言,Linux 依次看LC_ALL/LC_MESSAGES/LANG。SetLanguage会改写环境文化,现读CurrentUICulture的话,从「日本語」切回「跟随系统」会停在日语。SetGeneral_LanguageSystem,五份 resx 齐。zh-CN基本都已落盘,分不清是用户选的还是旧出厂值,照旧生效(同 §131 的强调色)。所以在非中文系统上装过旧版的用户,升级后仍是中文,需要在设置里手动改一次;全新安装跟随系统。测试
LanguageDefaultsTests2 条:新配置跟随系统;存量zh-CN原样保留。LocalizationTests新增:SettingsViewModelTests新增 1 条:下拉首项对应空串。整个解决方案
dotnet test VelaShell.slnx0 失败,编译 0 警告。其中VelaShell.Core.Tests594 通过 / 20 跳过,VelaShell.Tests1605 通过 / 16 跳过。跳过的都是按环境早退的 Docker / 集成用例。文档
涉及文档修改。
plan.md§141、feature-plan.md「三、文档待同步」一行,README.md/README.en.md的「本地化」一行。zh/host/settings-audit.md及英文镜像en/host/settings-audit.md的「常规 · 语言」一行。文档同步见 VelaShellLabs/velashell-docs#77,与本 PR 一起合;feature-plan.md「三、文档待同步」已登记这一行。