alanknight@google.com
6313f88b76
Verify the default locale in case we're given an invalid one and need to fall back.
...
BUG=
R=efortuna@google.com
Review URL: https://codereview.chromium.org//179783004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33032 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-25 19:26:06 +00:00
kevmoo@google.com
7dcaea0527
pkg/intl: dartfmt
...
R=alanknight@google.com
Review URL: https://codereview.chromium.org//143453011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32223 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-31 23:01:45 +00:00
kevmoo@j832.com
18d38085ab
pkg: analysis aided cleanup
...
Removed a lot of warnings and hints when opening many pkg projects in the editor
R=gram@google.com
Review URL: https://codereview.chromium.org//22284003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25831 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-06 20:42:04 +00:00
floitsch@google.com
466d6670c1
Refactor Future constructors.
...
BUG=
Review URL: https://codereview.chromium.org//14070010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21517 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 21:24:27 +00:00
alanknight@google.com
0446767578
Adds facilities for extracting Intl.message calls and generating code from translations
...
This adds both general libraries for extracting messages and generating translations and scripts for using them with a trivial translation format. It removes the previous mechanism in message_lookup_local that relied on mirrors and traversing libraries in favor of one with a more explicit lookup by library that's consistent with the generated code. It also changes the code in basic_example to use that.
It also includes a couple of other changes. It now uses pathos for path manipulation, and the data_directory.dart hack for running tests from multiple different places was cleaned up and made more general. In addition, Intl.message now returns a string rather than a Future, which was changed as part of the libv2 integration.
This version does not yet support the plural syntax, as it disallows any interpolations that aren't just replacing a variable name. It also doesn't support named arguments to functions containing Intl.message, and it doesn't yet have a mechanism for designating sections of a text as not being subject to translation.
Finally, it relies on analyzer-experimental, which has a different name in the repository and in pub. So this version will run in the repository but will not run if used from pub. Bug 9071 asks for the names to be made consistent.
Review URL: https://codereview.chromium.org//12733003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20047 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 20:49:26 +00:00
floitsch@google.com
fb7b9e3c5c
Rename Date to DateTime.
...
BUG=http://dartbug.com/1424
Review URL: https://codereview.chromium.org//11770004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17549 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 12:16:37 +00:00
lrn@google.com
4868ee2110
Remove Futures class, move methods to Future.
...
Optimize Future.forEach, Future.delay.
Review URL: https://codereview.chromium.org//11865005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16954 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 09:46:45 +00:00
floitsch@google.com
4a7dfd2da3
Big merge from experimental to bleeding edge.
...
Review URL: https://codereview.chromium.org//11783009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00
alanknight@google.com
8352fb6c7e
Update intl to new import syntax
...
Review URL: https://codereview.chromium.org//11366016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14372 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-31 21:32:10 +00:00
ahe@google.com
6254729761
Revert "Parts must start with 'part of'" and "Attempt to fix VM build"
...
This reverts r13961 and r13963.
Review URL: https://codereview.chromium.org//11233061
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13967 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 14:24:04 +00:00
scheglov@google.com
50b5b6e1a8
Parts must start with 'part of'
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13961 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 13:20:50 +00:00
regis@google.com
adb534674c
Change core lib, dart2js, and more for new optional parameters syntax and semantics (new semantics is not enforced yet).
...
Review URL: https://codereview.chromium.org//11090016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13684 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 16:03:47 +00:00
alanknight@google.com
4a0d950454
Make verifiedLocale work differently depending on what it's verifying for
...
Review URL: https://codereview.chromium.org//11086033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13484 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 16:36:13 +00:00
alanknight@google.com
14ce294bb1
Make the date formatting library visible in apidoc by merging it into Intl
...
Review URL: https://codereview.chromium.org//11048027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13199 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-03 22:11:09 +00:00
alanknight@google.com
b9f933b920
Change intl to use new pub layout
...
Review URL: https://codereview.chromium.org//10952004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12519 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 22:18:15 +00:00
alanknight@google.com
282a347822
Add async initialization for Intl.message and an example
...
Review URL: https://chromiumcodereview.appspot.com//10915215
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12345 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 18:20:29 +00:00