Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

338-catching-ioclients-clientexception-and-socketexception #339

Merged
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 33 additions & 7 deletions lib/l10n/app_cs.arb
Original file line number Diff line number Diff line change
Expand Up @@ -180,16 +180,22 @@
"@tokensDoNotSupportSynchronization": {
"description": "Informs the user that the following tokens cannot be synchronized as they do not support that."
},
"errorRollOutFailed": "Registrace tokenu {name} selhala. Kód chyby: {errorCode}",
"errorRollOutFailed": "Registrace tokenu {name} selhala.",
"@errorRollOutFailed": {
"description": "Tells the user that the token could not be rolled out, because a network error occurred.",
"type": "text",
"placeholders": {
"name": {
"example": "PUSH1234A"
},
"errorCode": {
"example": "500"
}
}
},
"statusCode": "Stavový kód: {statusCode}",
"@statusCode": {
"description": "Tells the user the status code of the error.",
"placeholders": {
"statusCode": {
"example": "400"
}
}
},
Expand Down Expand Up @@ -219,9 +225,29 @@
"@unexpectedError": {
"description": "Title of page report mode."
},
"pollingFailNoNetworkConnection": "Stahování selhalo. Server není dostupný.",
"@pollingFailNoNetworkConnection": {
"description": "Tells the user that the roll-out failed because no network connection is available."
"pollingFailed": "Dotaz se nezdařil.",
"@pollingFailed": {
"description": "Tells the user that the polling failed."
},
"noNetworkConnection": "Žádné připojení k síti.",
"@noNetworkConnection": {
"description": "Tells the user that there is no network connection."
},
"connectionFailed": "Připojení se nezdařilo.",
"@connectionFailed": {
"description": "Tells the user that the connection failed."
},
"checkYourNetwork": "Zkontrolujte prosím síťové připojení a zkuste to znovu.",
"@checkYourNetwork": {
"description": "Tells the user to check the network connection."
},
"serverNotReachable": "Na server se nepodařilo dovolat.",
"@serverNotReachable": {
"description": "Tells the user that the server could not be reached."
},
"couldNotSignMessage": "Zprávu se nepodařilo podepsat.",
"@couldNotSignMessage": {
"description": "Tells the user that the message could not be signed."
},
"useDeviceLocaleTitle": "Použít jazyk zařízení",
"@useDeviceLocaleTitle": {
Expand Down
40 changes: 33 additions & 7 deletions lib/l10n/app_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,21 @@
"@tokensDoNotSupportSynchronization": {
"description": "Informs the user that the following tokens cannot be synchronized as they do not support that."
},
"errorRollOutFailed": "Ausrollen von {name} ist fehlgeschlagen. Fehlercode: {errorCode}",
"errorRollOutFailed": "Ausrollen von {name} ist fehlgeschlagen.",
"@errorRollOutFailed": {
"description": "Tells the user that the token could not be rolled out, because a network error occurred.",
"placeholders": {
"name": {
"example": "PUSH1234A"
},
"errorCode": {
"example": "500"
}
}
},
"statusCode": "Statuscode: {statusCode}",
"@statusCode": {
"description": "Tells the user the status code of the error.",
"placeholders": {
"statusCode": {
"example": "400"
}
}
},
Expand All @@ -212,9 +218,29 @@
"@unexpectedError": {
"description": "Title of page report mode."
},
"pollingFailNoNetworkConnection": "Abfrage fehlgeschlagen, der Server ist nicht erreichbar.",
"@pollingFailNoNetworkConnection": {
"description": "Tells the user that the roll-out failed because no network connection is available."
"pollingFailed": "Abfrage fehlgeschlagen.",
"@pollingFailed": {
"description": "Tells the user that the polling failed."
},
"noNetworkConnection": "Keine Netzwerkverbindung.",
"@noNetworkConnection": {
"description": "Tells the user that there is no network connection."
},
"connectionFailed": "Verbindung fehlgeschlagen.",
"@connectionFailed": {
"description": "Tells the user that the connection failed."
},
"checkYourNetwork": "Bitte überprüfen Sie Ihre Netzwerkverbindung und versuchen Sie es erneut.",
"@checkYourNetwork": {
"description": "Tells the user to check the network connection."
},
"serverNotReachable": "Der Server konnte nicht erreicht werden.",
"@serverNotReachable": {
"description": "Tells the user that the server could not be reached."
},
"couldNotSignMessage": "Nachricht konnte nicht signiert werden.",
"@couldNotSignMessage": {
"description": "Tells the user that the message could not be signed."
},
"useDeviceLocaleTitle": "Nutze Systemsprache",
"@useDeviceLocaleTitle": {
Expand Down
40 changes: 33 additions & 7 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,21 @@
"@tokensDoNotSupportSynchronization": {
"description": "Informs the user that the following tokens cannot be synchronized as they do not support that."
},
"errorRollOutFailed": "Rolling out token {name} failed.\nError code: {errorCode}",
"errorRollOutFailed": "Rolling out token {name} failed.",
"@errorRollOutFailed": {
"description": "Tells the user that the token could not be rolled out, because a network error occurred.",
"placeholders": {
"name": {
"example": "PUSH1234A"
},
"errorCode": {
"example": "500"
}
}
},
"statusCode": "Status code: {statusCode}",
"@statusCode": {
"description": "Tells the user the status code of the error.",
"placeholders": {
"statusCode": {
"example": "400"
}
}
},
Expand Down Expand Up @@ -211,9 +217,29 @@
"@unexpectedError": {
"description": "Title of page report mode."
},
"pollingFailNoNetworkConnection": "Polling failed. Server cannot be reached.",
"@pollingFailNoNetworkConnection": {
"description": "Tells the user that the roll-out failed because no network connection is available."
"pollingFailed": "Polling failed.",
"@pollingFailed": {
"description": "Tells the user that the polling failed."
},
"noNetworkConnection": "No network connection.",
"@noNetworkConnection": {
"description": "Tells the user that there is no network connection."
},
"connectionFailed": "Connection failed.",
"@connectionFailed": {
"description": "Tells the user that the connection failed."
},
"checkYourNetwork": "Please check your network connection and try again.",
"@checkYourNetwork": {
"description": "Tells the user to check the network connection."
},
"serverNotReachable": "The server could not be reached.",
"@serverNotReachable": {
"description": "Tells the user that the server could not be reached."
},
"couldNotSignMessage": "Could not sign message.",
"@couldNotSignMessage": {
"description": "Tells the user that the message could not be signed."
},
"useDeviceLocaleTitle": "Use device language",
"@useDeviceLocaleTitle": {
Expand Down
40 changes: 33 additions & 7 deletions lib/l10n/app_es.arb
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,21 @@
"@tokensDoNotSupportSynchronization": {
"description": "Informs the user that the following tokens cannot be synchronized as they do not support that."
},
"errorRollOutFailed": "Error en la extracción de el token {name}. Código de error: {errorCode}",
"errorRollOutFailed": "Error en la extracción de el token {name}.",
"@errorRollOutFailed": {
"description": "Tells the user that the token could not be rolled out, because a network error occurred.",
"placeholders": {
"name": {
"example": "PUSH1234A"
},
"errorCode": {
"example": "500"
}
}
},
"statusCode": "Código de estado: {statusCode}",
"@statusCode": {
"description": "Tells the user the status code of the error.",
"placeholders": {
"statusCode": {
"example": "400"
}
}
},
Expand Down Expand Up @@ -215,9 +221,29 @@
"@unexpectedError": {
"description": "Title of page report mode."
},
"pollingFailNoNetworkConnection": "Error de sondeo. No se puede acceder al servidor.",
"@pollingFailNoNetworkConnection": {
"description": "Tells the user that the roll-out failed because no network connection is available."
"pollingFailed": "Consulta fallida.",
"@pollingFailed": {
"description": "Tells the user that the polling failed."
},
"noNetworkConnection": "No hay conexión a la red.",
"@noNetworkConnection": {
"description": "Tells the user that there is no network connection."
},
"connectionFailed": "Conexión fallida.",
"@connectionFailed": {
"description": "Tells the user that the connection failed."
},
"checkYourNetwork": "Compruebe su conexión de red e inténtelo de nuevo.",
"@checkYourNetwork": {
"description": "Tells the user to check the network connection."
},
"serverNotReachable": "No se ha podido acceder al servidor.",
"@serverNotReachable": {
"description": "Tells the user that the server could not be reached."
},
"couldNotSignMessage": "No se ha podido firmar el mensaje.",
"@couldNotSignMessage": {
"description": "Tells the user that the message could not be signed."
},
"useDeviceLocaleTitle": "Utiliza el idioma del teléfono",
"@useDeviceLocaleTitle": {
Expand Down
40 changes: 33 additions & 7 deletions lib/l10n/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -180,16 +180,22 @@
"@tokensDoNotSupportSynchronization": {
"description": "Informs the user that the following tokens cannot be synchronized as they do not support that."
},
"errorRollOutFailed": "Le déploiement du jeton {name} a échoué. Erreur réseau: {errorCode}",
"errorRollOutFailed": "Le déploiement du jeton {name} a échoué.",
"@errorRollOutFailed": {
"description": "Tells the user that the token could not be rolled out, because a network error occurred.",
"type": "text",
"placeholders": {
"name": {
"example": "PUSH1234A"
},
"errorCode": {
"example": "500"
}
}
},
"statusCode": "Code d'état : {statusCode}",
"@statusCode": {
"description": "Tells the user the status code of the error.",
"placeholders": {
"statusCode": {
"example": "400"
}
}
},
Expand Down Expand Up @@ -219,9 +225,29 @@
"@unexpectedError": {
"description": "Title of page report mode."
},
"pollingFailNoNetworkConnection": "L'interrogation a échoué. Le serveur est injoignable.",
"@pollingFailNoNetworkConnection": {
"description": "Tells the user that the roll-out failed because no network connection is available."
"pollingFailed": "Échec de la requête.",
"@pollingFailed": {
"description": "Tells the user that the polling failed."
},
"noNetworkConnection": "Pas de connexion au réseau.",
"@noNetworkConnection": {
"description": "Tells the user that there is no network connection."
},
"connectionFailed": "La connexion a échoué.",
"@connectionFailed": {
"description": "Tells the user that the connection failed."
},
"checkYourNetwork": "Veuillez vérifier votre connexion réseau et réessayer.",
"@checkYourNetwork": {
"description": "Tells the user to check the network connection."
},
"serverNotReachable": "Le serveur n'a pas pu être atteint.",
"@serverNotReachable": {
"description": "Tells the user that the server could not be reached."
},
"couldNotSignMessage": "Impossible de signer le message.",
"@couldNotSignMessage": {
"description": "Tells the user that the message could not be signed."
},
"useDeviceLocaleTitle": "Utiliser la langue de l'appareil",
"@useDeviceLocaleTitle": {
Expand Down
46 changes: 41 additions & 5 deletions lib/l10n/app_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,14 @@ abstract class AppLocalizations {
/// Tells the user that the token could not be rolled out, because a network error occurred.
///
/// In en, this message translates to:
/// **'Rolling out token {name} failed.\nError code: {errorCode}'**
String errorRollOutFailed(Object name, Object errorCode);
/// **'Rolling out token {name} failed.'**
String errorRollOutFailed(Object name);

/// Tells the user the status code of the error.
///
/// In en, this message translates to:
/// **'Status code: {statusCode}'**
String statusCode(Object statusCode);

/// Tells the user that synchronizing the push tokens failed because the server could not be reached.
///
Expand Down Expand Up @@ -385,11 +391,41 @@ abstract class AppLocalizations {
/// **'An unexpected error occurred.'**
String get unexpectedError;

/// Tells the user that the roll-out failed because no network connection is available.
/// Tells the user that the polling failed.
///
/// In en, this message translates to:
/// **'Polling failed.'**
String get pollingFailed;

/// Tells the user that there is no network connection.
///
/// In en, this message translates to:
/// **'No network connection.'**
String get noNetworkConnection;

/// Tells the user that the connection failed.
///
/// In en, this message translates to:
/// **'Connection failed.'**
String get connectionFailed;

/// Tells the user to check the network connection.
///
/// In en, this message translates to:
/// **'Please check your network connection and try again.'**
String get checkYourNetwork;

/// Tells the user that the server could not be reached.
///
/// In en, this message translates to:
/// **'The server could not be reached.'**
String get serverNotReachable;

/// Tells the user that the message could not be signed.
///
/// In en, this message translates to:
/// **'Polling failed. Server cannot be reached.'**
String get pollingFailNoNetworkConnection;
/// **'Could not sign message.'**
String get couldNotSignMessage;

/// Title of the switch tile where using the devices language can be enabled.
///
Expand Down
26 changes: 23 additions & 3 deletions lib/l10n/app_localizations_cs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,13 @@ class AppLocalizationsCs extends AppLocalizations {
String get tokensDoNotSupportSynchronization => 'Následující tokeny nepodporují synchronizaci a musí být znovu zaregistrovány:';

@override
String errorRollOutFailed(Object name, Object errorCode) {
return 'Registrace tokenu $name selhala. Kód chyby: $errorCode';
String errorRollOutFailed(Object name) {
return 'Registrace tokenu $name selhala.';
}

@override
String statusCode(Object statusCode) {
return 'Stavový kód: $statusCode';
}

@override
Expand All @@ -156,7 +161,22 @@ class AppLocalizationsCs extends AppLocalizations {
String get unexpectedError => 'Nastala neočekávaná chyba.';

@override
String get pollingFailNoNetworkConnection => 'Stahování selhalo. Server není dostupný.';
String get pollingFailed => 'Dotaz se nezdařil.';

@override
String get noNetworkConnection => 'Žádné připojení k síti.';

@override
String get connectionFailed => 'Připojení se nezdařilo.';

@override
String get checkYourNetwork => 'Zkontrolujte prosím síťové připojení a zkuste to znovu.';

@override
String get serverNotReachable => 'Na server se nepodařilo dovolat.';

@override
String get couldNotSignMessage => 'Zprávu se nepodařilo podepsat.';

@override
String get useDeviceLocaleTitle => 'Použít jazyk zařízení';
Expand Down
Loading
Loading