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

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

Issue 105073003: Adds a sample for polymer internationalization/localization (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Made a line fit in the prescribed length 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
Index: samples/polymer_intl/web/messages_pt.dart
diff --git a/samples/polymer_intl/web/messages_pt.dart b/samples/polymer_intl/web/messages_pt.dart
new file mode 100644
index 0000000000000000000000000000000000000000..eae1af009314a8660a30cfd3699cf25fca9ad300
--- /dev/null
+++ b/samples/polymer_intl/web/messages_pt.dart
@@ -0,0 +1,23 @@
+/**
+ * DO NOT EDIT. This is code generated via pkg/intl/generate_localized.dart
+ * This is a library that provides messages for a pt locale. All the
+ * messages from the main program should be duplicated here with the same
+ * function name.
+ */
+
+library messages_pt;
+import 'package:intl/intl.dart';
shailentuli 2013/12/06 22:33:38 Unused import.
Alan Knight 2013/12/06 23:52:31 Done.
+import 'package:intl/message_lookup_by_library.dart';
+
+final messages = new MessageLookup();
+
+class MessageLookup extends MessageLookupByLibrary {
+
+ get localeName => 'pt';
+ static helloWorld() => "Olá, mundo do Dart!";
+
shailentuli 2013/12/06 22:33:38 Nit: extra blank line.
Alan Knight 2013/12/06 23:52:31 Done.
+
+ final messages = const {
+ "helloWorld" : helloWorld
+ };
+}

Powered by Google App Engine
This is Rietveld 408576698