Races can be added now with RaceDialog

This commit is contained in:
Fabian Schwarz-Fritz committed 2011-12-01 16:45:54 +01:00
1 parent 875f14ec4a
commit 5670f1bdfd
4 files changed
+10 -4

No files matched your search

@@ -33,9 +33,9 @@ public class RaceDialog extends DataEntryDialog<Pair<String, Boolean>>{
boolean medalRaceNotNull = isMedalRace!=null;
if(!isNameNotEmpty){
errorMessage = "error"; // stringConstants.raceNameEmpty();
errorMessage = stringConstants.raceNameEmpty();
}else if(!medalRaceNotNull){
errorMessage = "error"; //stringConstants.medalRaceIsNull();
errorMessage = stringConstants.medalRaceIsNull();
}else{
return errorMessage = null;
}
@@ -125,4 +125,6 @@ public interface StringConstants extends Constants {
String tacks();
String jibes();
String penaltyCircles();
String medalRaceIsNull();
String raceNameEmpty();
}
@@ -119,4 +119,6 @@ stressTest=Stress Test
numberOfManeuvers=Maneuvers
tacks=Tacks
jibes=Jibes
penaltyCircles=Penalty Circles
penaltyCircles=Penalty Circles
medalRaceIsNull=Medalrace value not allowed
raceNameEmpty=Racename empty
@@ -119,4 +119,6 @@ stressTest=Stresstest
numberOfManeuvers=Manöver
tacks=Wenden
jibes=Halsen
penaltyCircles=Strafkringel
penaltyCircles=Strafkringel
medalRaceIsNull=Medialienwert nicht erlaubt
raceNameEmpty=Rennname leer