瀏覽代碼

added translation of samplecount (#28470)

ycw 1 年之前
父節點
當前提交
0e69e28060
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 1 1
      editor/js/Sidebar.Project.Image.js
  2. 4 0
      editor/js/Strings.js

+ 1 - 1
editor/js/Sidebar.Project.Image.js

@@ -34,7 +34,7 @@ function SidebarProjectImage( editor ) {
 	const samplesNumber = new UIInteger( 16 ).setRange( pathTracerMinSamples, pathTracerMaxSamples );
 
 	const samplesRow = new UIRow();
-	samplesRow.add( new UIText( 'Sample Count' ).setClass( 'Label' ) ); // TODO: l10n
+	samplesRow.add( new UIText( strings.getKey( 'sidebar/project/image/sampleCount' ) ).setClass( 'Label' ) );
 	samplesRow.add( samplesNumber );
 
 	container.add( samplesRow );

+ 4 - 0
editor/js/Strings.js

@@ -352,6 +352,7 @@ function Strings( config ) {
 			'sidebar/project/app/publish': 'Publish',
 
 			'sidebar/project/image': 'Image',
+			'sidebar/project/image/sampleCount': 'Sample Count',
 			'sidebar/project/video': 'Video',
 
 			'sidebar/project/shading': 'Shading',
@@ -745,6 +746,7 @@ function Strings( config ) {
 			'sidebar/project/app/publish': 'Publier',
 
 			'sidebar/project/image': 'Image',
+			'sidebar/project/image/sampleCount': 'Nombre d\'échantillons',
 			'sidebar/project/video': 'Video',
 
 			'sidebar/project/shading': 'Shading',
@@ -1138,6 +1140,7 @@ function Strings( config ) {
 			'sidebar/project/app/publish': '发布',
 
 			'sidebar/project/image': 'Image',
+			'sidebar/project/image/sampleCount': '样本计数',
 			'sidebar/project/video': '视频',
 
 			'sidebar/project/shading': 'Shading',
@@ -1531,6 +1534,7 @@ function Strings( config ) {
 			'sidebar/project/app/publish': 'アプリファイルとして保存',
 
 			'sidebar/project/image': '画像',
+			'sidebar/project/image/sampleCount': 'サンプル数',
 			'sidebar/project/video': '動画',
 
 			'sidebar/project/shading': 'シェーディング',