improved texts
This commit is contained in:
@@ -154,7 +154,7 @@ public class Car implements Constants {
|
||||
|
||||
Tag form = propertyForm();
|
||||
if (form!=null && form.children().size()>2) {
|
||||
new Button(t("save")).addTo(form);
|
||||
new Button(t("Apply")).addTo(form);
|
||||
form.addTo(win);
|
||||
} else {
|
||||
win.content(t("This tile ({}) has no editable properties",getClass().getSimpleName()));
|
||||
|
||||
@@ -214,7 +214,7 @@ public class Locomotive extends Car implements Constants,Device{
|
||||
new Input(REALM,REALM_LOCO).hideIn(form);
|
||||
Fieldset fieldset = new Fieldset(t("add new locomotive"));
|
||||
new Input(Locomotive.NAME, t("new locomotive")).addTo(new Label(t("Name:")+" ")).addTo(fieldset);
|
||||
new Button(t("save")).addTo(fieldset);
|
||||
new Button(t("Apply")).addTo(fieldset);
|
||||
fieldset.addTo(form).addTo(win);
|
||||
return win;
|
||||
}
|
||||
|
||||
@@ -299,7 +299,7 @@ public class Train implements Constants {
|
||||
for (Locomotive loco : Locomotive.list()) select.addOption(loco.id(),loco.name());
|
||||
select.addTo(new Label(t("Locomotive:")+" ")).addTo(fieldset);
|
||||
|
||||
new Button(t("save")).addTo(fieldset);
|
||||
new Button(t("Apply")).addTo(fieldset);
|
||||
fieldset.addTo(form).addTo(win);
|
||||
|
||||
|
||||
@@ -335,7 +335,7 @@ public class Train implements Constants {
|
||||
new Input(ID,id).hideIn(form);
|
||||
new Input(NAME,name).addTo(form);
|
||||
new Checkbox(PUSH_PULL, t("Push-pull train"), pushPull).addTo(form);
|
||||
new Button(t("save")).addTo(form).addTo(fieldset);
|
||||
new Button(t("Apply")).addTo(form).addTo(fieldset);
|
||||
|
||||
new Button(t("Turn"), "train("+id+",'"+ACTION_TURN+"')").addTo(fieldset).addTo(window);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user