diff --git a/json/src/com/intellij/json/JsonBundle.properties b/json/src/com/intellij/json/JsonBundle.properties index b73ef1f4fddf..516c91f6ed26 100644 --- a/json/src/com/intellij/json/JsonBundle.properties +++ b/json/src/com/intellij/json/JsonBundle.properties @@ -37,3 +37,6 @@ quickfix.add.double.quotes.desc=Wrap with double quotes surround.with.object.literal.desc=object literal json.template.context.type=JSON + +#json schema +json.schema.add.schema.chooser.title=Select JSON Schema File \ No newline at end of file diff --git a/json/src/com/jetbrains/jsonSchema/JsonSchemaMappingsConfigurable.java b/json/src/com/jetbrains/jsonSchema/JsonSchemaMappingsConfigurable.java index 6ee9865e6c47..0d023655316f 100644 --- a/json/src/com/jetbrains/jsonSchema/JsonSchemaMappingsConfigurable.java +++ b/json/src/com/jetbrains/jsonSchema/JsonSchemaMappingsConfigurable.java @@ -1,5 +1,6 @@ package com.jetbrains.jsonSchema; +import com.intellij.json.JsonBundle; import com.intellij.openapi.Disposable; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnActionEvent; @@ -131,7 +132,8 @@ public class JsonSchemaMappingsConfigurable extends MasterDetailsComponent imple private void addProjectSchema() { final VirtualFile file = - FileChooser.chooseFile(FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor(), myProject, null); + FileChooser.chooseFile(FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor().withTitle( + JsonBundle.message("json.schema.add.schema.chooser.title")), myProject, null); if (file != null) { final String relativePath = VfsUtil.getRelativePath(file, myProject.getBaseDir()); if (relativePath == null) { diff --git a/json/src/com/jetbrains/jsonSchema/JsonSchemaMappingsView.java b/json/src/com/jetbrains/jsonSchema/JsonSchemaMappingsView.java index e9e6c1acf48b..eb43bee8ea20 100644 --- a/json/src/com/jetbrains/jsonSchema/JsonSchemaMappingsView.java +++ b/json/src/com/jetbrains/jsonSchema/JsonSchemaMappingsView.java @@ -1,5 +1,6 @@ package com.jetbrains.jsonSchema; +import com.intellij.json.JsonBundle; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.CommonShortcuts; import com.intellij.openapi.application.ModalityState; @@ -81,7 +82,7 @@ public class JsonSchemaMappingsView { final JPanel wrapper = new JPanel(new BorderLayout()); final JPanel wrapper2 = new JPanel(new BorderLayout()); mySchemaField = new TextFieldWithBrowseButton(); - SwingHelper.installFileCompletionAndBrowseDialog(myProject, mySchemaField, "Select JSON Schema File", + SwingHelper.installFileCompletionAndBrowseDialog(myProject, mySchemaField, JsonBundle.message("json.schema.add.schema.chooser.title"), FileChooserDescriptorFactory.createSingleFileDescriptor()); attachNavigateToSchema(); final JBLabel label = new JBLabel("JSON schema file:");