diff src/main/java/de/mpiwg/itgroup/ismi/entry/beans/CurrentCityBean.java @ 106:71efad4fe975

small cleanups.
author casties
date Mon, 07 Nov 2016 17:04:43 +0100
parents e27603a39e70
children 99f9a55a4957
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/itgroup/ismi/entry/beans/CurrentCityBean.java	Fri Nov 04 18:10:40 2016 +0100
+++ b/src/main/java/de/mpiwg/itgroup/ismi/entry/beans/CurrentCityBean.java	Mon Nov 07 17:04:43 2016 +0100
@@ -76,7 +76,7 @@
                 this.setCountry(list.get(0));
                 // part_of more than one place
                 if (list.size() > 1) {
-                    addErrorMsg("Ontological inconsistency. This place 'is part of' " + list.size() + " other places.");
+                    addErrorMsg("Inconsistency: this place 'is part of' " + list.size() + " other places!");
                     addErrorMsg("List:");
                     for (Entity place : list) {
                         addErrorMsg(place.getOwnValue() + " [" + place.getId() + "]");
@@ -101,6 +101,9 @@
         }
     }
 	
+	/* (non-Javadoc)
+	 * @see de.mpiwg.itgroup.ismi.entry.beans.AbstractISMIBean#save()
+	 */
 	@Override
 	public String save(){
 		super.save();
@@ -125,7 +128,7 @@
 				}
 			}else{
 				this.addErrorMsg("This place has not been saved, because its name was empty.");
-				this.addErrorMsg("You have to enter a name.");
+				this.addErrorMsg("Please enter a name.");
 				return "SAVE_ERROR";
 			}