Switched to use Resource Bundles in Kotlin Compiler Settings Tab
Added mnemonics.
This commit is contained in:
@@ -285,3 +285,17 @@ replace.by.reconstructed.type=Replace by ''{0}''
|
|||||||
|
|
||||||
suppress.warnings.family=Suppress Warnings
|
suppress.warnings.family=Suppress Warnings
|
||||||
suppress.warning.for=Suppress ''{0}'' for {1} {2}
|
suppress.warning.for=Suppress ''{0}'' for {1} {2}
|
||||||
|
|
||||||
|
# Kotlin Compiler Settings Tab
|
||||||
|
|
||||||
|
#Common
|
||||||
|
kotlin.compiler.option.generate.no.warnings=Generate no &warnings
|
||||||
|
kotlin.compiler.option.additional.command.line.parameters=&Additional command line parameters:
|
||||||
|
kotlin.compiler.option.additional.command.line.parameters.dialog.title=Additional command line parameters
|
||||||
|
|
||||||
|
# Kotlin to JVM
|
||||||
|
kotlin.compiler.jvm.option.panel.title=Kotlin to JVM
|
||||||
|
|
||||||
|
# Kotlin to JavaScript
|
||||||
|
kotlin.compiler.js.option.panel.title=Kotlin to JavaScript
|
||||||
|
kotlin.compiler.js.option.generate.sourcemaps=Generate &source maps
|
||||||
|
|||||||
+5
-5
@@ -27,7 +27,7 @@
|
|||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties>
|
||||||
<selected value="false"/>
|
<selected value="false"/>
|
||||||
<text value="Generate no warnings"/>
|
<text resource-bundle="org/jetbrains/jet/plugin/JetBundle" key="kotlin.compiler.option.generate.no.warnings"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
<component id="ba279" class="javax.swing.JLabel" binding="additionalArgsLabel">
|
<component id="ba279" class="javax.swing.JLabel" binding="additionalArgsLabel">
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties>
|
||||||
<text value="Additional command line parameters:"/>
|
<text resource-bundle="org/jetbrains/jet/plugin/JetBundle" key="kotlin.compiler.option.additional.command.line.parameters"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
<component id="7a827" class="com.intellij.ui.RawCommandLineEditor" binding="additionalArgsOptionsField">
|
<component id="7a827" class="com.intellij.ui.RawCommandLineEditor" binding="additionalArgsOptionsField">
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
<clientProperties>
|
<clientProperties>
|
||||||
<BorderFactoryClass class="java.lang.String" value="com.intellij.ui.IdeBorderFactory$PlainSmallWithoutIndent"/>
|
<BorderFactoryClass class="java.lang.String" value="com.intellij.ui.IdeBorderFactory$PlainSmallWithoutIndent"/>
|
||||||
</clientProperties>
|
</clientProperties>
|
||||||
<border type="etched" title="Kotlin to JVM"/>
|
<border type="etched" title-resource-bundle="org/jetbrains/jet/plugin/JetBundle" title-key="kotlin.compiler.jvm.option.panel.title"/>
|
||||||
<children/>
|
<children/>
|
||||||
</grid>
|
</grid>
|
||||||
<grid id="98e8a" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
<grid id="98e8a" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||||
@@ -73,14 +73,14 @@
|
|||||||
<clientProperties>
|
<clientProperties>
|
||||||
<BorderFactoryClass class="java.lang.String" value="com.intellij.ui.IdeBorderFactory$PlainSmallWithoutIndent"/>
|
<BorderFactoryClass class="java.lang.String" value="com.intellij.ui.IdeBorderFactory$PlainSmallWithoutIndent"/>
|
||||||
</clientProperties>
|
</clientProperties>
|
||||||
<border type="etched" title="Kotlin to JavaScript"/>
|
<border type="etched" title-resource-bundle="org/jetbrains/jet/plugin/JetBundle" title-key="kotlin.compiler.js.option.panel.title"/>
|
||||||
<children>
|
<children>
|
||||||
<component id="1fbe0" class="javax.swing.JCheckBox" binding="generateSourceMapsCheckBox" default-binding="true">
|
<component id="1fbe0" class="javax.swing.JCheckBox" binding="generateSourceMapsCheckBox" default-binding="true">
|
||||||
<constraints>
|
<constraints>
|
||||||
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties>
|
||||||
<text value="Generate source maps"/>
|
<text resource-bundle="org/jetbrains/jet/plugin/JetBundle" key="kotlin.compiler.js.option.generate.sourcemaps"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
</children>
|
</children>
|
||||||
|
|||||||
+2
-1
@@ -28,6 +28,7 @@ import org.jetbrains.annotations.Nullable;
|
|||||||
import org.jetbrains.jet.cli.common.arguments.CommonCompilerArguments;
|
import org.jetbrains.jet.cli.common.arguments.CommonCompilerArguments;
|
||||||
import org.jetbrains.jet.cli.common.arguments.K2JSCompilerArguments;
|
import org.jetbrains.jet.cli.common.arguments.K2JSCompilerArguments;
|
||||||
import org.jetbrains.jet.compiler.AdditionalCompilerSettings;
|
import org.jetbrains.jet.compiler.AdditionalCompilerSettings;
|
||||||
|
import org.jetbrains.jet.plugin.JetBundle;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
|
||||||
@@ -51,7 +52,7 @@ public class KotlinCompilerConfigurableTab implements SearchableConfigurable, Co
|
|||||||
this.additionalCompilerSettings = KotlinAdditionalCompilerSettings.getInstance(ep.getProject()).getSettings();
|
this.additionalCompilerSettings = KotlinAdditionalCompilerSettings.getInstance(ep.getProject()).getSettings();
|
||||||
|
|
||||||
additionalArgsOptionsField.attachLabel(additionalArgsLabel);
|
additionalArgsOptionsField.attachLabel(additionalArgsLabel);
|
||||||
additionalArgsOptionsField.setDialogCaption(null);
|
additionalArgsOptionsField.setDialogCaption(JetBundle.message("kotlin.compiler.option.additional.command.line.parameters.dialog.title"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|||||||
Reference in New Issue
Block a user