Browse Source

REPORT-578 国际化修改

master
kerry 8 years ago
parent
commit
be778943f1
  1. 10
      designer_form/src/com/fr/design/designer/properties/FRFitLayoutConstraints.java

10
designer_form/src/com/fr/design/designer/properties/FRFitLayoutConstraints.java

@ -47,7 +47,7 @@ public class FRFitLayoutConstraints implements ConstraintsGroupModel {
@Override @Override
public String getGroupName() { public String getGroupName() {
return Inter.getLocText("Widget-Size"); return Inter.getLocText("FR-Designer-Widget_Size");
} }
@Override @Override
@ -70,9 +70,9 @@ public class FRFitLayoutConstraints implements ConstraintsGroupModel {
if (column == 0) { if (column == 0) {
switch (row) { switch (row) {
case 0: case 0:
return Inter.getLocText("Tree-Width"); return Inter.getLocText("FR-Designer-Tree_Width");
default: default:
return Inter.getLocText("Tree-Height"); return Inter.getLocText("FR-Designer-Tree_Height");
} }
} else { } else {
switch (row) { switch (row) {
@ -103,7 +103,7 @@ public class FRFitLayoutConstraints implements ConstraintsGroupModel {
if(bounds.width == rec.width - margin.getLeft() - margin.getRight()){ if(bounds.width == rec.width - margin.getLeft() - margin.getRight()){
JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Designer-Beyond_Bounds")); JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Designer-Beyond_Bounds"));
}else if(v < minWidth){ }else if(v < minWidth){
JOptionPane.showMessageDialog(null, Inter.getLocText("Min-Width") + Integer.toString(minWidth)); JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Designer-Min_Width") + Integer.toString(minWidth));
v = xCreator.getWidth(); v = xCreator.getWidth();
} }
difference = bounds.width - v; difference = bounds.width - v;
@ -116,7 +116,7 @@ public class FRFitLayoutConstraints implements ConstraintsGroupModel {
if(bounds.height == rec.height - margin.getTop() - margin.getBottom()){ if(bounds.height == rec.height - margin.getTop() - margin.getBottom()){
JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Designer-Beyond_Bounds")); JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Designer-Beyond_Bounds"));
}else if(v < minHeight){ }else if(v < minHeight){
JOptionPane.showMessageDialog(null, Inter.getLocText("Min-Height") + Integer.toString(minHeight)); JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Designer-Min_Height") + Integer.toString(minHeight));
v = xCreator.getHeight(); v = xCreator.getHeight();
} }
difference = bounds.height - v; difference = bounds.height - v;

Loading…
Cancel
Save