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

增加翻译:账户继任者相关 #214

Merged
merged 8 commits into from
Jul 4, 2024
Merged

Conversation

qznfbnj
Copy link
Contributor

@qznfbnj qznfbnj commented Jul 2, 2024

账户设置 - 设置继任者
== 用户邀请翻译 无效 单独放便于处理(需要测试随时提出)
== F12表示:请注意对应 page false 词库节点不存在 参见 #213
顺便修改一处原翻译的句式

qznfbnj added 3 commits July 2, 2024 22:29
Signed-off-by: 其智乃反不能及 <100760086+qznfbnj@users.noreply.github.com>
Signed-off-by: 其智乃反不能及 <100760086+qznfbnj@users.noreply.github.com>
Signed-off-by: 其智乃反不能及 <100760086+qznfbnj@users.noreply.github.com>
@TC999
Copy link
Contributor

TC999 commented Jul 2, 2024

"114514"

@maboloshi
Copy link
Owner

@qznfbnj F12下 运行, 把结果发上来😊

const isLogin = document.body.classList.contains("logged-in");
const analyticsLocation = document.head.querySelector('meta[name="analytics-location"]')?.content || '';
const isOrganization = /\/<org-login>/.test(analyticsLocation) || /^\/(?:orgs|organizations)/.test(location.pathname);
const isRepository = /\/<user-name>\/<repo-name>/.test(analyticsLocation);
const isProfile = document.body.classList.contains("page-profile") || analyticsLocation === '/<user-name>';
const isSession = document.body.classList.contains("session-authentication");
console.log(`${isLogin},${analyticsLocation},${isOrganization},${isRepository},${isProfile},${isSession}`)

@qznfbnj
Copy link
Contributor Author

qznfbnj commented Jul 2, 2024

@qznfbnj F12下 运行, 把结果发上来😊

const isLogin = document.body.classList.contains("logged-in");
const analyticsLocation = document.head.querySelector('meta[name="analytics-location"]')?.content || '';
const isOrganization = /\/<org-login>/.test(analyticsLocation) || /^\/(?:orgs|organizations)/.test(location.pathname);
const isRepository = /\/<user-name>\/<repo-name>/.test(analyticsLocation);
const isProfile = document.body.classList.contains("page-profile") || analyticsLocation === '/<user-name>';
const isSession = document.body.classList.contains("session-authentication");
console.log(`${isLogin},${analyticsLocation},${isOrganization},${isRepository},${isProfile},${isSession}`)

这样?
image

true,,false,false,false,false
undefined

@maboloshi
Copy link
Owner

true,,false,false,false,false
undefined

OK 后期设置rePagePath规则应该能识别. 明天吧
0F10C139

@maboloshi
Copy link
Owner

^\/users\/[^\/]+\/(projects|packages)-->^\/users\/[^\/]+\/(projects|packages|succession\/invitation) 试下

@qznfbnj
Copy link
Contributor Author

qznfbnj commented Jul 2, 2024

不错
image

@maboloshi
Copy link
Owner

对了,翻译引擎除了chatgpt外,优先使用DeepL

@qznfbnj
Copy link
Contributor Author

qznfbnj commented Jul 2, 2024

对了,翻译引擎除了chatgpt外,优先使用DeepL

我一般用翻译引擎也是习惯用于预处理 更多还是靠自己不到六级的水平硬翻
对了,I18N.zh["succession/invitation"] 是否要移动位置?

Signed-off-by: 其智乃反不能及 <100760086+qznfbnj@users.noreply.github.com>
@maboloshi
Copy link
Owner

对了,翻译引擎除了chatgpt外,优先使用DeepL

我一般用翻译引擎也是习惯用于预处理 更多还是靠自己不到六级的水平硬翻 对了,I18N.zh["succession/invitation"] 是否要移动位置?

目前, 暂时先发到["settings/admin"]之下吧

Signed-off-by: 沙漠之子 <7850715+maboloshi@users.noreply.github.com>
@maboloshi maboloshi merged commit 319e7b5 into maboloshi:gh-pages Jul 4, 2024
@qznfbnj qznfbnj deleted the gp-as branch July 4, 2024 11:11
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