-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
688 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">WeiFang Bus</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">潍坊 バス</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">潍坊公交</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">潍坊公交</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
InfoPlist.strings | ||
Runner | ||
|
||
Created by 韩塞 on 2020/11/3. | ||
Copyright © 2020 The Chromium Authors. All rights reserved. | ||
*/ | ||
"CFBundleDisplayName" = "WeiFang Bus"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
InfoPlist.strings | ||
Runner | ||
|
||
Created by 韩塞 on 2020/11/3. | ||
Copyright © 2020 The Chromium Authors. All rights reserved. | ||
*/ | ||
"CFBundleDisplayName" = "潍坊 バス"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
InfoPlist.strings | ||
Runner | ||
|
||
Created by 韩塞 on 2020/11/3. | ||
Copyright © 2020 The Chromium Authors. All rights reserved. | ||
*/ | ||
"CFBundleDisplayName" = "潍坊公交"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart | ||
// This is a library that looks up messages for specific locales by | ||
// delegating to the appropriate library. | ||
|
||
// Ignore issues from commonly used lints in this file. | ||
// ignore_for_file:implementation_imports, file_names, unnecessary_new | ||
// ignore_for_file:unnecessary_brace_in_string_interps, directives_ordering | ||
// ignore_for_file:argument_type_not_assignable, invalid_assignment | ||
// ignore_for_file:prefer_single_quotes, prefer_generic_function_type_aliases | ||
// ignore_for_file:comment_references | ||
|
||
import 'dart:async'; | ||
|
||
import 'package:intl/intl.dart'; | ||
import 'package:intl/message_lookup_by_library.dart'; | ||
import 'package:intl/src/intl_helpers.dart'; | ||
|
||
import 'messages_en.dart' as messages_en; | ||
import 'messages_ja.dart' as messages_ja; | ||
import 'messages_zh.dart' as messages_zh; | ||
|
||
typedef Future<dynamic> LibraryLoader(); | ||
Map<String, LibraryLoader> _deferredLibraries = { | ||
'en': () => new Future.value(null), | ||
'ja': () => new Future.value(null), | ||
'zh': () => new Future.value(null), | ||
}; | ||
|
||
MessageLookupByLibrary _findExact(String localeName) { | ||
switch (localeName) { | ||
case 'en': | ||
return messages_en.messages; | ||
case 'ja': | ||
return messages_ja.messages; | ||
case 'zh': | ||
return messages_zh.messages; | ||
default: | ||
return null; | ||
} | ||
} | ||
|
||
/// User programs should call this before using [localeName] for messages. | ||
Future<bool> initializeMessages(String localeName) async { | ||
var availableLocale = Intl.verifiedLocale( | ||
localeName, | ||
(locale) => _deferredLibraries[locale] != null, | ||
onFailure: (_) => null); | ||
if (availableLocale == null) { | ||
return new Future.value(false); | ||
} | ||
var lib = _deferredLibraries[availableLocale]; | ||
await (lib == null ? new Future.value(false) : lib()); | ||
initializeInternalMessageLookup(() => new CompositeMessageLookup()); | ||
messageLookup.addLocale(availableLocale, _findGeneratedMessagesFor); | ||
return new Future.value(true); | ||
} | ||
|
||
bool _messagesExistFor(String locale) { | ||
try { | ||
return _findExact(locale) != null; | ||
} catch (e) { | ||
return false; | ||
} | ||
} | ||
|
||
MessageLookupByLibrary _findGeneratedMessagesFor(String locale) { | ||
var actualLocale = Intl.verifiedLocale(locale, _messagesExistFor, | ||
onFailure: (_) => null); | ||
if (actualLocale == null) return null; | ||
return _findExact(actualLocale); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart | ||
// This is a library that provides messages for a en locale. All the | ||
// messages from the main program should be duplicated here with the same | ||
// function name. | ||
|
||
// Ignore issues from commonly used lints in this file. | ||
// ignore_for_file:unnecessary_brace_in_string_interps, unnecessary_new | ||
// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering | ||
// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases | ||
// ignore_for_file:unused_import, file_names | ||
|
||
import 'package:intl/intl.dart'; | ||
import 'package:intl/message_lookup_by_library.dart'; | ||
|
||
final messages = new MessageLookup(); | ||
|
||
typedef String MessageIfAbsent(String messageStr, List<dynamic> args); | ||
|
||
class MessageLookup extends MessageLookupByLibrary { | ||
String get localeName => 'en'; | ||
|
||
final messages = _notInlinedMessages(_notInlinedMessages); | ||
static _notInlinedMessages(_) => <String, Function> { | ||
"AppName" : MessageLookupByLibrary.simpleMessage("WeiFang Bus"), | ||
"Home" : MessageLookupByLibrary.simpleMessage("Home"), | ||
"LanguageSettings" : MessageLookupByLibrary.simpleMessage("Language Settings"), | ||
"More" : MessageLookupByLibrary.simpleMessage("More"), | ||
"Settings" : MessageLookupByLibrary.simpleMessage("Settings") | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart | ||
// This is a library that provides messages for a ja locale. All the | ||
// messages from the main program should be duplicated here with the same | ||
// function name. | ||
|
||
// Ignore issues from commonly used lints in this file. | ||
// ignore_for_file:unnecessary_brace_in_string_interps, unnecessary_new | ||
// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering | ||
// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases | ||
// ignore_for_file:unused_import, file_names | ||
|
||
import 'package:intl/intl.dart'; | ||
import 'package:intl/message_lookup_by_library.dart'; | ||
|
||
final messages = new MessageLookup(); | ||
|
||
typedef String MessageIfAbsent(String messageStr, List<dynamic> args); | ||
|
||
class MessageLookup extends MessageLookupByLibrary { | ||
String get localeName => 'ja'; | ||
|
||
final messages = _notInlinedMessages(_notInlinedMessages); | ||
static _notInlinedMessages(_) => <String, Function> { | ||
"AppName" : MessageLookupByLibrary.simpleMessage("潍坊 バス"), | ||
"Home" : MessageLookupByLibrary.simpleMessage("ホーム"), | ||
"LanguageSettings" : MessageLookupByLibrary.simpleMessage("言語設定"), | ||
"More" : MessageLookupByLibrary.simpleMessage("もっと"), | ||
"Settings" : MessageLookupByLibrary.simpleMessage("セットアップ") | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart | ||
// This is a library that provides messages for a zh locale. All the | ||
// messages from the main program should be duplicated here with the same | ||
// function name. | ||
|
||
// Ignore issues from commonly used lints in this file. | ||
// ignore_for_file:unnecessary_brace_in_string_interps, unnecessary_new | ||
// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering | ||
// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases | ||
// ignore_for_file:unused_import, file_names | ||
|
||
import 'package:intl/intl.dart'; | ||
import 'package:intl/message_lookup_by_library.dart'; | ||
|
||
final messages = new MessageLookup(); | ||
|
||
typedef String MessageIfAbsent(String messageStr, List<dynamic> args); | ||
|
||
class MessageLookup extends MessageLookupByLibrary { | ||
String get localeName => 'zh'; | ||
|
||
final messages = _notInlinedMessages(_notInlinedMessages); | ||
static _notInlinedMessages(_) => <String, Function> { | ||
"AppName" : MessageLookupByLibrary.simpleMessage("潍坊公交"), | ||
"Home" : MessageLookupByLibrary.simpleMessage("首页"), | ||
"LanguageSettings" : MessageLookupByLibrary.simpleMessage("语言设置"), | ||
"More" : MessageLookupByLibrary.simpleMessage("更多"), | ||
"Settings" : MessageLookupByLibrary.simpleMessage("设置") | ||
}; | ||
} |
Oops, something went wrong.