Skip to content

Commit ac6ee55

Browse files
committed
Partially extracting the static text for dialogs
1 parent 836178f commit ac6ee55

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@
3838
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
3939
</constraints>
4040
<properties>
41-
<text value="OK"/>
41+
<text resource-bundle="magento2/common" key="common.ok"/>
4242
</properties>
4343
</component>
4444
<component id="5723f" class="javax.swing.JButton" binding="buttonCancel">
4545
<constraints>
4646
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
4747
</constraints>
4848
<properties>
49-
<text value="Cancel"/>
49+
<text resource-bundle="magento2/common" key="common.cancel"/>
5050
</properties>
5151
</component>
5252
</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
@@ -38,15 +38,15 @@
3838
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
3939
</constraints>
4040
<properties>
41-
<text value="OK"/>
41+
<text resource-bundle="magento2/common" key="common.ok"/>
4242
</properties>
4343
</component>
4444
<component id="5723f" class="javax.swing.JButton" binding="buttonCancel">
4545
<constraints>
4646
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
4747
</constraints>
4848
<properties>
49-
<text value="Cancel"/>
49+
<text resource-bundle="magento2/common" key="common.cancel"/>
5050
</properties>
5151
</component>
5252
</children>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@
3838
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
3939
</constraints>
4040
<properties>
41-
<text value="OK"/>
41+
<text resource-bundle="magento2/common" key="common.ok"/>
4242
</properties>
4343
</component>
4444
<component id="5723f" class="javax.swing.JButton" binding="buttonCancel">
4545
<constraints>
4646
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
4747
</constraints>
4848
<properties>
49-
<text value="Cancel"/>
49+
<text resource-bundle="magento2/common" key="common.cancel"/>
5050
</properties>
5151
</component>
5252
</children>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
3535
</constraints>
3636
<properties>
37-
<text value="OK"/>
37+
<text resource-bundle="magento2/common" key="common.ok"/>
3838
</properties>
3939
</component>
4040
<component id="5723f" class="javax.swing.JButton" binding="buttonCancel">
4141
<constraints>
4242
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
4343
</constraints>
4444
<properties>
45-
<text value="Cancel"/>
45+
<text resource-bundle="magento2/common" key="common.cancel"/>
4646
</properties>
4747
</component>
4848
</children>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@
108108
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
109109
</constraints>
110110
<properties>
111-
<text value="OK"/>
111+
<text resource-bundle="magento2/common" key="common.ok"/>
112112
</properties>
113113
</component>
114114
<component id="1b860" class="javax.swing.JButton" binding="buttonCancel">
115115
<constraints>
116116
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
117117
</constraints>
118118
<properties>
119-
<text value="Cancel"/>
119+
<text resource-bundle="magento2/common" key="common.cancel"/>
120120
</properties>
121121
</component>
122122
</children>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@
108108
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
109109
</constraints>
110110
<properties>
111-
<text value="OK"/>
111+
<text resource-bundle="magento2/common" key="common.ok"/>
112112
</properties>
113113
</component>
114114
<component id="1b860" class="javax.swing.JButton" binding="buttonCancel">
115115
<constraints>
116116
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
117117
</constraints>
118118
<properties>
119-
<text value="Cancel"/>
119+
<text resource-bundle="magento2/common" key="common.cancel"/>
120120
</properties>
121121
</component>
122122
</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
@@ -37,15 +37,15 @@
3737
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
3838
</constraints>
3939
<properties>
40-
<text value="OK"/>
40+
<text resource-bundle="magento2/common" key="common.ok"/>
4141
</properties>
4242
</component>
4343
<component id="5723f" class="javax.swing.JButton" binding="buttonCancel">
4444
<constraints>
4545
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
4646
</constraints>
4747
<properties>
48-
<text value="Cancel"/>
48+
<text resource-bundle="magento2/common" key="common.cancel"/>
4949
</properties>
5050
</component>
5151
</children>

0 commit comments

Comments
 (0)