cleaned up i18n stuff in and around MediaPanel

Change-Id: I99fec8d06b369ce0085830a956138f74665582df
This commit is contained in:
Axel Uhl committed 2016-06-08 11:34:24 +02:00
1 parent 9be2bb2004
commit e8332229a2
4 files changed
+12 -7

No files matched your search

@@ -63,7 +63,7 @@ public class AssignRacesToMediaDialog extends DataEntryDialog<Set<RegattaAndRace
Grid formGrid = new Grid(2, 2);
panel.add(formGrid);
Label message = new Label();
message.setText("Loading Regattas and Races");
message.setText(stringMessages.loadingRegattasAndRaces());
formGrid.setWidget(0, 0, message);
formGrid.setWidget(1, 1, trackedRacesListComposite);
formGrid.getWidget(1, 1).setVisible(false);
@@ -76,7 +76,6 @@ public class AssignRacesToMediaDialog extends DataEntryDialog<Set<RegattaAndRace
return panel;
}
@Override
protected Set<RegattaAndRaceIdentifier> getResult() {
return getAssignedRaces();
@@ -92,15 +91,15 @@ public class AssignRacesToMediaDialog extends DataEntryDialog<Set<RegattaAndRace
updateUI();
}
public void updateUI() {
private void updateUI() {
Grid grid = (Grid) panel.getWidget(0);
if (hasRaceCandidates) {
grid.getWidget(0, 0).setVisible(false);
grid.getWidget(1, 1).setVisible(true);
this.getOkButton().setVisible(true);
} else {
Label label = (Label)grid.getWidget(0, 0);
label.setText("No Races available");
Label label = (Label) grid.getWidget(0, 0);
label.setText(stringMessages.noRacesAvailable());
grid.getWidget(0, 0).setVisible(true);
grid.getWidget(1, 1).setVisible(false);
this.getOkButton().setVisible(false);
@@ -1587,4 +1587,6 @@ public interface StringMessages extends com.sap.sse.gwt.client.StringMessages,
String simulationLegendAlgorithmTimedOutText();
String simulationLegendMixedLegText();
String noTracksFound();
String noRacesAvailable();
String loadingRegattasAndRaces();
}
@@ -1561,4 +1561,6 @@ oneTurnerRight=1-Turner Right
current=Current
simulationLegendAlgorithmTimedOutText=out-of-bounds
simulationLegendMixedLegText=ambiguous wind
noTracksFound=No tracks found
noTracksFound=No tracks found
noRacesAvailable=No races available
loadingRegattasAndRaces=Loading Regattas and Races
@@ -1546,4 +1546,6 @@ oneTurnerRight=1-Wenden-Kurs rechts
current=Strömung
simulationLegendAlgorithmTimedOutText=außerhalb des zul. Bereichs
simulationLegendMixedLegText=mehrdeutiger Wind
noTracksFound=Keine Tracks gefunden
noTracksFound=Keine Tracks gefunden
noRacesAvailable=Keine Rennen verfügbar
loadingRegattasAndRaces=Regatten und Rennen werden geladen