Add Japanese translations for v4.0.2 (again)

pull/4853/head
Kazuhito Yokoi 2024-08-13 23:48:28 +09:00
parent e67afb2611
commit b5785dab9c
4 changed files with 9 additions and 5 deletions

View File

@ -562,7 +562,9 @@
"types": { "types": {
"local": "Local", "local": "Local",
"examples": "Examples" "examples": "Examples"
} },
"type": "Type",
"name": "Name"
}, },
"palette": { "palette": {
"noInfo": "no information available", "noInfo": "no information available",

View File

@ -562,7 +562,9 @@
"types": { "types": {
"local": "ローカル", "local": "ローカル",
"examples": "サンプル" "examples": "サンプル"
} },
"type": "型",
"name": "名前"
}, },
"palette": { "palette": {
"noInfo": "情報がありません", "noInfo": "情報がありません",

View File

@ -839,10 +839,10 @@ RED.library = (function() {
if (file && file.label && !file.children) { if (file && file.label && !file.children) {
$.get("library/"+file.library+"/"+file.type+"/"+file.path, function(data) { $.get("library/"+file.library+"/"+file.type+"/"+file.path, function(data) {
//TODO: nls + sanitize //TODO: nls + sanitize
var propRow = $('<tr class="red-ui-help-info-row"><td>Type</td><td></td></tr>').appendTo(table); var propRow = $('<tr class="red-ui-help-info-row"><td>'+RED._("library.type")+'</td><td></td></tr>').appendTo(table);
$(propRow.children()[1]).text(activeLibrary.type); $(propRow.children()[1]).text(activeLibrary.type);
if (file.props.hasOwnProperty('name')) { if (file.props.hasOwnProperty('name')) {
propRow = $('<tr class="red-ui-help-info-row"><td>Name</td><td>'+file.props.name+'</td></tr>').appendTo(table); propRow = $('<tr class="red-ui-help-info-row"><td>'+RED._("library.name")+'</td><td>'+file.props.name+'</td></tr>').appendTo(table);
$(propRow.children()[1]).text(file.props.name); $(propRow.children()[1]).text(file.props.name);
} }
for (var p in file.props) { for (var p in file.props) {

View File

@ -204,7 +204,7 @@ RED.sidebar.info = (function() {
propertiesPanelHeaderIcon.empty(); propertiesPanelHeaderIcon.empty();
RED.utils.createNodeIcon({type:"_selection_"}).appendTo(propertiesPanelHeaderIcon); RED.utils.createNodeIcon({type:"_selection_"}).appendTo(propertiesPanelHeaderIcon);
propertiesPanelHeaderLabel.text("Selection"); propertiesPanelHeaderLabel.text(RED._("sidebar.info.selection"));
propertiesPanelHeaderReveal.hide(); propertiesPanelHeaderReveal.hide();
propertiesPanelHeaderHelp.hide(); propertiesPanelHeaderHelp.hide();
propertiesPanelHeaderCopyLink.hide(); propertiesPanelHeaderCopyLink.hide();