mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-15 16:51:07 +00:00
added i18n for server communication error message
This commit is contained in:
1 parent
b8737e8225
commit
8a98762625
5 files changed
+7
-10
No files matched your search
+1
-8
@@ -25,13 +25,6 @@ public abstract class AbstractEntryPoint extends com.sap.sse.gwt.client.Abstract
|
||||
private UserService userService;
|
||||
private UserManagementServiceAsync userManagementService;
|
||||
|
||||
/**
|
||||
* The message displayed to the user when the server cannot be reached or
|
||||
* returns an error.
|
||||
*/
|
||||
private static final String SERVER_ERROR = "An error occurred while " //$NON-NLS-1$
|
||||
+ "attempting to contact the server. Please check your network " + "connection and try again."; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
protected void doOnModuleLoad() {
|
||||
super.doOnModuleLoad();
|
||||
userManagementService = GWT.create(UserManagementService.class);
|
||||
@@ -55,7 +48,7 @@ public abstract class AbstractEntryPoint extends com.sap.sse.gwt.client.Abstract
|
||||
public void reportError(String message) {
|
||||
errorDialogBox.setText(message);
|
||||
serverResponseLabel.addStyleName("serverResponseLabelError"); //$NON-NLS-1$
|
||||
serverResponseLabel.setHTML(SERVER_ERROR);
|
||||
serverResponseLabel.setHTML(stringMessages.serverError());
|
||||
errorDialogBox.center();
|
||||
dialogCloseButton.setFocus(true);
|
||||
}
|
||||
|
||||
+1
@@ -1106,4 +1106,5 @@ public interface StringMessages extends com.sap.sse.gwt.client.StringMessages {
|
||||
String enterRaceName();
|
||||
String enterCourseName();
|
||||
String scoringSchemeHighPointFirstGetsTenOrEightDescription();
|
||||
String serverError();
|
||||
}
|
||||
+1
@@ -1088,3 +1088,4 @@ enterVideoURL=Enter video URL...
|
||||
enterSponsorImageURL=Enter sponsor image URL...
|
||||
enterRaceName=Enter race name...
|
||||
scoringSchemeHighPointFirstGetsTenOrEightDescription=Score in points. Winner scores 10 points, 2nd - 9 points, ..., boats coming 10th and after score 1 point each. A tie is broken in favour of the competitor having won most races, if tie remains then tie is broken by the rank in the last race scored.
|
||||
serverError=An error occurred while attempting to contact the server. Please check your network connection and try again.
|
||||
+2
-1
@@ -1081,4 +1081,5 @@ enterImageURL=Bild-URL eingeben...
|
||||
enterVideoURL=Video-URL eingeben...
|
||||
enterSponsorImageURL=Sponsorbild-URL eingeben...
|
||||
enterRaceName=Wettfahrtnamen eingeben...
|
||||
scoringSchemeHighPointFirstGetsTenOrEightDescription=High Point System, der Gewinner erhält 10 Punkte, der Zweite 8 und so weiter. Die Plätze 10 und tiefer erhalten einen Punkt.
|
||||
scoringSchemeHighPointFirstGetsTenOrEightDescription=High Point System, der Gewinner erhält 10 Punkte, der Zweite 8 und so weiter. Die Plätze 10 und tiefer erhalten einen Punkt.
|
||||
serverError=Es ist ein Fehler beim Versuch aufgetreten, den Server zu kontaktieren. Bitte Netzwerkverbindung prüfen und erneut versuchen.
|
||||
+2
-1
@@ -1030,4 +1030,5 @@ enterImageURL=Enter image URL...
|
||||
enterVideoURL=Enter video URL...
|
||||
enterSponsorImageURL=Enter sponsor image URL...
|
||||
enterRaceName=Enter race name...
|
||||
scoringSchemeHighPointFirstGetsTenOrEightDescription=Score in points. Winner scores 10 points, 2nd - 9 points, ..., boats coming 10th and after score 1 point each. A tie is broken in favour of the competitor having won most races, if tie remains then tie is broken by the rank in the last race scored.
|
||||
scoringSchemeHighPointFirstGetsTenOrEightDescription=Score in points. Winner scores 10 points, 2nd - 9 points, ..., boats coming 10th and after score 1 point each. A tie is broken in favour of the competitor having won most races, if tie remains then tie is broken by the rank in the last race scored.
|
||||
serverError=An error occurred while attempting to contact the server. Please check your network connection and try again.
|
||||
Reference in new issue
Block a user