Skip to content

Commit

Permalink
Added translations for max images count messages, with french ones
Browse files Browse the repository at this point in the history
  • Loading branch information
David Moreau committed Sep 4, 2019
1 parent 7ef9ac2 commit 09299d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<string name="error_database">"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"</string>
<string name="requesting_thumbnails">"Vignettes en cours de chargement"</string>
<string name="multi_image_picker_processing_images_title">Traitement en cours</string>
<string name="multi_image_picker_processing_images_message">Cela peut prendre un moment</string>
<string name="multi_image_picker_processing_images_message">Merci de patienter</string>
<string name="discard" translatable="false">Annuler</string>
<string name="done" translatable="false">OK</string>
<string name="max_count_photos_title">%d photos maximum</string>
<string name="max_count_photos_message">Vous pouvez sélectionner jusqu\'à %d photos maximum.</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
<string name="multi_image_picker_processing_images_message">This may take a moment</string>
<string name="discard" translatable="false">Cancel</string>
<string name="done" translatable="false">OK</string>
<string name="max_count_photos_title">Maximum %d Photos</string>
<string name="max_count_photos_message">You can only select %d photos at a time.</string>
</resources>
4 changes: 2 additions & 2 deletions src/android/Library/src/MultiImageChooserActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 09299d6

Please sign in to comment.