diff --git a/MyTracks/res/values/strings.xml b/MyTracks/res/values/strings.xml index 3364afd55..17a45eaab 100644 --- a/MyTracks/res/values/strings.xml +++ b/MyTracks/res/values/strings.xml @@ -609,13 +609,13 @@ limitations under the License. + %1$d an integer number. The number is a small number."> %1$d GPX files + %1$d an integer number. The number is a large number."> %1$d GPX files + translation_description="When importing all the tracks, phrase for 'other' GPX files, 'other' + means for cases that the language does not require special treatment of the given quantity. + + %1$d an integer number."> %1$d GPX files + access to the My Tracks data."> Allow access + %1$d an integer number. The number is a small number."> %1$d hours + %1$d an integer number. The number is a large number."> %1$d hours + translation_description="For voice announcement, to say 'other' hours, 'other' means for cases + that the language does not require special treatment of the given quantity. + + %1$d an integer number."> %1$d hours + %1$d an integer number. The number is a small number."> %1$d minutes + %1$d an integer number. The number is a large number."> %1$d minutes + translation_description="For voice announcement, to say 'other' minutes, 'other' means for cases + that the language does not require special treatment of the given quantity. + + %1$d an integer number."> %1$d minutes 0 minutes - - per kilometer + + %1$s per kilometer - - per mile + + %1$s per mile + %1$d an integer number. The number is a small number."> %1$d seconds + %1$d an integer number. The number is a large number."> %1$d seconds + translation_description="For voice announcement, to say 'other' seconds, 'other' means for cases + that the language does not require special treatment of the given quantity. + + %1$d an integer number."> %1$d seconds + %1$.1f a float number. The number is a small number."> %1$.1f kilometers per hour + %1$.1f a float number. The number is a large number."> %1$.1f kilometers per hour + translation_description="For voice announcement, to say 'other' kilometers per hour, 'other' + means for cases that the language does not require special treatment of the given quantity. + + %1$.1f a float number."> %1$.1f kilometers per hour + %1$.1f a float number. The number is a small number."> %1$.1f miles per hour + %1$.1f a float number. The number is a large number."> %1$.1f miles per hour + translation_description="For voice announcement, to say 'other' miles per hour, 'other' means + for cases that the language does not require special treatment of the given quantity. + + %1$.1f a float number."> %1$.1f miles per hour + pace, e.g., '2 hours 1 minute per mile', '30 minutes 1 second per kilometer'."> My Tracks total distance %1$s in %2$s at %3$s. + %1$.2f a float number. The number is a small number."> total distance %1$.2f kilometers + %1$.2f a float number. The number is a large number."> total distance %1$.2f kilometers + translation_description="For voice announcement, to say total distance 'other' kilometers, + 'other' means for cases that the language does not require special treatment of the given + quantity. + + %1$.2f a float number."> total distance %1$.2f kilometers + %1$.2f a float number. The number is a small number."> total distance %1$.2f miles + %1$.2f a float number. The number is a large number."> total distance %1$.2f miles + translation_description="For voice announcement, to say total distance 'other' miles, 'other' + means for cases that the language does not require special treatment of the given quantity. + + %1$.2f a float number."> total distance %1$.2f miles + * As a temporary workaround, we convert a double quantity to an integer + * quantity. If the double quantity is exactly 0, 1, or 2, then we can return + * these integer quantities. Otherwise, we cast the double quantity to an + * integer quantity. However, we need to make sure that if the casted value is + * 0, 1, or 2, we don't return those, instead, return the next biggest integer + * 3. + * * @param d the double value */ private int getQuantityCount(double d) {