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

Chinese localization #691

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ var scripts_pre = ['wb', 'queryparams', 'util', 'event', 'persistence', 'drag',
var scripts_post = ['l10n', 'workspace'];

var localizations = {
javascript: {
'zh': ['control', 'array']
}

};

Expand Down
193 changes: 193 additions & 0 deletions languages/javascript/localizations/zh/array.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
{
"sectionkey": "arrays",
"name": "陣列",
"help": "陣列是一連串有順序的變數,支持的運算包含可以增加、刪除、排序、尋找...。",
"blocks": [
{
"id": "e6a297e9-1255-4701-91d8-80548489ee9a",
"script": "local.array## = [];",
"help": "建立一個新的空白的陣列",
"locals": [
{
"sockets": [
{
"name": "陣列##"
}
]
}
],
"sockets": [
{
"name": "宣告陣列 陣列##"
}
]
},
{
"id": "83d67170-4ba7-45ac-95ae-bb2f314c3ae0",
"help": "建立一個新的陣列,但是內容與另外一個陣列相同。",
"locals": [
{
"sockets": [
{
"name": "陣列##"
}
]
}
],
"sockets": [
{
"name": "宣告陣列 陣列## 並複製陣列",
"suffix": "的內容"
}
]
},
{
"id": "3e56f9c1-29b9-4d0c-99bd-05ccabfa29c2",
"help": "找到陣列裡面第n+1個值。(例,0代表第一項)",
"sockets": [
{
"name": "陣列",
"suffix": "的"
},
{
"name": "第",
"suffix": "+1項"
}
]
},
{
"id": "5b1cc330-b9b1-4062-b8d4-e5032c7a5776",

"help": "將陣列裡面的項目轉換成字符串,並且用指定的字符串隔開",
"sockets": [
{
"name": "將陣列"
},
{
"name": "用",
"suffix": "分隔"
}
]
},
{
"id": "3fab2b88-430a-401e-88b2-2703d614780a",
"help": "把值放到陣列裡的最後一項",
"sockets": [
{
"name": "在陣列",
"suffix": "的最後"
},
{
"name": "加入"
}
]
},
{
"id": "77edf0e9-e5df-4294-81ef-bfa363cda3ee",
"help": "把值放到陣列裡的第一項",
"sockets": [
{
"name": "在陣列",
"suffix": "的最前方"
},
{
"name": "加入"
}
]
},
{
"id": "bf3ed213-4435-4152-bb2c-573ce1721036",
"help": "陣列的長度",
"sockets": [
{
"name": "陣列",
"suffix": "的長度"
}
]
},
{
"id": "f4870f0f-1dbb-4bc7-b8e3-3a00af613689",
"help": "從陣列裡面移除第n+1項。(例,0代表第一項)",
"sockets": [
{
"name": "將陣列",
"suffix": "的"
},
{
"name": "第",
"suffix": "+1項移除"
}
]
},
{
"id": "e137e1a3-fe66-4d15-ae2a-596050acb6a7",
"help": "回傳陣列裡最後一項的值,並將之移除",
"sockets": [
{
"name": "移出陣列",
"suffix": "的最後一項"
}
]
},
{
"id": "00685267-c279-4fc1-bdbd-a07742a76b1e",
"help": "回傳陣列裡第一項的值,並將之移除",
"sockets": [
{
"name": "移出陣列",
"suffix": "的第一項"
}
]
},
{
"id": "b4f115d3-fc52-4d75-a363-5119de21e97c",
"help": "回傳指定的陣列反序的複本",
"sockets": [
{
"name": "陣列",
"suffix": "的反序"
}
]
},
{
"id": "0931d219-707c-41dd-92e6-b1a7c2a0f6b3",
"help": "將兩個陣列連接起來並形成新的陣列",
"sockets": [
{
"name": "陣列"
},
{
"name": "串聯陣列"
}
]
},
{
"id": "9f6f4e21-7abf-4e6f-b9bf-4ce8a1086a21",
"locals": [
{
"sockets": [
{
"name": "索引值"
}
],
"help": "目前項目在陣列中的索引值。(第n項的索引值是n-1。比如說第一項的索引值是0)"
},
{
"sockets": [
{
"name": "項目"
}
],
"help": "目前循環到的項目"
}
],
"help": "對陣列中的每個項目運行方框中的腳本",
"sockets": [
{
"name": "對陣列",
"suffix": "中的每個項目"
}
]
}
]
}
73 changes: 73 additions & 0 deletions languages/javascript/localizations/zh/boolean.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"sectionkey": "boolean",
"name": "真假值",
"help": "布爾代數包含真值、假值以及可以演算得到真假值的運算式",
"blocks": [
{
"id": "770756e8-3a10-4993-b02e-3d1333c98958",
"help": "若運算元皆為真,則真",
"sockets": [
{
"name": ""
},
{
"name": "且"
}
]
},
{
"id": "a56c0d03-5c5c-4459-9aaf-cbbea6eb3abf",
"help": "若運算元中有一者以上為真,則真",
"sockets": [
{
"name": ""
},
{
"name": "或"
}
]
},
{
"id": "cb9ddee8-5ee1-423b-9559-6d2cbb379b80",
"help": "若運算元中有一者為真、一者為假,則真",
"sockets": [
{
"name": ""
},
{
"name": "異或"
}
]
},
{
"id": "138a6840-37cc-4e2d-b44a-af32e673ba56",
"help": "若運算元為假,則真",
"sockets": [
{
"name": "非"
}
]
},
{
"id": "de9f5ebd-2408-4c72-9705-786b1eec2b14",
"help": "若運算元為偶數,則真",
"sockets": [
{
"name": "",
"suffix": "為偶數"
}
]
},
{
"id": "0ac50ac9-2af6-4073-83cf-4f79b4bde163",
"help": "若運算元為奇數,則真",
"sockets": [
{
"name": "",
"suffix": "為奇數"
}
]
}

]
}
Loading