Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: pkg/intl/lib/intl.dart

Issue 167943005: Fix the obscure corner case of three items in a plural (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/intl/test/message_extraction/sample_with_messages.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/intl.dart
diff --git a/pkg/intl/lib/intl.dart b/pkg/intl/lib/intl.dart
index 281d2fdc6f53ef22016bf3895e9743dcd7f68a96..871fdc903aad7903873fa6c6d1d33001f8186c87 100644
--- a/pkg/intl/lib/intl.dart
+++ b/pkg/intl/lib/intl.dart
@@ -269,7 +269,7 @@ class Intl {
case 1 : return (one == null) ? other : one;
case 2: return (two == null) ? ((few == null) ? other : few) : two;
default:
- if (howMany == 3 || howMany == 4 && few != null) return few;
+ if ((howMany == 3 || howMany == 4) && few != null) return few;
if (howMany > 10 && howMany < 100 && many != null) return many;
return other;
}
« no previous file with comments | « no previous file | pkg/intl/test/message_extraction/sample_with_messages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698