MWI-3339_Erweiterung-der-Demo-App-um-weitere-Sprachen
{
added new localizables
}
This commit is contained in:
parent
2581928ffc
commit
a929e55616
@ -15,3 +15,9 @@
|
||||
"core_sdk_creation_successful" = "Core SDK creation successful";
|
||||
"validate_action_id" = "Validate Action-ID…";
|
||||
"action_id_not_valid" = "Failure: The transaction number (Action-ID) was not set to 9-digit number string in MainActivity.kt file.";
|
||||
"verification_successful" = "Verification successful";
|
||||
"verification_failed" = "Verification failed:";
|
||||
"start_failed" = "Start Failed:\n";
|
||||
"product_journey_finished_successfully" = "Product Journey finished successfully";
|
||||
"product_journey_finished_with_failure" = "Product journey finished with failure:";
|
||||
"success" = "Success: "
|
||||
|
||||
@ -63,6 +63,30 @@ internal enum L10n {
|
||||
internal static let videoid = L10n.tr(
|
||||
"Localizable", "videoid",
|
||||
fallback: "VideoID")
|
||||
|
||||
internal static let verificationSuccessful = L10n.tr(
|
||||
"Localizable", "verification_successful",
|
||||
fallback: "Verification successful")
|
||||
|
||||
internal static let verificationFailed = L10n.tr(
|
||||
"Localizable", "verification_failed",
|
||||
fallback: "Verification failed:")
|
||||
|
||||
internal static let startFailed = L10n.tr(
|
||||
"Localizable", "start_failed",
|
||||
fallback: "Start Failed:\n")
|
||||
|
||||
internal static let productJourneyFinishedSuccessfully = L10n.tr(
|
||||
"Localizable", "product_journey_finished_successfully",
|
||||
fallback: "Product Journey finished successfully")
|
||||
|
||||
internal static let productJourneyFinishedWithFailure = L10n.tr(
|
||||
"Localizable", "product_journey_finished_with_failure",
|
||||
fallback: "Product journey finished with failure:")
|
||||
|
||||
internal static let success = L10n.tr(
|
||||
"Localizable", "success",
|
||||
fallback: "Success: ")
|
||||
}
|
||||
|
||||
// MARK: - Implementation Details
|
||||
|
||||
@ -97,10 +97,10 @@ class ViewController:
|
||||
private func verifyActionIdCallback(result: Result<VerifyActionIdResult, Error>) {
|
||||
switch result {
|
||||
case .success(let verifyActionIdResult):
|
||||
writeLog(entry: "Verification successful")
|
||||
writeLog(entry: L10n.verificationSuccessful)
|
||||
startMetaPlugin(with: verifyActionIdResult)
|
||||
case .failure(let error):
|
||||
writeLog(entry: "Verification failed: \(error.localizedDescription)")
|
||||
writeLog(entry: "\(L10n.verificationFailed) \(error.localizedDescription)")
|
||||
}
|
||||
}
|
||||
|
||||
@ -122,7 +122,7 @@ class ViewController:
|
||||
darkTheme: CustomizedPluginTheme.getDarkVersion()
|
||||
)
|
||||
} catch {
|
||||
writeLog(entry: "Start Failed:\n\(error.localizedDescription)")
|
||||
writeLog(entry: "\(L10n.startFailed) \(error.localizedDescription)")
|
||||
}
|
||||
}
|
||||
|
||||
@ -134,7 +134,7 @@ class ViewController:
|
||||
* - processFinished: irrelevant for this plugin
|
||||
*/
|
||||
func finishedSuccess(additionalResult: String?, processFinished: Bool) {
|
||||
writeLog(entry: "Product Journey finished successfully")
|
||||
writeLog(entry: L10n.productJourneyFinishedSuccessfully)
|
||||
}
|
||||
|
||||
/**
|
||||
@ -150,7 +150,7 @@ class ViewController:
|
||||
faultOriginator: String
|
||||
) {
|
||||
if let container = failreasonContainer as? AutoIdOnServerProductPluginFailReasonContainer {
|
||||
writeLog(entry: "Product journey finished with failure:\n\(container.failreason)")
|
||||
writeLog(entry: "\(L10n.productJourneyFinishedWithFailure) \(container.failreason)")
|
||||
}
|
||||
}
|
||||
|
||||
@ -166,7 +166,7 @@ class ViewController:
|
||||
additionalResult: String?,
|
||||
faultOriginator: String
|
||||
) {
|
||||
writeLog(entry: "Product journey finished with failure:\n\(failreason.self)")
|
||||
writeLog(entry: "\(L10n.productJourneyFinishedWithFailure) \(failreason.self)")
|
||||
}
|
||||
|
||||
// MARK: Plugin chooser
|
||||
|
||||
@ -15,3 +15,9 @@
|
||||
"core_sdk_creation_successful" = "Core SDK erfolgreich erstellt";
|
||||
"validate_action_id" = "Validiere Vorgangsnummer…";
|
||||
"action_id_not_valid" = "Fehler: Die Vorgangsnummer (Action-ID) wurde in der Datei „MainActivity.kt“ nicht auf eine 9-stellige Zahlenfolge gesetzt.";
|
||||
"verification_successful" = "Überprüfung erfolgreich";
|
||||
"verification_failed" = "Überprüfung fehlgeschlagen:";
|
||||
"start_failed" = "Start fehlgeschlagen:\n";
|
||||
"product_journey_finished_successfully" = "Die Product Journey wurde erfolgreich abgeschlossen";
|
||||
"product_journey_finished_with_failure" = "Die Product Journey endete mit Misserfolg:";
|
||||
"success" = "Erfolg: ";
|
||||
|
||||
@ -15,3 +15,9 @@
|
||||
"core_sdk_creation_successful" = "Core SDK creado correctamente";
|
||||
"validate_action_id" = "Validar número de operación…";
|
||||
"action_id_not_valid" = "Error: El número de operación («action-ID») no se ha establecido en una secuencia numérica de 9 dígitos en el archivo «MainActivity.kt».";
|
||||
"verification_successful" = "Verificación correcta";
|
||||
"verification_failed" = "Verificación fallida:";
|
||||
"start_failed" = "Inicio fallido:\n";
|
||||
"product_journey_finished_successfully" = "La Product Journey se ha completado correctamente";
|
||||
"product_journey_finished_with_failure" = "La Product Journey terminó con un error:";
|
||||
"success" = "Éxito: ";
|
||||
|
||||
@ -15,3 +15,9 @@
|
||||
"core_sdk_creation_successful" = "Core SDK créé avec succès";
|
||||
"validate_action_id" = "Valider le numéro d'opération…";
|
||||
"action_id_not_valid" = "Erreur : le numéro d'opération (ActionID) n'a pas été défini sur une séquence de 9 chiffres dans le fichier « MainActivity.kt ».";
|
||||
"verification_successful" = "Vérification réussie";
|
||||
"verification_failed" = "Échec de la vérification :";
|
||||
"start_failed" = "Échec du démarrage :\n";
|
||||
"product_journey_finished_successfully" = "La Product Journey a été terminée avec succès";
|
||||
"product_journey_finished_with_failure" = "La Product Journey s’est terminée par une erreur :";
|
||||
"success" = "Succès : ";
|
||||
|
||||
@ -15,3 +15,9 @@
|
||||
"core_sdk_creation_successful" = "Core SDK creato con successo";
|
||||
"validate_action_id" = "Convalida numero operazione…";
|
||||
"action_id_not_valid" = "Errore: il numero dell'operazione (ActionID) non è stato impostato su una sequenza di 9 cifre nel file “MainActivity.kt”.";
|
||||
"verification_successful" = "Verifica riuscita";
|
||||
"verification_failed" = "Verifica non riuscita:";
|
||||
"start_failed" = "Avvio non riuscito:\n";
|
||||
"product_journey_finished_successfully" = "La Product Journey è stata completata con successo";
|
||||
"product_journey_finished_with_failure" = "La Product Journey si è conclusa con un errore:";
|
||||
"success" = "Successo: ";
|
||||
|
||||
@ -15,3 +15,9 @@
|
||||
"core_sdk_creation_successful" = "Core SDK succesvol aangemaakt";
|
||||
"validate_action_id" = "Valideer transactienummer…";
|
||||
"action_id_not_valid" = "Fout: het actienummer (ActionID) is in het bestand “MainActivity.kt” niet ingesteld op een reeks van 9 cijfers.";
|
||||
"verification_successful" = "Verificatie geslaagd";
|
||||
"verification_failed" = "Verificatie mislukt:";
|
||||
"start_failed" = "Start mislukt:\n";
|
||||
"product_journey_finished_successfully" = "De Product Journey is met succes voltooid";
|
||||
"product_journey_finished_with_failure" = "De Product Journey is met een fout beëindigd:";
|
||||
"success" = "Success: ";
|
||||
|
||||
@ -15,3 +15,9 @@
|
||||
"core_sdk_creation_successful" = "Core SDK utworzony pomyślnie";
|
||||
"validate_action_id" = "Zatwierdź numer operacji…";
|
||||
"action_id_not_valid" = "Błąd: Numer operacji (Action-ID) nie został ustawiony na 9-cyfrową sekwencję cyfr w pliku „MainActivity.kt”.";
|
||||
"verification_successful" = "Weryfikacja zakończona sukcesem";
|
||||
"verification_failed" = "Weryfikacja nie powiodła się:";
|
||||
"start_failed" = "Uruchomienie nie powiodło się:\n";
|
||||
"product_journey_finished_successfully" = "Product Journey została pomyślnie zakończona";
|
||||
"product_journey_finished_with_failure" = "Product Journey zakończyła się błędem:";
|
||||
"success" = "Sukces: ";
|
||||
|
||||
@ -15,3 +15,9 @@
|
||||
"core_sdk_creation_successful" = "Core SDK creat cu succes";
|
||||
"validate_action_id" = "Validați numărul operațiunii…";
|
||||
"action_id_not_valid" = "Eroare: Numărul operațiunii („Action-ID”) nu a fost setat la o secvență de 9 cifre în fișierul „MainActivity.kt”.";
|
||||
"verification_successful" = "Verificare reușită";
|
||||
"verification_failed" = "Verificarea a eșuat:";
|
||||
"start_failed" = "Start eșuat:\n";
|
||||
"product_journey_finished_successfully" = "Product Journey a fost finalizată cu succes";
|
||||
"product_journey_finished_with_failure" = "Product Journey s-a încheiat cu eroare:";
|
||||
"success" = "Succes: ";
|
||||
|
||||
@ -15,4 +15,9 @@
|
||||
"core_sdk_creation_successful" = "Core SDK başarıyla oluşturuldu";
|
||||
"validate_action_id" = "İşlem numarasını doğrula…";
|
||||
"action_id_not_valid" = "Hata: İşlem numarası (Action-ID) “MainActivity.kt” dosyasında 9 basamaklı bir sayı dizisi olarak ayarlanmamıştır.";
|
||||
|
||||
"verification_successful" = "Doğrulama başarılı";
|
||||
"verification_failed" = "Doğrulama başarısız:";
|
||||
"start_failed" = "Başlatma Başarısız:\n";
|
||||
"product_journey_finished_successfully" = "Product Journey başarıyla tamamlandı";
|
||||
"product_journey_finished_with_failure" = "Product Journey bir hatayla sonuçlandı:";
|
||||
"success" = "Success: ";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user