Skip to content

Commit

Permalink
fix(Codeforces): 样式调整,i18n完善
Browse files Browse the repository at this point in the history
- 修复问题页代码编辑器在切换页面移动/桌面版本后报错的问题

- 一些样式调整

- 完善一部分脚本界面的 i18n
  • Loading branch information
beijixiaohu committed Dec 31, 2023
1 parent c40d6a4 commit 0a7cf65
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 133 deletions.
7 changes: 7 additions & 0 deletions resources/locales/Codeforces/comments.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"perpage":"每页展示主楼数",
"jump":"跳转",
"jumpTo":"跳转到页码",
"prev":"上一页",
"next":"下一页"
}
4 changes: 3 additions & 1 deletion resources/locales/Codeforces/common.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"save": "保存",
"close": "关闭"
"close": "关闭",
"settings": "设置",
"add": "添加"
}
34 changes: 21 additions & 13 deletions resources/locales/Codeforces/translator.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
{
"servers": {
"deepl": "DeepL",
"iflyrec": "讯飞听见",
"youdao": "有道",
"google": "谷歌",
"caiyun": "彩云小译",
"openai": "ChatGPT"
},
"transingTip": {
"basic": "正在使用 {{translationService}} 翻译中……请稍等",
"basic": "正在使用 {{server}} 翻译中……请稍等",
"openai": "正在使用 ChatGPT 翻译中……请稍等\n\n应用的配置: {{openai_name}}\n\n",
"openai_isStream": "当前未开启流式传输,你需要等待很长时间才能看到结果,请耐心等待"
},
"error": {
"basic":"\n\n请重试或更换翻译接口。\n\n点击右上角工具栏的 DeBug 图标查看更多信息",
"unexpected":"**:( 翻译遇到了问题:** 发生了意外的错误\n\n请重试或更换翻译接口",
"youdao413":"413 Request Entity Too Large\n\n请求文本长度超出了有道翻译接口的限制,请更换其他翻译接口",
"deepl429":"请求过于频繁,请稍后再试\n\n这通常是因为你短时间内频繁翻译,或者一次性翻译了超过5000字符的文本导致的,\n\nDeepL对翻译字数和频率是有限制的,\n\n这是暂时的,一段时间后就恢复正常了",
"GMRequest":"**:( 翻译遇到了问题:** 从接口获取数据时发生了错误",
"processer":"**:( 翻译遇到了问题:** 获取目标数据时发生了错误 \n\n响应数据可能存在错误",
"checkResponse":"**:( 翻译遇到了问题:** 检查响应数据时发生了意外的错误"
"basic": "\n\n请重试或更换翻译接口。\n\n点击右上角工具栏的 DeBug 图标查看更多信息",
"unexpected": "**:( 翻译遇到了问题:** 发生了意外的错误\n\n请重试或更换翻译接口",
"youdao413": "413 Request Entity Too Large\n\n请求文本长度超出了有道翻译接口的限制,请更换其他翻译接口",
"deepl429": "请求过于频繁,请稍后再试\n\n这通常是因为你短时间内频繁翻译,或者一次性翻译了超过5000字符的文本导致的,\n\nDeepL对翻译字数和频率是有限制的,\n\n这是暂时的,一段时间后就恢复正常了",
"GMRequest": "**:( 翻译遇到了问题:** 从接口获取数据时发生了错误",
"processer": "**:( 翻译遇到了问题:** 获取目标数据时发生了错误 \n\n响应数据可能存在错误",
"checkResponse": "**:( 翻译遇到了问题:** 检查响应数据时发生了意外的错误"
},
"chatgpt_prompt":{
"common":"请将下面的文本翻译为{{transTargetLang}},这是一道编程竞赛题描述的一部分,注意术语的翻译,注意保持其中的LaTeX公式不翻译,你只需要回复翻译后的内容即可,不要回复任何其他内容:\n\n",
"notLaTeX":"请将下面的文本翻译为{{transTargetLang}},这是一道编程竞赛题描述的一部分,注意术语的翻译,注意保持其中的【】、HTML标签本身以及其中的内容不翻译不变动,你只需要回复翻译后的内容即可,不要回复任何其他内容:\n\n"
"chatgpt_prompt": {
"common": "请将下面的文本翻译为{{transTargetLang}},这是一道编程竞赛题描述的一部分,注意术语的翻译,注意保持其中的LaTeX公式不翻译,你只需要回复翻译后的内容即可,不要回复任何其他内容:\n\n",
"notLaTeX": "请将下面的文本翻译为{{transTargetLang}},这是一道编程竞赛题描述的一部分,注意术语的翻译,注意保持其中的【】、HTML标签本身以及其中的内容不翻译不变动,你只需要回复翻译后的内容即可,不要回复任何其他内容:\n\n"
},
"translateDiv":{
"topTextSuffix":" 翻译"
"translateDiv": {
"topTextSuffix": " 翻译"
}
}
6 changes: 3 additions & 3 deletions resources/subs/Codeforces-subs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.0",
"version": "1.0.1",
"commonReplacements": {
".datatable": {
"class": [
Expand Down Expand Up @@ -146,9 +146,9 @@
"Contest history": "比赛历史"
}
},
".roundbox.sidebox.borderTopRound ": {
".roundbox.sidebox.borderTopRound": {
"class": [
".roundbox.sidebox.borderTopRound "
".roundbox.sidebox.borderTopRound"
],
"description": "",
"isStrict": false,
Expand Down
Loading

0 comments on commit 0a7cf65

Please sign in to comment.