Skip to content

Commit

Permalink
fix(i18n): fix typo and shorten message length
Browse files Browse the repository at this point in the history
- Fix typo in the property key `chat.too.long.user.message`
- Shorten the message length by removing unnecessary repetition
  • Loading branch information
phodal committed Jan 13, 2024
1 parent 6747716 commit 8e2f120
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions src/222/main/resources/META-INF/autodev-core.xml
Expand Up @@ -12,20 +12,16 @@
id="cc.unitmesh.devti.settings.AutoDevSettingsConfigurable"
displayName="AutoDev"/>

<projectService serviceImplementation="cc.unitmesh.devti.settings.configurable.CoUnitProjectSettingsService"/>
<projectConfigurable provider="cc.unitmesh.devti.settings.configurable.CoUnitToolConfigurableProvider"
parentId="cc.unitmesh.devti.settings.AutoDevSettingsConfigurable"
id="cc.unitmesh.counit"
bundle="messages.AutoDevBundle" key="counit.name"/>

<projectService serviceImplementation="cc.unitmesh.devti.settings.custom.TeamPromptsProjectSettingsService"/>
<projectConfigurable provider="cc.unitmesh.devti.settings.custom.TeamPromptsConfigurableProvider"
parentId="cc.unitmesh.devti.settings.AutoDevSettingsConfigurable"
id="cc.unitmesh.promptLibrary"
bundle="messages.AutoDevBundle" key="settings.external.team.prompts.name"/>


<projectService serviceImplementation="cc.unitmesh.devti.settings.coder.AutoDevCoderSettingService"/>
<projectConfigurable provider="cc.unitmesh.devti.settings.coder.AutoDevCoderConfigurableProvider"
parentId="cc.unitmesh.devti.settings.AutoDevSettingsConfigurable"
id="cc.unitmesh.autodevCoder"
Expand Down Expand Up @@ -183,6 +179,7 @@
icon="cc.unitmesh.devti.AutoDevIcons.AI_COPILOT" searchable="false">

<add-to-group group-id="ShowIntentionsGroup" relative-to-action="ShowIntentionActions" anchor="after"/>
<add-to-group group-id="Floating.CodeToolbar" anchor="first"/>
</group>

<!-- For right click -->
Expand All @@ -208,7 +205,7 @@
</action>

<action id="cc.unitmesh.devti.actions.chat.GenTestDataAction"
class="cc.unitmesh.devti.actions.chat.GenTestDataAction" text="Generate Test data (APIs)"
class="cc.unitmesh.devti.actions.chat.GenTestDataAction" text="Generate Test Data (APIs)"
description="Ask AI write this code">
</action>

Expand Down
2 changes: 1 addition & 1 deletion src/233/main/resources/META-INF/autodev-core.xml
Expand Up @@ -205,7 +205,7 @@
</action>

<action id="cc.unitmesh.devti.actions.chat.GenTestDataAction"
class="cc.unitmesh.devti.actions.chat.GenTestDataAction" text="Generate Test data (APIs)"
class="cc.unitmesh.devti.actions.chat.GenTestDataAction" text="Generate Test Data (APIs)"
description="Ask AI write this code">
</action>

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/messages/AutoDevBundle.properties
Expand Up @@ -31,7 +31,7 @@ intentions.crud.new.family.name=AutoCrud with this
intentions.chat.selected.code.name=Chat with this code
intentions.chat.selected.fragment.name=Chat with {0} fragment
intentions.chat.selected.element.name=Chat with ''{0}'' {1}
chat.too.long.user.message=Message has is {0} tokens, it's too looooooooooooooooooong
chat.too.long.user.message=Message has is {0} tokens too looooooooooooooooooong
intentions.companion.api.name=Talk with API
intentions.companion.api.family.name=AutoDev: Talk with API
intentions.living.documentation.name=Generate documentation
Expand Down

0 comments on commit 8e2f120

Please sign in to comment.