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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * This is a library that provides messages for a German locale. All the 6 * DO NOT EDIT. This is code generated via pkg/intl/generate_localized.dart
7 * This is a library that provides messages for a pt locale. All the
7 * messages from the main program should be duplicated here with the same 8 * messages from the main program should be duplicated here with the same
8 * function name. 9 * function name.
9 */ 10 */
10 library messages_de; 11
11 import 'package:intl/intl.dart'; 12 library messages_pt;
12 import 'package:intl/message_lookup_by_library.dart'; 13 import 'package:intl/message_lookup_by_library.dart';
13 14
14 final messages = new MessageLookup(); 15 final messages = new MessageLookup();
15 16
16 class MessageLookup extends MessageLookupByLibrary { 17 class MessageLookup extends MessageLookupByLibrary {
17 18
18 get localeName => 'de'; 19 get localeName => 'pt';
20 static helloWorld() => "Olá, mundo do Dart!";
19 21
20 final messages = { 22 final messages = const {
21 "runAt" : (time, day) => Intl.message("Ausgedruckt am $time am $day.") 23 "helloWorld" : helloWorld
22 }; 24 };
23 } 25 }
24
OLDNEW
« 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