Fix formats and internationalization of the string "0.6 seconds" in sk language
Root cause: The OTHER quantity does not require special treatment of the given quantity Next: Using few quantity for the language requires special treatment of "small" numbers (as with numbers ending 2, 3, or 4) Bug: 154085511 Test: Change language to Slovensko to check the UI Change-Id: I9143d9504cf8f9c5ccf17160e0dc0943fa10d31d
This commit is contained in:
@@ -204,7 +204,7 @@ public class ToggleAutoclickCustomSeekbarController extends BasePreferenceContro
|
||||
}
|
||||
|
||||
private CharSequence delayTimeToString(int delayMillis) {
|
||||
final int quantity = (delayMillis == 1000) ? Quantity.ONE : Quantity.OTHER;
|
||||
final int quantity = (delayMillis == 1000) ? Quantity.ONE : Quantity.FEW;
|
||||
final float delaySecond = (float) delayMillis / 1000;
|
||||
// Only show integer when delay time is 1.
|
||||
final String decimalFormat = (delaySecond == 1) ? "%.0f" : "%.1f";
|
||||
|
Reference in New Issue
Block a user