You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Translate German toast messages and UI strings to English
This commit translates various German toast messages and user-facing strings across multiple Kotlin files to English.
Files modified:
- app/src/main/kotlin/com/google/ai/sample/MainActivity.kt
- app/src/main/kotlin/com/google/ai/sample/MenuScreen.kt
- app/src/main/kotlin/com/google/ai/sample/ScreenOperatorAccessibilityService.kt
- app/src/main/kotlin/com/google/ai/sample/feature/multimodal/PhotoReasoningViewModel.kt
- app/src/main/kotlin/com/google/ai/sample/feature/multimodal/PhotoReasoningScreen.kt
The translations ensure a consistent English language experience throughout your application.
Toast.makeText(this, "Fehler beim Spendevorgang: ${billingResult.debugMessage}", Toast.LENGTH_LONG).show()
170
+
Toast.makeText(this, "Error during donation process: ${billingResult.debugMessage}", Toast.LENGTH_LONG).show()
171
171
}
172
172
}
173
173
@@ -505,12 +505,12 @@ class MainActivity : ComponentActivity() {
505
505
Log.d(TAG, "initiateDonationPurchase called.")
506
506
if (!::billingClient.isInitialized) {
507
507
Log.e(TAG, "initiateDonationPurchase: BillingClient not initialized.")
508
-
updateStatusMessage("Bezahldienst nicht initialisiert. Bitte später versuchen.", true)
508
+
updateStatusMessage("Payment service not initialized. Please try again later.", true)
509
509
return
510
510
}
511
511
if (!billingClient.isReady) {
512
512
Log.e(TAG, "initiateDonationPurchase: BillingClient not ready. Connection state: ${billingClient.connectionState}")
513
-
updateStatusMessage("Bezahldienst nicht bereit. Bitte später versuchen.", true)
513
+
updateStatusMessage("Payment service not ready. Please try again later.", true)
514
514
if (billingClient.connectionState ==BillingClient.ConnectionState.CLOSED|| billingClient.connectionState ==BillingClient.ConnectionState.DISCONNECTED){
515
515
Log.d(TAG, "initiateDonationPurchase: BillingClient disconnected, attempting to reconnect.")
updateTrialState(TrialManager.getTrialState(this, null)) //Aktualisiere Zustand nach Kauf
601
+
updateTrialState(TrialManager.getTrialState(this, null)) //Update state after purchase
602
602
}
603
603
} else {
604
604
Log.w(TAG, "handlePurchase: Purchase is PURCHASED but does not contain the target product ID ($subscriptionProductId). Products: ${purchase.products}")
0 commit comments