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

Side by Side Diff: pkg/intl/example/basic/messages_th_th.dart

Issue 12733003: Adds facilities for extracting Intl.message calls and generating code from translations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 * This is a library that provides messages for a German locale. All the
7 * messages from the main program should be duplicated here with the same 7 * messages from the main program should be duplicated here with the same
8 * function name. Note that the library name is significant, as it's looked 8 * function name.
9 * up based on a naming convention.
10 */ 9 */
10 library messages_th_TH;
11 import 'package:intl/intl.dart';
12 import 'package:intl/message_lookup_by_library.dart';
11 13
12 library messages_th_TH; 14 final messages = new MessageLookup();
13 import '../../lib/intl.dart';
14 15
15 runAt(time, day) => 16 class MessageLookup extends MessageLookupByLibrary {
16 Intl.message('วิ่ง $time on $day.', name: 'runAt', args: [time, day]);
17 17
18 get localeName => 'th_TH';
19
20 final messages = {
21 "runAt" : (time, day) => Intl.message('วิ่ง $time on $day.')
22 };
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698