mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	modify translate project diff
This commit is contained in:
		| @@ -1747,7 +1747,7 @@ RED.diff = (function() { | ||||
|                         try { | ||||
|                             commonFlow = JSON.parse(commonVersion.content||"[]"); | ||||
|                         } catch(err) { | ||||
|                             console.log("Common Version doesn't contain valid JSON:",commonVersionUrl); | ||||
|                             console.log(RED._("diff.commonVersionError"),commonVersionUrl); | ||||
|                             console.log(err); | ||||
|                             return; | ||||
|                         } | ||||
| @@ -1755,7 +1755,7 @@ RED.diff = (function() { | ||||
|                     try { | ||||
|                         oldFlow = JSON.parse(oldVersion.content||"[]"); | ||||
|                     } catch(err) { | ||||
|                         console.log("Old Version doesn't contain valid JSON:",oldVersionUrl); | ||||
|                         console.log(RED._("diff.oldVersionError"),oldVersionUrl); | ||||
|                         console.log(err); | ||||
|                         return; | ||||
|                     } | ||||
| @@ -1765,7 +1765,7 @@ RED.diff = (function() { | ||||
|                     try { | ||||
|                         newFlow = JSON.parse(newVersion.content||"[]"); | ||||
|                     } catch(err) { | ||||
|                         console.log("New Version doesn't contain valid JSON:",newFlow); | ||||
|                         console.log(RED._("diff.newVersionError"),newFlow); | ||||
|                         console.log(err); | ||||
|                         return; | ||||
|                     } | ||||
| @@ -1801,7 +1801,7 @@ RED.diff = (function() { | ||||
|  | ||||
|             } else { | ||||
|                 if (commitOptions.unmerged) { | ||||
|                     conflictHeader = $('<span style="float: right;"><span>'+resolvedConflicts+'</span> of <span>'+unresolvedConflicts+'</span> conflicts resolved</span>').appendTo(content); | ||||
|                     conflictHeader = $('<span style="float: right;">'+RED._("diff.conflictHeader",{resolved:resolvedConflicts, unresolved:unresolvedConflicts})+'</span>').appendTo(content); | ||||
|                 } | ||||
|                 hunks.forEach(function(hunk) { | ||||
|                     var diffRow = $('<tr class="node-text-diff-header">').appendTo(codeBody); | ||||
| @@ -1914,7 +1914,7 @@ RED.diff = (function() { | ||||
|                                         diffRow.remove(); | ||||
|                                         addedRows.find(".linetext").addClass('added'); | ||||
|                                         conflictHeader.empty(); | ||||
|                                         $('<span><span>'+resolvedConflicts+'</span> of <span>'+unresolvedConflicts+'</span> conflicts resolved</span>').appendTo(conflictHeader); | ||||
|                                         $('<span>'+RED._("diff.conflictHeader",{resolved:resolvedConflicts, unresolved:unresolvedConflicts})+'</span>').appendTo(conflictHeader); | ||||
|  | ||||
|                                         conflictResolutions[file.file] = conflictResolutions[file.file] || {}; | ||||
|                                         conflictResolutions[file.file][hunk.localChangeStart] = { | ||||
|   | ||||
| @@ -198,7 +198,11 @@ | ||||
|         "noBinaryFileShowed": "Cannot show binary file contents", | ||||
|         "viewCommitDiff": "View Commit Changes", | ||||
|         "compareChanges": "Compare Changes", | ||||
|         "saveConflict": "Save conflict resolution" | ||||
|         "saveConflict": "Save conflict resolution", | ||||
|         "conflictHeader": "<span>__resolved__</span> of <span>__unresolved__</span> conflicts resolved", | ||||
|         "commonVersionError": "Common Version doesn't contain valid JSON:", | ||||
|         "oldVersionError": "Old Version doesn't contain valid JSON:", | ||||
|         "newVersionError": "New Version doesn't contain valid JSON:" | ||||
|     }, | ||||
|     "subflow": { | ||||
|         "editSubflow": "Edit flow template: __name__", | ||||
|   | ||||
| @@ -193,7 +193,11 @@ | ||||
|         "noBinaryFileShowed": "バイナリファイルの中身は表示することができません", | ||||
|         "viewCommitDiff": "コミットの内容を表示", | ||||
|         "compareChanges": "変更を比較", | ||||
|         "saveConflict": "解決して保存" | ||||
|         "saveConflict": "解決して保存", | ||||
|         "conflictHeader": "<span>__unresolved__</span> 個中 <span>__resolved__</span> 個のコンフリクトを解決", | ||||
|         "commonVersionError": "共通バージョンは正しいJSON形式ではありません:", | ||||
|         "oldVersionError": "古いバージョンは正しいJSON形式ではありません:", | ||||
|         "newVersionError": "新しいバージョンは正しいJSON形式ではありません:" | ||||
|     }, | ||||
|     "subflow": { | ||||
|         "editSubflow": "フローのテンプレートを編集: __name__", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user