diff --git a/idea/idea-analysis/resources/messages/KotlinBundle.properties b/idea/idea-analysis/resources/messages/KotlinBundle.properties index 9b94a4dc709..7c210fb4ae8 100644 --- a/idea/idea-analysis/resources/messages/KotlinBundle.properties +++ b/idea/idea-analysis/resources/messages/KotlinBundle.properties @@ -172,7 +172,7 @@ fix.move.file.to.package.family=Move file to package-matching directory fix.move.file.to.package.text=Move file to {0} fix.change.package.family=file's package to match directory -fix.change.package.text=Change file's package to {0} +fix.change.package.text=Change file''s package to {0} action.add.import.chooser.title=Imports @@ -273,7 +273,7 @@ scratch.inlay.output.mode.description=Inlay output mode # Code insight dialog.import.on.paste.title3=Select Import to Remove -copy.paste.reference.notification={0} {0, choice, 1#import was|2#imports were} added

Review Added Imports... +copy.paste.reference.notification={0} {0, choice, 1#import was|2#imports were} added

Review Added Imports... # Experimental features experimental.ml.completion=ML Completion for Kotlin @@ -312,7 +312,7 @@ action.j2k.correction.required=Some code in the rest of your project may require action.j2k.correction.errors.single=''{0}'' contains syntax errors, the conversion result may be incorrect action.j2k.correction.errors.multiple=''{0}'' and {1} other Java files contain syntax errors, the conversion result may be incorrect action.j2k.error.cant.save.result=Failed to save conversion result: {0} -action.j2k.error.cant.find.document=couldn't find document for ''{0}'' +action.j2k.error.cant.find.document=couldn''t find document for ''{0}'' action.j2k.error.read.only=file ''{0}'' is read-only action.j2k.errornothing.to.convert=Nothing to convert:
No writable Java files found @@ -779,7 +779,7 @@ declarations.will.move.out.of.scope=Following declarations won't be available ou description.a.reference.to.extracted.type.parameter=a reference to extracted type parameter error.cant.refactor.vararg.functions=Can't refactor the function with variable arguments error.hint.text.cannot.inline.0.from.a.decompiled.file=Cannot inline ''{0}'' from a decompiled file -error.text.can.t.change.signature.of.method=Can't change signature of {0} method +error.text.can.t.change.signature.of.method=Can''t change signature of {0} method error.text.can.t.copy.class.to.the.containing.file=Can't copy class to the containing file error.text.can.t.generate.0.1=Can''t generate {0}: {1} error.text.can.t.introduce.lambda.parameter.for.this.expression=Can't introduce lambda parameter for this expression @@ -1043,7 +1043,7 @@ create.property.0.as.constructor.parameter=Create property ''{0}'' as constructo create.parameter.0=Create parameter ''{0}'' add.property=Add property text.add=Add ' -property.0.to.1=' property ''{0}'' to ''{1}'' +property.0.to.1='' property ''{0}'' to ''{1}'' add.method=Add method add.0.constructor.to.1=Add {0} constructor to ''{1}'' text.secondary=secondary @@ -1074,7 +1074,7 @@ replace.usages.of.0.in.whole.project=Replace usages of ''{0}'' in whole project replace.with.publishedapi.bridge.call=Replace with @PublishedApi bridge call replace.with.generated.publishedapi.bridge.call.0=Replace with generated @PublishedApi bridge call ''{0}'' convert.sealed.sub.class.to.object.fix.family.name=Convert sealed sub-class to object -generate.identity.equals.fix.family.name=Generate equals '& hashCode by identity +generate.identity.equals.fix.family.name=Generate equals \\& hashCode by identity and.delete.initializer=\ and delete initializer change.to.val=Change to val change.to.var=Change to var @@ -1170,7 +1170,7 @@ remove.supertype=Remove supertype remove.0.variance.from.1=Remove ''{0}'' variance from ''{1}'' remove.parameter.0=Remove parameter ''{0}'' remove.redundant.assignment=Remove redundant assignment -there.are.possible.side.effects.found.in.expressions.assigned.to.the.variable.0=There are possible side effects found in expressions assigned to the variable ''{0}''
You can:
-' Remove the entire assignment, or
-' Transform assignment right-hand side into the statement on its own.
+there.are.possible.side.effects.found.in.expressions.assigned.to.the.variable.0=There are possible side effects found in expressions assigned to the variable ''{0}''
You can:
-\\ Remove the entire assignment, or
-\\ Transform assignment right-hand side into the statement on its own.
remove.useless.cast=Remove useless cast remove.useless.elvis.operator=Remove useless elvis operator remove.useless.is.check=Remove useless is check @@ -1288,7 +1288,7 @@ redundant.runcatching.call.may.be.reduced.to.0=Redundant 'runCatching' call may rename.to.fix.text=Rename to ''{0}'' wrap.with.coroutine.scope.fix.text=Wrap function body with 'coroutineScope { ... }' wrap.with.coroutine.scope.fix.text2=Wrap call with 'coroutineScope { ... }' -wrap.with.coroutine.scope.fix.text3=Remove receiver '& wrap with 'coroutineScope { ... }' +wrap.with.coroutine.scope.fix.text3=Remove receiver \\& wrap with 'coroutineScope { ... }' wrap.with.coroutine.scope.fix.family.name=Wrap with coroutineScope ambiguous.coroutinecontext.due.to.coroutinescope.receiver.of.suspend.function=Ambiguous coroutineContext due to CoroutineScope receiver of suspend function replace.with.kotlin.analog.function.family.name=Replace with Kotlin analog @@ -1298,7 +1298,7 @@ add.documentation.fix.text=Add documentation missing.documentation=Missing documentation 0.is.missing.documentation={0} is missing documentation library.should.be.updated.to.be.compatible.with.kotlin.1.3=Library should be updated to be compatible with Kotlin 1.3 -it.s.prohibited.to.call.0.with.min.value.step.since.1.3=It's prohibited to call {0} with MIN_VALUE step since 1.3 +it.s.prohibited.to.call.0.with.min.value.step.since.1.3=It''s prohibited to call {0} with MIN_VALUE step since 1.3 obsolete.coroutine.usage.in.whole.fix.family.name=Fix experimental coroutines usages in the project apply.in.the.project.0=Apply in the project: {0} obsolete.coroutine.usage.fix.family.name=Fix experimental coroutines usage @@ -1386,8 +1386,8 @@ result.of.0.call.is.not.thrown=Result of ''{0}'' call is not thrown optimize.imports=Optimize imports unused.import.directive=Unused import directive lateinit.var.overrides.lateinit.var=lateinit var overrides lateinit var -leaking.this.in.constructor.of.non.final.class.0=Leaking 'this' in constructor of non-final class {0} -leaking.this.in.constructor.of.enum.class.0.with.overridable.members=Leaking 'this' in constructor of enum class {0} (with overridable members) +leaking.this.in.constructor.of.non.final.class.0=Leaking ''this'' in constructor of non-final class {0} +leaking.this.in.constructor.of.enum.class.0.with.overridable.members=Leaking ''this'' in constructor of enum class {0} (with overridable members) accessing.non.final.property.0.in.constructor=Accessing non-final property {0} in constructor calling.non.final.function.0.in.constructor=Calling non-final function {0} in constructor text.can=can @@ -1430,7 +1430,7 @@ should.not.start.with.an.uppercase.letter=should not start with an uppercase let should.not.contain.underscores=should not contain underscores should.start.with.a.lowercase.letter=should start with a lowercase letter should.start.with.an.uppercase.letter=should start with an uppercase letter -doesn.t.match.regex.0=doesn't match regex ''{0}'' +doesn.t.match.regex.0=doesn''t match regex ''{0}'' text.pattern=Pattern: package.name=Package name text.part=part @@ -1450,7 +1450,7 @@ protected.visibility.is.effectively.private.in.a.final.class='protected' visibil apply.also.to.private.members=Apply also to private members apply.also.to.internal.members=Apply also to internal members for.api.stability.it.s.recommended.to.specify.explicitly.declaration.types=For API stability, it's recommended to specify explicitly declaration types -for.api.stability.it.s.recommended.to.specify.explicitly.public.protected.declaration.types=For API stability, it's recommended to specify explicitly public '& protected declaration types +for.api.stability.it.s.recommended.to.specify.explicitly.public.protected.declaration.types=For API stability, it's recommended to specify explicitly public \\& protected declaration types recursive.equals.call=Recursive equals call replace.with.field.fix.text=Replace with 'field' recursive.synthetic.property.accessor=Recursive synthetic property accessor @@ -1598,4 +1598,5 @@ block.body=block body use.expression.body.instead.of.0=Use expression body instead of {0} convert.to.expression.body.fix.text=Convert to expression body when.has.only.else.branch.and.should.be.simplified='when' has only 'else' branch and should be simplified -wrap.unary.operator.quickfix.text=Wrap unary operator and value with () \ No newline at end of file +wrap.unary.operator.quickfix.text=Wrap unary operator and value with () +make.0.1=Make ''{0}'' {1} \ No newline at end of file diff --git a/idea/src/org/jetbrains/kotlin/idea/inspections/jdk2k/ReplaceJavaStaticMethodWithKotlinAnalogInspection.kt b/idea/src/org/jetbrains/kotlin/idea/inspections/jdk2k/ReplaceJavaStaticMethodWithKotlinAnalogInspection.kt index cae04b97ec6..5327e073bdf 100644 --- a/idea/src/org/jetbrains/kotlin/idea/inspections/jdk2k/ReplaceJavaStaticMethodWithKotlinAnalogInspection.kt +++ b/idea/src/org/jetbrains/kotlin/idea/inspections/jdk2k/ReplaceJavaStaticMethodWithKotlinAnalogInspection.kt @@ -52,7 +52,7 @@ class ReplaceJavaStaticMethodWithKotlinAnalogInspection : AbstractKotlinInspecti }) private class ReplaceWithKotlinAnalogFunction(private val replacement: Replacement) : LocalQuickFix { - override fun getName() = "${KotlinBundle.message("replace.with.kotlin.analog.function.text")}${replacement.kotlinFunctionShortName}" + override fun getName() = KotlinBundle.message("replace.with.kotlin.analog.function.text", replacement.kotlinFunctionShortName) override fun getFamilyName() = KotlinBundle.message("replace.with.kotlin.analog.function.family.name")