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

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

Issue 182443003: Add 'meaning' to Intl.messages (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 | « pkg/intl/lib/extract_messages.dart ('k') | pkg/intl/lib/message_lookup_by_library.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 e6a3c7cec3738a756ccdc36e2b38d20e072b29fc..59357c5eded1a5babe86185651bd23ef19915d71 100644
--- a/pkg/intl/lib/intl.dart
+++ b/pkg/intl/lib/intl.dart
@@ -156,11 +156,11 @@ class Intl {
* We may in the future modify the code during compilation to make manually
* passing those arguments unnecessary.
*/
- static String message(String message_str, {final String desc: '',
- final Map examples: const {}, String locale, String name,
- List<String> args}) {
+ static String message(String message_str, {String desc: '',
+ Map<String, String> examples: const {}, String locale, String name,
+ List<String> args, String meaning}) {
return messageLookup.lookupMessage(
- message_str, desc, examples, locale, name, args);
+ message_str, desc, examples, locale, name, args, meaning);
}
/**
@@ -251,7 +251,8 @@ class Intl {
* the provided alternatives. The [other] named argument is mandatory.
*/
static String plural(int howMany, {zero, one, two, few, many, other,
- desc, examples, locale, name, args}) {
+ String desc, Map<String, String> examples, String locale, String name,
+ List<String> args, String meaning}) {
// If we are passed a name and arguments, then we are operating as a
// top-level message, so look up our translation by calling Intl.message
// with ourselves as an argument.
@@ -261,7 +262,8 @@ class Intl {
zero: zero, one: one, two: two, few: few, many: many, other: other),
name: name,
args: args,
- locale: locale);
+ locale: locale,
+ meaning: meaning);
}
if (other == null) {
throw new ArgumentError("The 'other' named argument must be provided");
@@ -285,8 +287,8 @@ class Intl {
*/
static String gender(String targetGender,
{String male, String female, String other,
- String desc, Map examples, String locale, String name,
- List<String>args}) {
+ String desc, Map<String, String> examples, String locale, String name,
+ List<String>args, String meaning}) {
// If we are passed a name and arguments, then we are operating as a
// top-level message, so look up our translation by calling Intl.message
// with ourselves as an argument.
@@ -295,7 +297,8 @@ class Intl {
gender(targetGender, male: male, female: female, other: other),
name: name,
args: args,
- locale: locale);
+ locale: locale,
+ meaning: meaning);
}
if (other == null) {
@@ -315,8 +318,8 @@ class Intl {
* of an Intl.message message that is to be translated.
*/
static String select(String choice, Map<String, String> cases,
- {String desc, Map examples, String locale, String name,
- List<String>args}) {
+ {String desc, Map<String, String> examples, String locale, String name,
+ List<String>args, String meaning}) {
// If we are passed a name and arguments, then we are operating as a
// top-level message, so look up our translation by calling Intl.message
// with ourselves as an argument.
« no previous file with comments | « pkg/intl/lib/extract_messages.dart ('k') | pkg/intl/lib/message_lookup_by_library.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698