mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
action_basics: adjust Action texts to not trigger "wrong case" inspection
This commit is contained in:
parent
53a5d8c397
commit
dec645c933
@ -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]
|
||||||
|
@ -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:
|
||||||
|
|
||||||

|

|
||||||
|
Loading…
x
Reference in New Issue
Block a user