Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
94157c91
Commit
94157c91
authored
Mar 11, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regenerate the i18n files
parent
bbb7f14a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
53 deletions
+48
-53
regenerate.md
examples/stocks/lib/i18n/regenerate.md
+10
-0
stock_messages_all.dart
examples/stocks/lib/i18n/stock_messages_all.dart
+13
-14
stock_messages_en.dart
examples/stocks/lib/i18n/stock_messages_en.dart
+12
-19
stock_messages_es.dart
examples/stocks/lib/i18n/stock_messages_es.dart
+12
-19
analyze.dart
packages/flutter_tools/lib/src/commands/analyze.dart
+1
-1
No files found.
examples/stocks/lib/i18n/regenerate.md
0 → 100644
View file @
94157c91
To rebuild the i18n files:
```
pub run intl:generate_from_arb \
--output-dir=lib/i18n \
--generated-file-prefix=stock_ \
--no-use-deferred-loading \
lib/*.dart \
lib/i18n/*.arb
```
examples/stocks/lib/i18n/stock_messages_all.dart
View file @
94157c91
/*
* 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.
*/
library
messages_all
;
// 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.
import
'dart:async'
;
import
'package:intl/intl.dart'
;
import
'package:intl/message_lookup_by_library.dart'
;
import
'package:intl/src/intl_helpers.dart'
;
import
'package:intl/intl.dart'
;
import
'stock_messages_en.dart'
as
messages_en
;
import
'stock_messages_es.dart'
as
messages_es
;
Map
<
String
,
Function
>
_deferredLibraries
=
{
'en'
:
()
=>
new
Future
.
value
(
null
),
'es'
:
()
=>
new
Future
.
value
(
null
),
'en'
:
()
=>
new
Future
.
value
(
null
),
'es'
:
()
=>
new
Future
.
value
(
null
),
};
MessageLookupByLibrary
_findExact
(
localeName
)
{
switch
(
localeName
)
{
case
'en'
:
return
messages_en
.
messages
;
case
'es'
:
return
messages_es
.
messages
;
default
:
return
null
;
case
'en'
:
return
messages_en
.
messages
;
case
'es'
:
return
messages_es
.
messages
;
default
:
return
null
;
}
}
...
...
examples/stocks/lib/i18n/stock_messages_en.dart
View file @
94157c91
/*
* 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.
*/
library
messages_en
;
// 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.
import
'package:intl/intl.dart'
;
import
'package:intl/message_lookup_by_library.dart'
;
final
messages
=
new
MessageLookup
();
class
MessageLookup
extends
MessageLookupByLibrary
{
final
_keepAnalysisHappy
=
Intl
.
defaultLocale
;
class
MessageLookup
extends
MessageLookupByLibrary
{
get
localeName
=>
'en'
;
static
market
()
=>
"MARKET"
;
static
portfolio
()
=>
"PORTFOLIO"
;
static
title
()
=>
"Stocks"
;
final
messages
=
const
{
"market"
:
market
,
"portfolio"
:
portfolio
,
"title"
:
title
final
messages
=
_notInlinedMessages
(
_notInlinedMessages
);
static
_notInlinedMessages
(
_
)
=>
{
"market"
:
MessageLookupByLibrary
.
simpleMessage
(
"MARKET"
),
"portfolio"
:
MessageLookupByLibrary
.
simpleMessage
(
"PORTFOLIO"
),
"title"
:
MessageLookupByLibrary
.
simpleMessage
(
"Stocks"
)
};
}
examples/stocks/lib/i18n/stock_messages_es.dart
View file @
94157c91
/*
* DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
* This is a library that provides messages for a es locale. All the
* messages from the main program should be duplicated here with the same
* function name.
*/
library
messages_es
;
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
// This is a library that provides messages for a es locale. All the
// messages from the main program should be duplicated here with the same
// function name.
import
'package:intl/intl.dart'
;
import
'package:intl/message_lookup_by_library.dart'
;
final
messages
=
new
MessageLookup
();
class
MessageLookup
extends
MessageLookupByLibrary
{
final
_keepAnalysisHappy
=
Intl
.
defaultLocale
;
class
MessageLookup
extends
MessageLookupByLibrary
{
get
localeName
=>
'es'
;
static
market
()
=>
"MERCADO"
;
static
portfolio
()
=>
"CARTERA"
;
static
title
()
=>
"Acciones"
;
final
messages
=
const
{
"market"
:
market
,
"portfolio"
:
portfolio
,
"title"
:
title
final
messages
=
_notInlinedMessages
(
_notInlinedMessages
);
static
_notInlinedMessages
(
_
)
=>
{
"market"
:
MessageLookupByLibrary
.
simpleMessage
(
"MERCADO"
),
"portfolio"
:
MessageLookupByLibrary
.
simpleMessage
(
"CARTERA"
),
"title"
:
MessageLookupByLibrary
.
simpleMessage
(
"Acciones"
)
};
}
packages/flutter_tools/lib/src/commands/analyze.dart
View file @
94157c91
...
...
@@ -386,7 +386,7 @@ class AnalyzeCommand extends FlutterCommand {
}
else
if
(
filename
.
endsWith
(
'.mojom.dart'
))
{
// autogenerated code - TODO(ianh): Fix the Dart mojom compiler
shouldIgnore
=
true
;
}
else
if
(
(
sourceLines
[
0
]
==
'/*'
)
&&
(
' * DO NOT EDIT. This is code generated'
.
matchAsPrefix
(
sourceLines
[
1
])
!=
null
))
{
}
else
if
(
sourceLines
.
first
.
startsWith
(
'// DO NOT EDIT. This is code generated'
))
{
// autogenerated code - TODO(ianh): Fix the intl package resource generator
shouldIgnore
=
true
;
}
else
if
(
level
==
'lint'
&&
errorMessage
==
'Name non-constant identifiers using lowerCamelCase.'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment