i18n: add bundle for idea-live-templates

This commit is contained in:
Dmitry Gridin
2020-03-10 17:38:37 +07:00
parent 3e76678726
commit 99a7764b04
2 changed files with 14 additions and 7 deletions
@@ -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