IDEA-234984 fixes after code review
[idea/community.git] / java / idea-ui / src / com / intellij / ide / util / projectWizard / importSources / impl / JavaProjectStructureDetector.java
index 2c3dd03ea1f46f7cd5a75849f34ac7f2b96d1117..492e8b79efae96a6b075d2eeb2ced32953b7d3ab 100644 (file)
@@ -10,7 +10,9 @@ import com.intellij.ide.util.projectWizard.ProjectWizardStepFactory;
 import com.intellij.ide.util.projectWizard.importSources.JavaSourceRootDetectionUtil;
 import com.intellij.ide.util.projectWizard.importSources.JavaSourceRootDetector;
 import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder;
 import com.intellij.ide.util.projectWizard.importSources.JavaSourceRootDetectionUtil;
 import com.intellij.ide.util.projectWizard.importSources.JavaSourceRootDetector;
 import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder;
+import com.intellij.java.JavaBundle;
 import com.intellij.util.NullableFunction;
 import com.intellij.util.NullableFunction;
+import org.jetbrains.annotations.Nls;
 import org.jetbrains.annotations.NotNull;
 
 import javax.swing.*;
 import org.jetbrains.annotations.NotNull;
 
 import javax.swing.*;
@@ -21,8 +23,8 @@ public class JavaProjectStructureDetector extends JavaSourceRootDetector {
 
   @NotNull
   @Override
 
   @NotNull
   @Override
-  protected String getLanguageName() {
-    return "Java";
+  protected @Nls(capitalization = Nls.Capitalization.Sentence) String getLanguageName() {
+    return JavaBundle.message("options.java.display.name");
   }
 
   @NotNull
   }
 
   @NotNull