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

Unified Diff: samples/polymer_intl/web/messages_all.dart

Issue 105073003: Adds a sample for polymer internationalization/localization (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes from review Created 7 years 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 | « samples/polymer_intl/web/localized.html ('k') | samples/polymer_intl/web/messages_fr.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/polymer_intl/web/messages_all.dart
diff --git a/pkg/intl/test/message_extraction/foo_messages_all.dart b/samples/polymer_intl/web/messages_all.dart
similarity index 77%
copy from pkg/intl/test/message_extraction/foo_messages_all.dart
copy to samples/polymer_intl/web/messages_all.dart
index 1568a649950c02eb744bfb65c56164eb5f8292e8..281e3f01273f89d7db6a6ea938adce41f2b579d9 100644
--- a/pkg/intl/test/message_extraction/foo_messages_all.dart
+++ b/samples/polymer_intl/web/messages_all.dart
@@ -1,3 +1,7 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
/**
* DO NOT EDIT. This is code generated via pkg/intl/generate_localized.dart
* This is a library that looks up messages for specific locales by
@@ -11,14 +15,14 @@ import 'package:intl/message_lookup_by_library.dart';
import 'package:intl/src/intl_helpers.dart';
import 'package:intl/intl.dart';
-import 'foo_messages_fr.dart' as messages_fr;
-import 'foo_messages_de_DE.dart' as messages_de_DE;
+import 'messages_fr.dart' as messages_fr;
+import 'messages_pt.dart' as messages_pt;
MessageLookupByLibrary _findExact(localeName) {
switch (localeName) {
case 'fr' : return messages_fr.messages;
- case 'de_DE' : return messages_de_DE.messages;
+ case 'pt' : return messages_pt.messages;
default: return null;
}
}
« no previous file with comments | « samples/polymer_intl/web/localized.html ('k') | samples/polymer_intl/web/messages_fr.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698