diff --git a/idea/idea-live-templates/src/org/jetbrains/kotlin/idea/liveTemplates/KotlinTemplateContextType.java b/idea/idea-live-templates/src/org/jetbrains/kotlin/idea/liveTemplates/KotlinTemplateContextType.java index a7b94c41764..1aeb3f42e24 100644 --- a/idea/idea-live-templates/src/org/jetbrains/kotlin/idea/liveTemplates/KotlinTemplateContextType.java +++ b/idea/idea-live-templates/src/org/jetbrains/kotlin/idea/liveTemplates/KotlinTemplateContextType.java @@ -31,6 +31,7 @@ import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jetbrains.kotlin.KtNodeTypes; +import org.jetbrains.kotlin.idea.KotlinBundle; import org.jetbrains.kotlin.idea.KotlinLanguage; import org.jetbrains.kotlin.lexer.KtTokens; import org.jetbrains.kotlin.psi.*; @@ -106,7 +107,7 @@ public abstract class KotlinTemplateContextType extends TemplateContextType { public static class TopLevel extends KotlinTemplateContextType { public TopLevel() { - super("KOTLIN_TOPLEVEL", "Top-level", Generic.class); + super("KOTLIN_TOPLEVEL", KotlinBundle.message("top.level"), Generic.class); } @Override @@ -135,7 +136,7 @@ public abstract class KotlinTemplateContextType extends TemplateContextType { public static class ObjectDeclaration extends KotlinTemplateContextType { public ObjectDeclaration() { - super("KOTLIN_OBJECT_DECLARATION", "Object declaration", Generic.class); + super("KOTLIN_OBJECT_DECLARATION", KotlinBundle.message("object.declaration"), Generic.class); } @Override @@ -147,7 +148,7 @@ public abstract class KotlinTemplateContextType extends TemplateContextType { public static class Class extends KotlinTemplateContextType { public Class() { - super("KOTLIN_CLASS", "Class", Generic.class); + super("KOTLIN_CLASS", KotlinBundle.message("class"), Generic.class); } @Override @@ -158,7 +159,7 @@ public abstract class KotlinTemplateContextType extends TemplateContextType { public static class Statement extends KotlinTemplateContextType { public Statement() { - super("KOTLIN_STATEMENT", "Statement", Generic.class); + super("KOTLIN_STATEMENT", KotlinBundle.message("statement"), Generic.class); } @Override @@ -175,7 +176,7 @@ public abstract class KotlinTemplateContextType extends TemplateContextType { public static class Expression extends KotlinTemplateContextType { public Expression() { - super("KOTLIN_EXPRESSION", "Expression", Generic.class); + super("KOTLIN_EXPRESSION", KotlinBundle.message("expression"), Generic.class); } @Override @@ -188,7 +189,7 @@ public abstract class KotlinTemplateContextType extends TemplateContextType { public static class Comment extends KotlinTemplateContextType { public Comment() { - super("KOTLIN_COMMENT", "Comment", Generic.class); + super("KOTLIN_COMMENT", KotlinBundle.message("comment"), Generic.class); } @Override diff --git a/idea/resources/messages/KotlinBundle.properties b/idea/resources/messages/KotlinBundle.properties index 5436b0f7450..a8c444123c3 100644 --- a/idea/resources/messages/KotlinBundle.properties +++ b/idea/resources/messages/KotlinBundle.properties @@ -1815,4 +1815,10 @@ add.underscores=Add underscores excluded.methods=Excluded methods use.of.0.method.instead.of.property.access.syntax=Use of {0} method instead of property access syntax use.property.access.syntax=Use property access syntax -convert.to.object.declaration=Convert to object declaration \ No newline at end of file +convert.to.object.declaration=Convert to object declaration +comment=Comment +expression=Expression +statement=Statement +class=Class +object.declaration=Object declaration +top.level=Top-level \ No newline at end of file