Skip to content
23 changes: 15 additions & 8 deletions crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@
"base_path" : "./lang"
"preserve_hierarchy": true

files: [
{
"source" : "en.js",
"dest" : "/apps/python-editor/en.json",
"type" : "json",
"translation" : "/%two_letters_code%.js"
}
]
"files" : [
{
"source" : "/en.js",
"dest" : "/apps/python-editor/en.json",
"type" : "json",
"translation" : "/%two_letters_code%.js",
"languages_mapping" : {
"two_letters_code" : {
"zh-CN" : "zh-CN",
"zh-TW" : "zh-TW",
"hk" : "zh-HK",
}
}
}
]
4 changes: 3 additions & 1 deletion editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,10 @@ <h2><i class="fa fa-unlock-alt"></i> <strong>{{ title }}</strong></h2>
<li><span title="Spanish"><a lang="es" href="#" class="action lang-choice" id="es" tabindex="122">Español</a></span></li>
<li><span title="Polish"><a lang="pl" href="#" class="action lang-choice" id="pl" tabindex="123">Polski</a></span></li>
<li><span title="Croatian"><a lang="hr" href="#" class="action lang-choice" id="hr" tabindex="124">Hrvatski</a></span></li>
<li><span title="Chinese (simplified)"><a lang="zh-CN" href="#" class="action lang-choice" id="zh-CN" tabindex="125">简体中文</a></span></li>
<li><span title="Chinese (Hong Kong)"><a lang="zh-HK" href="#" class="action lang-choice" id="zh-HK" tabindex="126">繁体中文</a></span></li>
</ul>
<div><a id="add-language-link" class="action" title="Add a language translation to the Editor" href="https://support.microbit.org/support/solutions/articles/19000106022-translating-the-micro-bit-python-editor" target="_blank" tabindex="124">Add a language</a></div>
<div><a id="add-language-link" class="action" title="Add a language translation to the Editor" href="https://support.microbit.org/support/solutions/articles/19000106022-translating-the-micro-bit-python-editor" target="_blank" tabindex="129">Add a language</a></div>
</div>
</div>
</div>
Expand Down
6 changes: 6 additions & 0 deletions lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ var language = {
},
'hr': {
'title': 'Croatian'
},
'zh-CN': {
'title': 'Chinese (simplified)'
},
'zh-HK': {
'title': 'Chinese (traditional, Hong Kong)'
}
},
'static-strings': {
Expand Down
6 changes: 6 additions & 0 deletions lang/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ var language = {
},
"hr": {
"title": "Croatian"
},
"zh-CN": {
"title": "Chinese (simplified)"
},
"zh-HK": {
"title": "Chinese (traditional, Hong Kong)"
}
},
"static-strings": {
Expand Down
14 changes: 10 additions & 4 deletions lang/hr.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ var language = {
"reconnect-microbit": "Nanovo uključi svoj micro:bit i pokušaj opet.",
"partial-flashing-disable": "Ako se greške ponavljaju, pokušaj u beta opcijama isključiti opciju Quick Flash.",
"device-disconnected": "Uređaj je isključen.",
"timeout-error": "Unable to connect to the micro:bit",
"timeout-error": "Nije se moguće spojiti na micro:bit",
"unavailable": "Pomoću WebUSB-a možeš programirati svoj micro:bit i izravno iz uređivača povezati ga na serijsku konzolu.<br/>Nažalost, ovaj pretraživač ne podržava WebUSB. Preporučujemo WebUSB koristiti u pretraživaču Chrome ili u nekom iz njega izvedenom.",
"find-more": "Saznaj više"
},
Expand Down Expand Up @@ -126,7 +126,7 @@ var language = {
},
"languages": {
"en": {
"title": "Hrvatski"
"title": "Engleski"
},
"es": {
"title": "Španjolski"
Expand All @@ -135,7 +135,13 @@ var language = {
"title": "Poljski"
},
"hr": {
"title": "Croatian"
"title": "Hrvatski"
},
"zh-CN": {
"title": "Chinese (simplified)"
},
"zh-HK": {
"title": "Chinese (traditional, Hong Kong)"
}
},
"static-strings": {
Expand All @@ -150,7 +156,7 @@ var language = {
},
"command-flash": {
"title": "Učitaj (\"flash\") projekt izravno u micro:bit",
"label": "Flash"
"label": "Flash ('flashaj')"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure if this is really better, is just Flashaj not acceptable? The answer could be "no", but we should ask.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure, the response I got was "Please leave the quotation marks, as this signifies it's an English word we have co-opted into the Croatian language"

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think in that case I'd rather have 'Flashaj' than Flash ('flashaj'). Either way, could we explain that this is for the buttons, and if it would be okay to have the word without the quotation marks only in this scenario?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have requested this change in crowdin https://crowdin.com/translate/microbitorg/3298/en-hr#q=flash

},
"command-files": {
"title": "Učitaj/spremi datoteke",
Expand Down
10 changes: 8 additions & 2 deletions lang/pl.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ var language = {
"reconnect-microbit": "Podłącz jeszcze raz swój micro:bit i spróbuj ponownie.",
"partial-flashing-disable": "Jeśli error się powtarza, spróbuj wyłączyć Quick Flash w opcjach beta.",
"device-disconnected": "Urządzenie odłączone.",
"timeout-error": "Unable to connect to the micro:bit",
"timeout-error": "Nie można podłączyć się z micro:bit",
"unavailable": "Za pomocą WebUSB możesz zaprogramować swój micro:bit i połączyć się z konsolą szeregową bezpośrednio z edytora online.<br/> Niestety, WebUSB nie jest obsługiwany w tej przeglądarce. Do korzystania z WebUSB zalecamy Chrome lub inną przeglądarkę opartą na Chrome.",
"find-more": "Dowiedz się więcej"
},
Expand Down Expand Up @@ -135,7 +135,13 @@ var language = {
"title": "Polski"
},
"hr": {
"title": "Croatian"
"title": "Chorwacki"
},
"zh-CN": {
"title": "Chinese (simplified)"
},
"zh-HK": {
"title": "Chinese (traditional, Hong Kong)"
}
},
"static-strings": {
Expand Down
224 changes: 224 additions & 0 deletions lang/zh-CN.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
var language = {
"code_snippets": {
"title": "代码段",
"description": "代码片段是在您自己的程序中重复使用的短代码块,这是使用MicroPython时最常见的一些代码片段。",
"instructions": "选择下面的代码段之一插入到代码。",
"trigger_heading": "触发",
"description_heading": "说明",
"docs": "创建一个注释来描述您的代码",
"wh": "当某些条件为真时,继续循环某些代码",
"with": "完成一些与名字有关的功能",
"cl": "创建定义对象行为的新类",
"def": "定义一个带有参数的命名函数,并可选添加描述",
"if": "如果某些条件为真,执行功能",
"ei": "否则如果其他条件为真,就执行功能",
"el": "否则就执行功能",
"for": "使用集合中的每个项目执行某些操作",
"try": "尝试执行某些操作并处理异常(错误)"
},
"share": {
"title": "分享代码",
"instructions": "使用密码和可选提示(帮助您记忆密码)创建安全链接分享您的程序。",
"passphrase": "密码:",
"hint": "密码提示:",
"button": "创建链接",
"description": "这个网址指向您的程序:",
"shortener": "这是短链接版本:"
},
"decrypt": {
"title": "解密代码",
"instructions": "输入密码解密源代码。",
"passphrase": "密码:",
"button": "解密"
},
"alerts": {
"download": "Safari存在一个错误,这意味着您的程序将作为一个未命名的文件下载,请将其重命名为以.py结尾的文件,或者使用Firefox或Chrome等浏览器,它们没有这个错误。",
"save": "Safari存在一个错误,这意味着您的程序将作为一个未命名的文件下载,请将其重命名为以.hex结尾的文件,或者使用Firefox或Chrome等浏览器,它们没有这个错误。",
"load_code": "哎呀!无法将代码加载到十六进制文件中。",
"unrecognised_hex": "抱歉,我们无法识别这个文件",
"snippets": "启用blockly时将禁用代码段。",
"error": "错误:",
"empty": "Python 文件没有任何内容。",
"no_python": "在hex文件中找不到有效的Python代码。",
"no_script": "Hex 文件不包含 Python 脚本。",
"no_main": "Hex 文件没有包含 main.py 文件。",
"cant_add_file": "不能添加文件到文件系统:",
"module_added": "\"{{module_name}}\" 模块已添加到文件系统。",
"module_out_of_space": "无法将文件添加到系统,因为没有剩余的存储空间。"
},
"help": {
"docs-link": {
"title": "查看 MicroPython 文档",
"label": "文档"
},
"support-link": {
"title": "在新标签中得到 micro:bit 技术支持",
"label": "技术支持"
},
"help-link": {
"title": "在新标签中打开编辑器的帮助",
"label": "帮助"
},
"issues-link": {
"title": "在GitHub中查看 Python Editor 的未解决问题",
"label": "问题跟踪"
},
"feedback-link": {
"title": "给我们发送关于 Python Editor 的反馈",
"label": "发送反馈"
},
"editor-ver": "编辑器版本:",
"mp-ver": "MicroPython 版本:"
},
"confirms": {
"quit": "某些更改尚未保存。仍然退出吗?",
"blocks": "您有未保存的代码。使用积木编程将更改代码。您可能会丢失更改。你想继续吗?",
"replace_main": "添加main.py文件将替换编辑器中的代码!",
"replace_file": "替换 \"{{file_name}}\" 文件吗?",
"replace_module": "替换 \"{{module_name}}\" 模块吗?",
"download_py_multiple": "此项目包含多个将不使用此格式保存的文件。\n\n推荐下载 Hex 文件, 它将包含整个项目并能够重新载入到编辑器中。\n\n 是否确认只下载文件 {{file_name}} ?"
},
"code": {
"start": "在此处添加 Python 代码。例如:"
},
"webusb": {
"err": {
"update-req": "需要 <a target=\"_blank\" href=\"https://support.microbit.org/support/solutions/articles/19000019131-how-to-upgrade-the-firmware-on-the-micro-bit\"> 更新 micro:bit 固件</a> 以使用这个功能.",
"clear-connect": "另一个进程已连接到这个设备。<br>关闭其它可能使用 WebUSB 的标签(如 MakeCode、Python Editor),或者拔掉 micro:bit 插头再重新插上。",
"reconnect-microbit": "请重新连接 micro:bit 然后再次尝试。",
"partial-flashing-disable": "如果错误仍然存在,请尝试禁用beta选项中的快速下载。",
"device-disconnected": "设备已断开。",
"timeout-error": "不能连接到 micro:bit",
"unavailable": "使用 WebUSB 可以从编辑器中直接给 micro:bit 编程并连接到串口控制台。<br/>不幸的是,这个浏览器不支持 WebUSB。推荐使用 Chrome, 或 Chrome 内核的浏览器。",
"find-more": "了解更多"
},
"troubleshoot": "故障排除",
"close": "关闭",
"request-repl": "发送 CTRL-C 到 REPL",
"request-serial": "发送 CTRL-D 以复位",
"flashing-text": "编程 micro:bit",
"download": "下载 Hex"
},
"load": {
"show-files": "显示文件",
"load-title": "载入",
"instructions": "拖放一个 .hex 或 .py 文件到这里载入它。",
"submit": "载入",
"save-title": "保存",
"save-hex": "下载项目 Hex",
"save-py": "下载 Python 脚本",
"fs-title": "文件",
"toggle-file": "或浏览文件。",
"fs-add-file": "添加文件",
"hide-files": "隐藏文件",
"td-filename": "文件名",
"td-size": "大小",
"fs-space-free": "剩余",
"remove-but": "删除",
"save-but": "保存",
"files-title": "项目文件",
"help-button": "文件帮助",
"file-help-text": "项目文件区域显示程序中包含的文件, 并允许您添加或删除外部python模块和其他文件. 了解更多在 ",
"help-link": "在 Python Editor 帮助文档中",
"invalid-file-title": "无效的文件类型",
"mpy-warning": "这个版本的 Python Editor 不支持添加 .mpy 文件。",
"extension-warning": "Python Editor 只能载入 .hex 或 .py 文件。"
},
"languages": {
"en": {
"title": "英文"
},
"es": {
"title": "西班牙语"
},
"pl": {
"title": "波兰语"
},
"hr": {
"title": "克罗地亚语"
},
"zh-CN": {
"title": "Chinese (simplified)"
},
"zh-HK": {
"title": "Chinese (traditional, Hong Kong)"
}
},
"static-strings": {
"buttons": {
"command-download": {
"title": "下载一个 hex 文件到 micro:bit",
"label": "下载"
},
"command-disconnect": {
"title": "断开 micro:bit 连接",
"label": "断开连接"
},
"command-flash": {
"title": "直接下载项目到 micro:bit",
"label": "下载"
},
"command-files": {
"title": "载入/保存文件",
"label": "载入/保存"
},
"command-serial": {
"title": "通过串口连接 micro:bit",
"label": "打开串口",
"title-close": "关闭串口连接并返回到编辑器",
"label-close": "关闭串口"
},
"command-connect": {
"title": "连接到 micro:bit",
"label": "连接"
},
"command-connecting": {
"title": "正在连接到 micro:bit",
"label": "正在连接"
},
"command-options": {
"title": "修改编辑器设置",
"label": "Beta 选项"
},
"command-blockly": {
"title": "单击使用 blockly 创建程序",
"label": "代码片段"
},
"command-snippet": {
"title": "单击以选择代码段(代码快捷方式)",
"label": "片段"
},
"command-help": {
"title": "发现有用的资源",
"label": "帮助"
},
"command-language": {
"title": "选择一种语言",
"label": "语言"
},
"command-share": {
"title": "创建一个链接分享脚本",
"label": "分享"
},
"command-zoom-in": {
"title": "放大"
},
"command-zoom-out": {
"title": "缩小"
}
},
"script-name": {
"label": "脚本名"
},
"options-dropdown": {
"autocomplete": "自动完成",
"on-enter": "输入 Enter",
"partial-flashing": "快速下载",
"lang-select": "选择语言:",
"add-language-link": "添加一种语言"
},
"text-editor": {
"aria-label": "文本编辑器"
}
}
};
Loading