Shi-Hao Hong
bec1b734bd
Cleanup in gen_l10n files ( #54401 )
2020-04-10 10:35:33 -07:00
Per Classon
4451ffca23
Add option for deferred loading to gen_l10n ( #53824 )
2020-04-09 03:57:01 -07:00
Shi-Hao Hong
5d63637e43
[gen_l10n] Fallback feature for untranslated messages ( #53374 )
...
* Generate methods using template resources if they do not exist in other locales
* Added a flag to either output of messages that have not been translated with detail into a file, or display a summary on the terminal.
* Add integration test for fallback message usage
2020-04-08 18:55:50 -07:00
Shi-Hao Hong
592f7886e5
Remove escape dollar parameter in localizations_utils ( #54219 )
2020-04-08 12:52:03 -07:00
Per Classon
e8d2907595
[gen_l10n] Handle single, double quotes, and dollar signs in strings ( #54185 )
2020-04-07 12:21:02 -07:00
Alexandre Ardhuin
f5a9902577
enable avoid_equals_and_hash_code_on_mutable_classes ( #52507 )
2020-04-06 13:36:01 -07:00
Shi-Hao Hong
4e811d2819
[gen_l10n] Fix plural parsing for translated messages ( #53954 )
2020-04-03 15:46:01 -07:00
Shi-Hao Hong
365528aad6
Use no
locale as synonym for nb
( #53880 )
2020-04-03 11:56:02 -07:00
Shi-Hao Hong
6837b0e353
[gen_l10n] Add scriptCode handling ( #53868 )
...
* [gen_l10n] Add scriptCode handling
2020-04-03 09:46:01 -07:00
Shi-Hao Hong
19e7db585d
[gen_l10n] Escape special JSON characters in generateString utility function ( #53605 )
2020-04-01 11:16:01 -07:00
gaaclarke
83a74e11d2
Started caching results from iana. ( #53286 )
2020-03-25 18:16:02 -07:00
Darren Austin
142b526f1b
Material Date Picker redesign ( #50546 )
...
Date Picker UI redesign
2020-03-24 18:44:57 -07:00
Shi-Hao Hong
351457cdd0
[gen_l10n] Separate out AppLocalizations classes and subclasses by language code ( #52335 )
2020-03-17 08:46:02 -07:00
Shi-Hao Hong
183da8f837
[gen_l10n] Fix suppportedLocales list ( #52448 )
...
* Fix suppportedLocales list
* Refactor integration tests for gen_l10n tool to catch exceptions
2020-03-12 12:58:13 -07:00
Shi-Hao Hong
96fd143cd7
[gen_l10n] Optional Headers ( #52125 )
...
* Expose --header and --header-file arguments for gen_l10n
2020-03-11 13:55:54 -07:00
Flutter GitHub Bot
9c5009b251
[gen_l10n] Escape quote characters in ARB files ( #51952 )
2020-03-04 20:41:03 -08:00
Shi-Hao Hong
c98500dea3
Update gen_l10n tool to require base locale; Stocks app refresh ( #51602 )
2020-02-28 22:21:01 -08:00
Hans Muller
13e1336e6c
Generate message lookup in gen_l10n ( #50733 )
2020-02-24 20:17:13 -08:00
Alexandre Ardhuin
0bd45bc222
update lint list + enable unnecessary_string_interpolations ( #50593 )
2020-02-14 09:43:52 +01:00
Alexandre Ardhuin
f15c887c63
change quote to avoid escapes ( #50368 )
2020-02-11 20:58:27 +01:00
Alexandre Ardhuin
5c28e3eeea
unnecessary escapes fixes ( #50178 )
...
* unnecessary escapes fixes
* replace some strings with raw strings
* update regexp
* address review comments
2020-02-07 06:35:50 +01:00
Hans Muller
82c00c915c
Move the localization_utils camelCase function to LocaleInfo ( #50152 )
2020-02-05 06:35:49 -08:00
Hans Muller
c3e0f2d462
Add Message.isPlural, Message.getCountPlaceholder() to gen_l10n_types ( #50132 )
2020-02-05 06:35:29 -08:00
Alexandre Ardhuin
b5f328e37e
remove unnecessary string interpolations ( #49622 )
2020-01-31 18:30:21 +01:00
Alexandre Ardhuin
5a8de59a66
refactor generateString to emit simpler dart code ( #49334 )
2020-01-31 11:57:54 +01:00
Hans Muller
3f2c6ea724
Integration test for the gen_l10n tool ( #49586 )
2020-01-29 12:45:03 -08:00
Dan Field
fabeb2a16f
Revert string interp ( #49602 )
2020-01-28 07:56:51 -08:00
Darren Austin
9980d6e550
Script to generate missing localization resources ( #49379 )
...
Added a new script to generate missing localizations for use when adding new localizations to the Flutter framework.
2020-01-27 17:50:59 -08:00
Hans Muller
7539826d7b
Update gen_l10n handling of plurals, numbers, and dates ( #49357 )
2020-01-27 16:18:02 -08:00
Alexandre Ardhuin
92cbaa3efe
remove unnecessary string interpolations ( #49352 )
2020-01-23 20:43:01 -08:00
Alexandre Ardhuin
3800bb7b10
fix missing spaces in adjacent strings ( #49159 )
2020-01-21 16:43:03 -08:00
Hans Muller
667c38d551
gen_l10n: generated Intl.message parameter should be an ordinary string ( #48929 )
2020-01-16 07:20:38 -08:00
Shi-Hao Hong
47bba44920
L10n Currency Formatting, Fixes to Named vs Positional Parameters ( #48445 )
...
* Add currency formatting for l10n tool, fix positional vs named params
2020-01-10 14:19:40 -08:00
Shi-Hao Hong
b038b40941
gen_l10n Number Format Handling ( #47706 )
2020-01-07 22:38:02 -08:00
Alexandre Ardhuin
4f9b6cf017
enable lint prefer_final_in_for_each ( #47724 )
2020-01-07 16:32:04 +01:00
Shi-Hao Hong
173322dc78
Support preferred locales for gen_l10n ( #47845 )
...
* Add preferred-supported-locales option to gen_l10n.dart executable
2019-12-30 11:22:01 -08:00
Shi-Hao Hong
88cd1135bf
Handle plural gen_l10n regular placeholders and DateTime placeholders ( #47483 )
...
* Handle simple placeholders in plurals
* Handle Date plural placeholders
* Improve variable names
* Turn assert into exceptions, add tests
2019-12-20 16:22:44 -08:00
Alexandre Ardhuin
78db965642
Reland implicit-casts: false ( #47431 )
2019-12-19 02:23:01 -08:00
Lau Ching Jun
a4858782da
Revert "implicit-casts: false ( #47199 )" ( #47428 )
...
This reverts commit c235998acf17206c6ce411af235faf439d9ff7b2.
2019-12-18 23:53:00 -08:00
Alexandre Ardhuin
c235998acf
implicit-casts: false ( #47199 )
2019-12-18 23:23:01 -08:00
Shi-Hao Hong
c319f5f8d8
gen_l10n localizations date formatting (simple messages) ( #47006 )
...
* Implement date parsing for the gen_l10n tool
2019-12-17 14:03:43 -08:00
Shi-Hao Hong
7874bca248
Move localization executables to bin folder ( #46251 )
2019-12-16 17:30:57 -08:00
Shi-Hao Hong
e7fec2bc33
Add helpful message about how to use localizationsDelegates list ( #46250 )
2019-12-13 12:00:35 -08:00
Shi-Hao Hong
2eed59c1d5
Add gen_l10n sorting tests ( #46247 )
...
* Add tests for sorting arbPathString, supportedLocales and supportedLanguageCodes alphabetically
* Plural arbPathStrings
* Factor out singleZhMessageArbFileString
* Make translations more accurate and generic
2019-12-13 10:03:56 -08:00
Shi-Hao Hong
37e66b2179
gen_l10n.dart tool testing ( #44856 )
...
* Add tests to gen_l10n.dart tool
* Separate out LocalizationsGenerator class to improve testability of code
* Add testing dependencies to dev/tools
* Integrate dev/tools testing to flutter CI
* Restructure dev/tools folder for testing
* Fix license headers
2019-12-06 11:35:08 -08:00
Alexandre Ardhuin
ec1a015045
implicit-casts:false in dev ( #45787 )
2019-12-05 22:34:06 +01:00
Ian Hickson
449f4a6673
License update ( #45373 )
...
* Update project.pbxproj files to say Flutter rather than Chromium
Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright.
* Update the copyright notice checker to require a standard notice on all files
* Update copyrights on Dart files. (This was a mechanical commit.)
* Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine.
Some were already marked "The Flutter Authors", not clear why. Their
dates have been normalized. Some were missing the blank line after the
license. Some were randomly different in trivial ways for no apparent
reason (e.g. missing the trailing period).
* Clean up the copyrights in non-Dart files. (Manual edits.)
Also, make sure templates don't have copyrights.
* Fix some more ORGANIZATIONNAMEs
2019-11-27 15:04:02 -08:00
Per Classon
b5a85fcf48
Allow plural localized strings to not specify every case ( #45168 )
...
* Allow plural localized strings to not specify every case
2019-11-19 18:58:28 +01:00
Shi-Hao Hong
a872a701c3
Canonicalize locale string in gen_l10n.dart
( #44758 )
...
* Canonicalize locale string for gen_l10n.dart script
* Refresh stocks example to use canonicalized locale
2019-11-13 10:15:24 -08:00
Shi-Hao Hong
0d348138aa
Sort locales and method/properties/getters alphabetically ( #44761 )
...
* Sort locales and method/properties/getters alphabetically
* Refresh stocks example to show proper sorting
2019-11-13 10:14:53 -08:00