action_basics: adjust Action texts to not trigger "wrong case" inspection

This commit is contained in:
Yann Cébron 2022-11-30 17:48:14 +01:00
parent 53a5d8c397
commit dec645c933
2 changed files with 10 additions and 10 deletions

View File

@ -1,8 +1,8 @@
# Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. # Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
# Default plugin action and group texts and descriptions go here. # Default plugin action and group texts and descriptions go here.
# All of these example "translated" strings have suffix "[en]" to symbolize they are translated. # All of these example "translated" strings have suffix " [EN]" to symbolize they are translated.
# The suffix is meaningless to the localization process. # The suffix is meaningless to the localization process.
action.org.intellij.sdk.action.CustomGroupedAction.text=A Popup Action[en] action.org.intellij.sdk.action.CustomGroupedAction.text=A Popup Action [EN]
action.org.intellij.sdk.action.CustomGroupedAction.description=SDK popup grouped action example[en] action.org.intellij.sdk.action.CustomGroupedAction.description=SDK popup grouped action example [EN]
group.org.intellij.sdk.action.CustomDefaultActionGroup.text=Popup Grouped Actions[en] group.org.intellij.sdk.action.CustomDefaultActionGroup.text=Popup Grouped Actions [EN]
group.org.intellij.sdk.action.CustomDefaultActionGroup.description=Custom defaultActionGroup demo[en] group.org.intellij.sdk.action.CustomDefaultActionGroup.description=Custom defaultActionGroup demo [EN]

View File

@ -168,10 +168,10 @@ Note there are two sets of `text` and `description` translations, one for the ac
Conceivably, there could be another set of translations for the action if it used the [`<override-text>`](plugin_configuration_file.md#idea-plugin__actions__action__override-text) attribute. Conceivably, there could be another set of translations for the action if it used the [`<override-text>`](plugin_configuration_file.md#idea-plugin__actions__action__override-text) attribute.
``` ```
action.org.intellij.sdk.action.CustomGroupedAction.text=A Popup Action[en] action.org.intellij.sdk.action.CustomGroupedAction.text=A Popup Action [EN]
action.org.intellij.sdk.action.CustomGroupedAction.description=SDK popup grouped action example[en] action.org.intellij.sdk.action.CustomGroupedAction.description=SDK popup grouped action example [EN]
group.org.intellij.sdk.action.CustomDefaultActionGroup.text=Popup Grouped Actions[en] group.org.intellij.sdk.action.CustomDefaultActionGroup.text=Popup Grouped Actions [EN]
group.org.intellij.sdk.action.CustomDefaultActionGroup.description=Custom defaultActionGroup demo[en] group.org.intellij.sdk.action.CustomDefaultActionGroup.description=Custom defaultActionGroup demo [EN]
``` ```
### Providing Specific Behavior for the Custom Group ### Providing Specific Behavior for the Custom Group
@ -192,7 +192,7 @@ public class CustomDefaultActionGroup extends DefaultActionGroup {
``` ```
After compiling and running the code sample above and opening a file in the editor and right-clicking, the Editor context menu will pop up containing a new group of actions in the first position. After compiling and running the code sample above and opening a file in the editor and right-clicking, the Editor context menu will pop up containing a new group of actions in the first position.
Note that the group and actions come from the resource file as all contain the suffix "[en]". Note that the group and actions come from the resource file as all contain the suffix " [EN]".
The new group will also have an icon: The new group will also have an icon:
![Custom Action Group](editor_popup_menu.png) ![Custom Action Group](editor_popup_menu.png)