From 09299d68d22613da541ef91b18d02fb4c490ce7f Mon Sep 17 00:00:00 2001 From: David Moreau Date: Wed, 4 Sep 2019 11:22:27 +0200 Subject: [PATCH] Added translations for max images count messages, with french ones --- .../Library/res/values-fr/multiimagechooser_strings_fr.xml | 4 +++- .../Library/res/values/multiimagechooser_strings_en.xml | 2 ++ src/android/Library/src/MultiImageChooserActivity.java | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/android/Library/res/values-fr/multiimagechooser_strings_fr.xml b/src/android/Library/res/values-fr/multiimagechooser_strings_fr.xml index d45dcdf1..e807af20 100644 --- a/src/android/Library/res/values-fr/multiimagechooser_strings_fr.xml +++ b/src/android/Library/res/values-fr/multiimagechooser_strings_fr.xml @@ -4,7 +4,9 @@ "Une erreur s'est produite lors de l'ouverture de la base de données des images. N'hésitez pas à signaler le problème" "Vignettes en cours de chargement" Traitement en cours - Cela peut prendre un moment + Merci de patienter Annuler OK + %d photos maximum + Vous pouvez sélectionner jusqu\'à %d photos maximum. \ No newline at end of file diff --git a/src/android/Library/res/values/multiimagechooser_strings_en.xml b/src/android/Library/res/values/multiimagechooser_strings_en.xml index 286803a2..9b1ffef9 100644 --- a/src/android/Library/res/values/multiimagechooser_strings_en.xml +++ b/src/android/Library/res/values/multiimagechooser_strings_en.xml @@ -8,4 +8,6 @@ This may take a moment Cancel OK + Maximum %d Photos + You can only select %d photos at a time. diff --git a/src/android/Library/src/MultiImageChooserActivity.java b/src/android/Library/src/MultiImageChooserActivity.java index 1e48bf07..ba379e3b 100644 --- a/src/android/Library/src/MultiImageChooserActivity.java +++ b/src/android/Library/src/MultiImageChooserActivity.java @@ -197,8 +197,8 @@ public void onItemClick(AdapterView arg0, View view, int position, long id) { if (maxImages == 0 && isChecked) { isChecked = false; new AlertDialog.Builder(this) - .setTitle("Maximum " + maxImageCount + " Photos") - .setMessage("You can only select " + maxImageCount + " photos at a time.") + .setTitle(String.format(getString(fakeR.getId("string", "max_count_photos_title")), maxImageCount)) + .setMessage(String.format(getString(fakeR.getId("string", "max_count_photos_message")), maxImageCount)) .setPositiveButton("OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { dialog.cancel();