Skip to content

修正 EH 页面翻译#1358

Open
1235789gzy1 wants to merge 8 commits into
EhTagTranslation:masterfrom
1235789gzy1:master
Open

修正 EH 页面翻译#1358
1235789gzy1 wants to merge 8 commits into
EhTagTranslation:masterfrom
1235789gzy1:master

Conversation

@1235789gzy1

@1235789gzy1 1235789gzy1 commented Jul 8, 2026

Copy link
Copy Markdown

当前页面截图
image

EH在 “最大磁盘缓存大小” 中新增了如下的悬浮文本
committed

@1235789gzy1 1235789gzy1 marked this pull request as draft July 8, 2026 03:45
@1235789gzy1

1235789gzy1 commented Jul 8, 2026

Copy link
Copy Markdown
Author

当前页面截图
image
此处 EH 似乎会根据所在地区自动更新文本,尝试使用正则匹配
其余部分未见明显修改

@1235789gzy1

Copy link
Copy Markdown
Author

当前页面截图
image
仅有两处文本微调

@1235789gzy1

Copy link
Copy Markdown
Author

页面截图如下(部分)
image
因为中文wiki没有相关参考,顺手补上了EH 中文wiki 的部分内容

[
[/ \(Default\)$/, ' (默认)'],
[
/^You appear to be located in <strong>(.+)<\/strong>, or use a VPN located there, and will default to load images from the <strong>(.+)<\/strong> H@H Region\.$/,

@OpportunityLiu OpportunityLiu Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里要拆开放到上面去,不管是上面的映射还是下面这个正则都只匹配文本节点的

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这部分好像 #1355 已经处理了

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好,等会回去继续调整下
不过原本的附加表应该不需要了?因为现在已经没有具体国家,改为H@H统计页面一致的地区了

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件应该不用动了,你直接 rebase 主分支应该就可以了

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为现在已经没有具体国家

有国家的。You appear to be located in 后面。

@1235789gzy1

1235789gzy1 commented Jul 8, 2026

Copy link
Copy Markdown
Author

修正过程中发现一些问题,设置界面会显示具体的国家和地区。
而H@H统计页面里,用户的H@H客户端是否也详细到国家和地区未知,如果和统计页面一致,只显示四个区域,那么可以对H@H剔除掉 _browsingcountry.ts 文件的引用,以便统一翻译格式(即 “仅翻译” 和 ”原文(翻译)“ 格式的区别)。
image

image

正在等待验证更详细的信息

@UjuiUjuMandan

Copy link
Copy Markdown
Contributor

用户的H@H客户端是否也详细到国家和地区未知

No.

image

@UjuiUjuMandan

This comment was marked as outdated.

@1235789gzy1

1235789gzy1 commented Jul 8, 2026

Copy link
Copy Markdown
Author

对H@H剔除掉 _browsingcountry.ts 文件的引用

Then you have to define Chinese Dominion twice, one in hentaiathome.ts one in _browsingcountry.ts and it's not allowed.

I believe the format in _browsingcountry.ts should be standardized as: Africa: 'Africa (非洲)',.

If this file is referenced by both sides, we should either ensure all countries and regions on the H@H page follow this display format, or remove the English original text references from _browsingcountry.ts entirely. Otherwise, the H@H global statistics page will end up displaying the English original text plus the translation for only four regions, which is not concise enough.

@1235789gzy1 1235789gzy1 marked this pull request as ready for review July 8, 2026 12:13
@1235789gzy1

Copy link
Copy Markdown
Author

应该改完了,微调了一些文本描述,实际测试应该没有遗漏的未翻译文本了
出于页面和设计的统一,我这里将 hentaiathome.ts 对 _browsingcountry.ts 的引用剔除,以便处理 _browsingcountry.ts 中和其他地方不太一致的翻译格式

@UjuiUjuMandan

This comment was marked as outdated.

@1235789gzy1

Copy link
Copy Markdown
Author

改好了喵

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.

3 participants