Skip to content

Commit 8fa11ef

Browse files
committed
Partially extracting the common static text for dialogs
1 parent ac6ee55 commit 8fa11ef

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

resources/magento2/common.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ common.module.description=Module Description
77
common.ok=OK
88
common.cancel=Cancel
99
common.error=Error
10+
common.module.target=Target Module
11+
common.area.target=Target Area

src/com/magento/idea/magento2plugin/actions/generation/dialog/CreateAPluginDialog.form

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
</constraints>
155155
<properties>
156156
<labelFor value="bd654"/>
157-
<text value="Target Module"/>
157+
<text resource-bundle="magento2/common" key="common.module.target"/>
158158
</properties>
159159
</component>
160160
<component id="b0d15" class="javax.swing.JComboBox" binding="pluginType">
@@ -191,7 +191,7 @@
191191
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
192192
</constraints>
193193
<properties>
194-
<text value="Target Area"/>
194+
<text resource-bundle="magento2/common" key="common.area.target"/>
195195
</properties>
196196
</component>
197197
</children>

src/com/magento/idea/magento2plugin/actions/generation/dialog/CreateAnObserverDialog.form

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
</constraints>
131131
<properties>
132132
<labelFor value="bd654"/>
133-
<text value="Target Module"/>
133+
<text resource-bundle="magento2/common" key="common.module.target"/>
134134
</properties>
135135
</component>
136136
<component id="bd654" class="com.magento.idea.magento2plugin.ui.FilteredComboBox" binding="observerModule" custom-create="true">
@@ -150,7 +150,7 @@
150150
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
151151
</constraints>
152152
<properties>
153-
<text value="Target Area"/>
153+
<text resource-bundle="magento2/common" key="common.area.target"/>
154154
</properties>
155155
</component>
156156
</children>

src/com/magento/idea/magento2plugin/actions/generation/dialog/OverrideClassByAPreferenceDialog.form

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
</constraints>
128128
<properties>
129129
<labelFor value="bd654"/>
130-
<text value="Target Module"/>
130+
<text resource-bundle="magento2/common" key="common.module.target"/>
131131
</properties>
132132
</component>
133133
<component id="bd654" class="com.magento.idea.magento2plugin.ui.FilteredComboBox" binding="preferenceModule" custom-create="true">
@@ -149,7 +149,7 @@
149149
</grid>
150150
</constraints>
151151
<properties>
152-
<text value="Target Area"/>
152+
<text resource-bundle="magento2/common" key="common.area.target"/>
153153
</properties>
154154
</component>
155155
</children>

0 commit comments

Comments
 (0)