[platform] i18n: internationalize 'Other' and 'Language injection' intention categories
authorNikolay Chashnikov <Nikolay.Chashnikov@jetbrains.com>
Tue, 29 Jun 2021 09:42:32 +0000 (09:42 +0000)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Tue, 29 Jun 2021 09:42:40 +0000 (09:42 +0000)
GitOrigin-RevId: 7892d379a96a2bb0f3d7fc880a97aae744a4fb05

platform/lang-api/resources/messages/LangBundle.properties
platform/platform-resources/src/META-INF/LangExtensions.xml
platform/platform-resources/src/META-INF/PlatformExtensions.xml
platform/vcs-impl/resources/META-INF/VcsExtensions.xml
plugins/IntelliLang/src/META-INF/plugin.xml

index fd3c62e37fe4f8ef61684b852cad25fe65f458f7..4e8aa4bfb1dd5a05d8204003ce2252339184c3b3 100644 (file)
@@ -460,6 +460,9 @@ run.toolwindow.empty.text.0=To run your code, do one of the following:
 run.toolwindow.empty.text.1=\u2013 Click the Run icon in the editor gutter
 run.toolwindow.empty.text.2=\u2013 Select "Run..." in the editor context menu
 
+intention.category.other=Other
+intention.category.language.injection=Language injection
+
 # The < and > characters delimit the part of text that becomes a link. {0} is the keyboard shortcut for the action.
 run.toolwindow.empty.text.3=\u2013 Launch a <run configuration>{0}
 run.toolwindow.empty.text.help=Running applications
index 4cb1de9a6abd55723a4f74035c5035cbcaa0368b..e7c8924b532dd5be630f47216a6b0b4cb0f12009 100644 (file)
     </intentionAction>
     <intentionAction>
       <className>com.intellij.codeInsight.intention.impl.QuickEditAction</className>
-      <category>Language injection</category>
+      <bundleName>messages.LangBundle</bundleName>
+      <categoryKey>intention.category.language.injection</categoryKey>
     </intentionAction>
     <intentionAction>
       <className>com.intellij.codeInsight.intention.impl.ConvertRelativePathToAbsoluteIntentionAction</className>
-      <category>Other</category>
+      <bundleName>messages.LangBundle</bundleName>
+      <categoryKey>intention.category.other</categoryKey>
     </intentionAction>
     <intentionAction>
       <className>com.intellij.codeInsight.intention.impl.ConvertAbsolutePathToRelativeIntentionAction</className>
-      <category>Other</category>
+      <bundleName>messages.LangBundle</bundleName>
+      <categoryKey>intention.category.other</categoryKey>
     </intentionAction>
     <intentionAction>
       <className>com.intellij.ide.scratch.ScratchFromSelectionIntention</className>
-      <category>Other</category>
+      <bundleName>messages.LangBundle</bundleName>
+      <categoryKey>intention.category.other</categoryKey>
     </intentionAction>
 
     <intentionMenuContributor implementation="com.intellij.codeInsight.daemon.impl.DoNotShowInspectionIntentionMenuContributor"/>
index fcdb6979a2acbc47ce86df02ca867da7b76a361d..62c8d16541a8979483c980be6a824550f2ecd5b8 100644 (file)
 
     <intentionAction>
       <className>com.intellij.openapi.editor.actions.FlipCommaIntention</className>
-      <category>Other</category>
+      <bundleName>messages.LangBundle</bundleName>
+      <categoryKey>intention.category.other</categoryKey>
     </intentionAction>
 
     <daemon.intentionActionFilter implementation="com.intellij.psi.IntentionFilterOwnerActionFilter"/>
index 8e7db4c710dedd056158bf8678c7f1897e88d6c3..bffe66c37e806a9bc1fbf8b42c9cbc9c363a3429 100644 (file)
@@ -90,7 +90,8 @@
 
     <intentionAction>
       <className>com.intellij.vcs.RollbackCurrentLineIntention</className>
-      <category>Other</category>
+      <bundleName>messages.LangBundle</bundleName>
+      <categoryKey>intention.category.other</categoryKey>
     </intentionAction>
 
     <openapi.vcs.history.actions.ShowDiffAfterWithLocalAction.ExtensionProvider implementation="com.intellij.openapi.vcs.changes.shelf.DiffShelvedChangesWithLocalActionProvider"/>
index 1d39ad50cf866e212cf386af0c404c1eca0948f1..8bb727ff43e5f5f55748921f75a6b928a3c68b5e 100644 (file)
   <extensions defaultExtensionNs="com.intellij">
     <intentionAction>
       <className>org.intellij.plugins.intelliLang.inject.InjectLanguageAction</className>
-      <category>Language injection</category>
+      <bundleName>messages.LangBundle</bundleName>
+      <categoryKey>intention.category.language.injection</categoryKey>
     </intentionAction>
     <intentionAction>
       <className>org.intellij.plugins.intelliLang.inject.UnInjectLanguageAction</className>
-      <category>Language injection</category>
+      <bundleName>messages.LangBundle</bundleName>
+      <categoryKey>intention.category.language.injection</categoryKey>
     </intentionAction>
     <intentionAction>
       <className>org.intellij.plugins.intelliLang.inject.EditInjectionSettingsAction</className>
-      <category>Language injection</category>
+      <bundleName>messages.LangBundle</bundleName>
+      <categoryKey>intention.category.language.injection</categoryKey>
     </intentionAction>
 
     <highlightErrorFilter implementation="org.intellij.plugins.intelliLang.inject.FrankensteinErrorFilter"/>