diff options
-rw-r--r-- | res/values/strings.xml | 13 | ||||
-rw-r--r-- | src/com/android/camera/BestpictureActivity.java | 7 |
2 files changed, 15 insertions, 5 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index f7ab549df..45f5c9741 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -710,11 +710,20 @@ CHAR LIMIT = NONE] --> <string name="pref_camera2_restore_default">Restore defaults</string> <string name="pref_camera2_restore_default_hint">Camera settings will be restored to default settings</string> - <string name="save_best_dialog_content">%1$d of 10 images will be saved and the rest will deleted.</string> + <plurals name="save_best_dialog_content"> + <item quantity="one">%1$d of 10 images will be saved and the rest will be deleted</item> + <item quantity="other">%1$d of 10 images will be saved and the rest will be deleted</item> + </plurals> + <string name="save_best_dialog_title">Save selected images?</string> <string name="save_best_dialog_positive_bt">OK</string> <string name="save_best_dialog_native_bt">Cancel</string> - <string name="save_best_image_toast">%1$d of 10 images saved.</string> + + <plurals name="save_best_image_toast"> + <item quantity="one">%1$d of 10 images saved.</item> + <item quantity="other">%1$d of 10 images saved.</item> + </plurals> + <string name="dialog_do_not_show">Do not show again</string> <string name="delete_best_dialog_title">Delete all?</string> <string name="delete_best_dialog_content">Are you sure you want to delete all 10 pictures taken?</string> diff --git a/src/com/android/camera/BestpictureActivity.java b/src/com/android/camera/BestpictureActivity.java index 6eaa2a3d0..4edae4177 100644 --- a/src/com/android/camera/BestpictureActivity.java +++ b/src/com/android/camera/BestpictureActivity.java @@ -411,7 +411,8 @@ public class BestpictureActivity extends FragmentActivity { @Override public String getContentString() { - return getResources().getString(R.string.save_best_dialog_content, choosenCount); + return getResources().getQuantityString(R.string.save_best_dialog_content, + choosenCount, choosenCount); } @Override @@ -496,8 +497,8 @@ public class BestpictureActivity extends FragmentActivity { } } } - String toastString = getResources().getString(R.string.save_best_image_toast, - toSaveCount); + String toastString = getResources().getQuantityString(R.string.save_best_image_toast, + toSaveCount, toSaveCount); Toast.makeText(BestpictureActivity.this, toastString, Toast.LENGTH_SHORT).show(); backToViewfinder(); } |