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

[Other] 如何提交其他语言的翻译 #957

Open
4 of 5 tasks
david082321 opened this issue Feb 4, 2025 · 2 comments
Open
4 of 5 tasks

[Other] 如何提交其他语言的翻译 #957

david082321 opened this issue Feb 4, 2025 · 2 comments

Comments

@david082321
Copy link

david082321 commented Feb 4, 2025

问题描述 - Issue Description

希望能增加繁体中文选项

  1. 我看到有个 New Crowdin updates #526 但是找不到你们的Crowdin网址,没办法翻译

  2. 我有查看文档
    2-1. 根据说明将 config.yml 的内容改成 language: zh_tw
    2-2. 在 C:\Program Files\PeerBanHelper\data\lang\overrides\zh_tw 添加 messages.ymlmessages_fallback.yml ,内容都是用这个
    2-3. 重启电脑后再重启PBH,仍然不生效

系统:Windows 11
系统语言:繁體中文
浏览器版本:Chrome/132
浏览器版本:中文(繁體)Accept-Language: zh-TW,zh-CN;q=0.9,zh;q=0.8,en-US;q=0.7,en;q=0.6
PBH 的 WebUI 语言:跟随系统

额外信息 - Addition Information

ps. 我用繁化姬大致翻译了一下,然后加了一点人工修改,但没全部细看 david082321@35fa6b3

检查清单 - Check list

  • 这不是一个错误 (BUG) (This is not an bug/error)
  • PeerBanHelper 已更新到最新版本,非最新版本不接受任何错误反馈,任何非最新版本的 Issue 将被 立 刻 关 闭,不会有人给您提供任何支持 (I'm running the latest version of PBH that can be found in Github Relases, non-latest release won't receive any support)
  • 我已检查过 PBH 文档(特别是常见问题),且即使使用了搜索也没有找到与此有关的内容 (This not a question/or the question that not listed in README's FAQ or PBH WIKI)
  • 我没有检查这个检查清单,只是闭眼选中了所有的复选框,请关闭这个 Issue (I have not read these checkboxes and therefore I just ticked them all, Please close this issue)
  • 我同意遵守 PBH-BTN 包容性条约,不发布 “嘲讽、骂战、引战、开盒(有时也称为人肉搜索)、人身攻击、仇恨、暴力、侮辱性言辞、违法违规、黑灰产、危害国家安全、实施或帮助他人实施电信犯罪” 等内容。并已知晓如果仍旧发布了这些内容,我的账号将立刻从包括但不限于 PBH-BTN 组织、社交软件中封禁。所有主题、内容都将被立刻删除或折叠,撤销、删除和收回您所做出的一切贡献,并封禁 BTN 网络的中账号权限、排除您所提交的所有数据。在您违反相关规则时,PBH-BTN 将会将您的注册、登录、和最近访问的 IP 地址、电子邮件地址、以及其它可能追踪您或将您去匿名化的信息从定期删除转为永不删除,并在任何国家或地区的政府、公安机关或有关部门需要时无通知的提供这些数据。 (I agree to abide by the PBH-BTN Inclusivity Pact by not posting content such as “taunting, name-calling, war-mongering, open-boxing (sometimes referred to as mansplaining), personal attacks, hatred, violence, insulting language, illegal activities, black and grey business, endangering national security, and committing or assisting others in committing telecommunication crimes”. I am aware that if I continue to post such content, my account will be immediately banned from organizations including but not limited to PBH-BTN, social software. All topics and content will be immediately deleted or collapsed, all contributions will be revoked, deleted and retracted, and you will be banned from the BTN network and all data you have submitted will be excluded. In the event of a violation of these rules, PBH-BTN will delete your registration, login, and most recent IP address, email address, and any other information that may be used to track you or de-anonymize you from regular to permanent deletion, and will make this data available to the government, public security, or other relevant authorities without notice if they request it, no matter what country or region.)
@Ghost-chu
Copy link
Collaborator

Crowdin 还没有正式投入使用,所以这个 PR 一直没合并,目前提交可以先通过 Pull Request 提交。

messages.yml 翻译只包含后端文本,但是 WebUI 的是由 WebUI 子模块自己管理的,需要修改代码引入。这也是 Crowdin 一直没有正式启用的原因之一。

@Gaojianli
Copy link
Member

Webui里面有locale资料档,新增语言即可

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

No branches or pull requests

3 participants