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

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: 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/messages_fr.dart ('k') | samples/polymer_intl/web/polymer_intl.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/polymer_intl/web/messages_pt.dart
diff --git a/pkg/intl/example/basic/messages_de.dart b/samples/polymer_intl/web/messages_pt.dart
similarity index 52%
copy from pkg/intl/example/basic/messages_de.dart
copy to samples/polymer_intl/web/messages_pt.dart
index d18c98113972cc84dd97e6ed10c3441b512905fa..646ef1e708e656cdaef4ac42ceeef16df60ac79b 100644
--- a/pkg/intl/example/basic/messages_de.dart
+++ b/samples/polymer_intl/web/messages_pt.dart
@@ -1,24 +1,25 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// 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.
/**
- * This is a library that provides messages for a German locale. All the
+ * 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_de;
-import 'package:intl/intl.dart';
+
+library messages_pt;
import 'package:intl/message_lookup_by_library.dart';
final messages = new MessageLookup();
class MessageLookup extends MessageLookupByLibrary {
- get localeName => 'de';
+ get localeName => 'pt';
+ static helloWorld() => "Olá, mundo do Dart!";
- final messages = {
- "runAt" : (time, day) => Intl.message("Ausgedruckt am $time am $day.")
+ final messages = const {
+ "helloWorld" : helloWorld
};
-}
-
+}
« no previous file with comments | « samples/polymer_intl/web/messages_fr.dart ('k') | samples/polymer_intl/web/polymer_intl.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698