mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-28 06:47:15 +00:00
cleaned up i18n stuff in and around MediaPanel
Change-Id: I99fec8d06b369ce0085830a956138f74665582df
This commit is contained in:
1 parent
9be2bb2004
commit
e8332229a2
4 files changed
+12
-7
No files matched your search
+4
-5
@@ -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);
|
||||
|
||||
+2
@@ -1587,4 +1587,6 @@ public interface StringMessages extends com.sap.sse.gwt.client.StringMessages,
|
||||
String simulationLegendAlgorithmTimedOutText();
|
||||
String simulationLegendMixedLegText();
|
||||
String noTracksFound();
|
||||
String noRacesAvailable();
|
||||
String loadingRegattasAndRaces();
|
||||
}
|
||||
+3
-1
@@ -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
|
||||
+3
-1
@@ -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
|
||||
Reference in new issue
Block a user