From 1ee83dd5823378a3aedb885510897f6858ab4487 Mon Sep 17 00:00:00 2001 From: JeanGarf Date: Tue, 16 Jun 2020 23:20:44 +0200 Subject: [PATCH] #876 - Toast message internationalization --- .../org/gnucash/android/ui/common/BaseDrawerActivity.java | 6 +++--- app/src/main/res/values-fr/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/gnucash/android/ui/common/BaseDrawerActivity.java b/app/src/main/java/org/gnucash/android/ui/common/BaseDrawerActivity.java index 24b8ca873..52c93ba5b 100644 --- a/app/src/main/java/org/gnucash/android/ui/common/BaseDrawerActivity.java +++ b/app/src/main/java/org/gnucash/android/ui/common/BaseDrawerActivity.java @@ -372,15 +372,15 @@ public boolean onMenuItemClick(MenuItem item) { // This is not the first Activity Toast toast = Toast.makeText(this, - "You must be on the Account Page to change Book", - Toast.LENGTH_LONG); + R.string.toast_must_be_on_account_page_to_change_book, + Toast.LENGTH_LONG); // // Align-Center text inside the Toast // TextView toastTextView = (TextView) toast.getView() - .findViewById(android.R.id.message); + .findViewById(android.R.id.message); if (toastTextView != null) { toastTextView.setGravity(Gravity.CENTER); } diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index ca5f54be2..fc1e15b79 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -452,4 +452,5 @@ Préférences Afficher le signe - dans les transactions splittées Autoriser l\'affichage du signe - même lorsque le bouton Débit/Crédit est affiché + Vous devez être sur la page des Comptes pour pouvoir changer de Comptabilité diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ca4433022..74c22cb3d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -439,6 +439,7 @@ INCOME + You must be on the Account Page to change Book Connected to Google Drive Unable to connect to Google Drive Please enter an amount to split