i18n: Add bundle for idea-git
This commit is contained in:
committed by
Dmitry Gridin
parent
3b931514ac
commit
59b5505379
@@ -0,0 +1,2 @@
|
||||
j2k.extra.commit.description=Extra commit for .java > .kt renames
|
||||
j2k.extra.commit.commit.message=Rename .java to .kt
|
||||
@@ -10,6 +10,7 @@ import com.intellij.openapi.util.Couple
|
||||
import com.intellij.openapi.vcs.FilePath
|
||||
import git4idea.checkin.GitCheckinExplicitMovementProvider
|
||||
import org.jetbrains.kotlin.idea.actions.pathBeforeJ2K
|
||||
import org.jetbrains.kotlin.idea.git.KotlinGitBundle
|
||||
import java.util.*
|
||||
|
||||
class KotlinExplicitMovementProvider : GitCheckinExplicitMovementProvider() {
|
||||
@@ -18,11 +19,11 @@ class KotlinExplicitMovementProvider : GitCheckinExplicitMovementProvider() {
|
||||
}
|
||||
|
||||
override fun getDescription(): String {
|
||||
return "Extra commit for .java > .kt renames"
|
||||
return KotlinGitBundle.message("j2k.extra.commit.description")
|
||||
}
|
||||
|
||||
override fun getCommitMessage(oldCommitMessage: String): String {
|
||||
return "Rename .java to .kt"
|
||||
return KotlinGitBundle.message("j2k.extra.commit.commit.message")
|
||||
}
|
||||
|
||||
override fun collectExplicitMovements(
|
||||
|
||||
@@ -11,6 +11,7 @@ import com.intellij.openapi.util.registry.Registry
|
||||
import com.intellij.openapi.vcs.FilePath
|
||||
import git4idea.checkin.GitCheckinExplicitMovementProvider
|
||||
import org.jetbrains.kotlin.idea.actions.pathBeforeJ2K
|
||||
import org.jetbrains.kotlin.idea.git.KotlinGitBundle
|
||||
import java.util.*
|
||||
|
||||
class KotlinExplicitMovementProvider : GitCheckinExplicitMovementProvider() {
|
||||
@@ -23,11 +24,11 @@ class KotlinExplicitMovementProvider : GitCheckinExplicitMovementProvider() {
|
||||
}
|
||||
|
||||
override fun getDescription(): String {
|
||||
return "Extra commit for .java > .kt renames"
|
||||
return KotlinGitBundle.message("j2k.extra.commit.description")
|
||||
}
|
||||
|
||||
override fun getCommitMessage(oldCommitMessage: String): String {
|
||||
return "Rename .java to .kt"
|
||||
return KotlinGitBundle.message("j2k.extra.commit.commit.message")
|
||||
}
|
||||
|
||||
override fun collectExplicitMovements(
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.idea.git
|
||||
|
||||
import com.intellij.CommonBundle
|
||||
import org.jetbrains.annotations.NonNls
|
||||
import org.jetbrains.annotations.PropertyKey
|
||||
import org.jetbrains.kotlin.idea.core.util.KotlinBundleBase
|
||||
import java.util.*
|
||||
|
||||
object KotlinGitBundle : KotlinBundleBase() {
|
||||
@NonNls
|
||||
private const val BUNDLE = "org.jetbrains.kotlin.idea.git.KotlinGitBundle"
|
||||
|
||||
override fun createBundle(): ResourceBundle = ResourceBundle.getBundle(BUNDLE)
|
||||
|
||||
@JvmStatic
|
||||
fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any?): String {
|
||||
return CommonBundle.message(bundle, key, *params)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user