godofredoc
1c8b378ffb
Update localization files. ( #145780 )
...
Update the localization files to be used in the upcoming stable release.
2024-03-27 02:33:05 +00:00
LouiseHsu
9f5fd75e54
[framework] fix incorrect chinese localizations for Search Web and Share in selection controls ( #144857 )
...
Fixes https://github.com/flutter/flutter/issues/144825
Corresponding translation suggestions:
https://tc.corp.google.com/btviewer/edittranslation?project=Flutter&msgId=7417055026368500447&language=zh-TW
(I accidentally pressed submit 3 times :( )
https://tc.corp.google.com/btviewer/edittranslation?project=Flutter&msgId=7417055026368500447&language=zh-HK
https://tc.corp.google.com/btviewer/edittranslation?project=Flutter&msgId=7417055026368500447&language=zh-CN
https://tc.corp.google.com/btviewer/edittranslation?project=Flutter&msgId=8883913494819754382&language=zh-CN
## Pre-launch Checklist
- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [relevant style guides] and ran the
auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages
repo does use `dart format`.)
- [x] I signed the [CLA].
- [x] The title of the PR starts with the name of the package surrounded
by square brackets, e.g. `[shared_preferences]`
- [x] I [linked to at least one issue that this PR fixes] in the
description above.
- [x] I updated `pubspec.yaml` with an appropriate new version according
to the [pub versioning philosophy], or this PR is [exempt from version
changes].
- [x] I updated `CHANGELOG.md` to add a description of the change,
[following repository CHANGELOG style].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] All existing and new tests are passing.
2024-03-14 10:14:20 -07:00
Taha Tesser
5d2353c105
CalendarDatePicker
doesn't announce selected date on desktop (#143583 )
...
fixes [Screen reader is not announcing the selected date as selected on DatePicker](https://github.com/flutter/flutter/issues/143439 )
### Descriptions
- This fixes an issue where `CalendarDatePicker` doesn't announce selected date on desktop.
- Add semantic label to describe the selected date is indeed "Selected".
### Code sample
<details>
<summary>expand to view the code sample</summary>
```dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
MyHomePageState createState() => MyHomePageState();
}
class MyHomePageState extends State<MyHomePage> {
void _showDatePicker() async {
await showDatePicker(
context: context,
initialDate: DateTime.now(),
firstDate: DateTime(1900),
lastDate: DateTime(2200),
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title,
style: const TextStyle(fontFamily: 'ProductSans')),
),
body: const Center(
child: Text('Click the button to show date picker.'),
),
floatingActionButton: FloatingActionButton(
onPressed: _showDatePicker,
tooltip: 'Show date picker',
child: const Icon(Icons.edit_calendar),
),
);
}
}
// import 'package:flutter/material.dart';
// void main() => runApp(const MyApp());
// class MyApp extends StatelessWidget {
// const MyApp({super.key});
// @override
// Widget build(BuildContext context) {
// return MaterialApp(
// debugShowCheckedModeBanner: false,
// home: Scaffold(
// body: Center(
// child: CalendarDatePicker(
// initialDate: DateTime.now(),
// firstDate: DateTime(2020),
// lastDate: DateTime(2050),
// onDateChanged: (date) {
// print(date);
// },
// ),
// ),
// ),
// );
// }
// }
```
</details>
### Before
https://github.com/flutter/flutter/assets/48603081/c82e1f15-f067-4865-8a5a-1f3c0c8d91da
### After
https://github.com/flutter/flutter/assets/48603081/193d9e26-df9e-4d89-97ce-265c3d564607
2024-02-21 08:59:24 +00:00
LouiseHsu
caba667ed4
Fix incorrect zh-cn translation for Look Up Label in selection controls ( #142158 )
...
Fixes https://github.com/flutter/flutter/issues/141764
Translation suggestion here:
https://tc.corp.google.com/btviewer/edittranslation?project=Flutter&msgId=8222331119728136330&language=zh-CN
## Pre-launch Checklist
- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] All existing and new tests are passing.
2024-01-25 10:24:42 -08:00
Qun Cheng
e86c1c88e2
Add tooltip for the clear button on SearchAnchor
's search view ( #141804 )
...
Fixes #141347
This PR is to add a "clear text" tooltip for the clear button on `SearchAnchor`'s search view and also add a `clearButtonTooltip` entry for `material_localizations`.
2024-01-23 17:47:06 +00:00
Mitchell Goodwin
f0051d8b12
Cupertino text clear label ( #129727 )
...
Fixes #123107
Adds a customizable semantic label so that the clear button on the Cupertino text field will be picked up by screen readers.
https://github.com/flutter/flutter/assets/58190796/de31d9dd-923c-402f-a55b-e5cc77ea68bb
2023-12-15 04:55:55 +00:00
Bruno Leroux
b6fa041808
[l10n] Update Material shareButtonLabel ( #138899 )
...
## Description
This PR updates the Material label for the share option, currently it is "**Share...**" (the expected label on iOS), on Android it should be "**Share**".
Native Android TextField screenshot:
![Capture dâécran du 2023-11-20 17-19-02](https://github.com/flutter/flutter/assets/840911/6004b900-0ba4-441e-a814-4afd0c0e2fe2 )
## Related Issue
Step 2 for https://github.com/flutter/flutter/issues/138728
## Tests
Adds 1 test.
2023-12-01 23:32:57 +00:00
Hans Muller
6eea6e277e
Removed TBD translations for optional remainingTextFieldCharacterCounZero message ( #136684 )
...
Fixes https://github.com/flutter/flutter/issues/136090
2023-10-17 10:34:49 -07:00
godofredoc
938bb217fb
Update localizations. ( #135691 )
...
Updates the localization files.
2023-09-29 04:11:31 +00:00
Ian Hickson
5fa8de05ee
l10n-related documentation improvements ( #133114 )
2023-08-24 21:54:56 +00:00
Andrey Suvorov
1cfba2620a
fixes l10n for CupertinoDatePicker in monthYear mode ( #130934 )
...
This PR fixes l10n issue when months names are being used in incorrect form in CupertinoDatePicker in CupertinoDatePickerMode.yearMonth (#130930 ).
The idea of this proposal is to add an optional parameter `standalone` for `CupertinoLocalizations.datePickerMonth` to be able to choose when to use months names in base form (intl DateSymbols.STANDALONEMONTHS) and when in day-dependent form (intl DateSymbols.MONTHS)
<details>
<summary>Before</summary>
<img width="366" alt="image" src="https://github.com/flutter/flutter/assets/32621121/1dd54fa7-6dd9-4053-889b-57134c145432 ">
<img width="387" alt="image" src="https://github.com/flutter/flutter/assets/32621121/c176070e-73e4-49d3-883b-ba31eca6d1d7 ">
</details>
<details>
<summary>After</summary>
<img width="369" alt="image" src="https://github.com/flutter/flutter/assets/32621121/255594f1-219d-4bd4-9b75-1012912f8ab0 ">
<img width="378" alt="image" src="https://github.com/flutter/flutter/assets/32621121/16bbb41f-3f62-4446-bf41-e27140b649a9 ">
</details>
2023-08-18 16:38:54 +00:00
LouiseHsu
3f34b480c8
[Framework] Add Share to selection controls ( #132599 )
...
In native iOS, users are able to select text and initiate a share menu, which provides several standard services, such as copy, sharing to social media, direct ability to send to various contacts through messaging apps, etc.
https://github.com/flutter/engine/assets/36148254/d0af7034-31fd-412e-8636-a06bbff54765
This PR is the framework portion of the changes that will allow Share to be implemented.
The corresponding merged engine PR is [here](https://github.com/flutter/engine/pull/44554 )
This PR addresses https://github.com/flutter/flutter/issues/107578
More details are available in this [design doc](https://github.com/flutter/engine/pull/flutter.dev/go/add-missing-features-to-selection-controls )
2023-08-17 23:36:11 +00:00
Michael Goderbauer
14f9ed28d0
Analyze doc code snippets for all packages for which we publish docs ( #132607 )
...
Fixes TODO in the analyzer script :)
2023-08-16 22:24:48 +00:00
Tae Hyung Kim
fa88170a4f
Update material and cupertino localizations ( #131212 )
...
See title.
Fixes https://github.com/flutter/flutter/issues/130874 .
---------
Co-authored-by: Xilai Zhang <xilaizhang@google.com>
2023-08-09 10:05:27 -07:00
LouiseHsu
d9cb50e63d
[framework] Add Search Web to selection controls for iOS ( #131898 )
...
This PR adds framework support for the Search Web feature in iOS.
https://github.com/flutter/flutter/assets/36148254/c159f0d9-8f14-45e7-b295-e065b0826fab
The corresponding merged engine PR can be found [here](https://github.com/flutter/engine/pull/43324 ).
This PR addresses https://github.com/flutter/flutter/issues/82907
More details are available in this [design doc](https://docs.google.com/document/d/1QizXwBiO-2REIcEovl5pK06BaLPOWYmNwOE5jactJZA/edit?resourcekey=0-1pb9mJiAq29Gesmt25GAug )
2023-08-08 17:34:17 +00:00
LouiseHsu
f019789565
[framework] Add Look Up to selection controls for iOS ( #131798 )
...
This PR adds framework support for the Look Up feature in iOS.
https://github.com/flutter/flutter/assets/36148254/d301df79-4e23-454f-8742-2f8e39c2960c
The corresponding merged engine PR can be found [here](https://github.com/flutter/engine/pull/43308 ).
This PR addresses https://github.com/flutter/flutter/issues/82907
More details are available in this [design doc.](flutter.dev/go/add-missing-features-to-selection-controls)
This is the same PR as https://github.com/flutter/flutter/pull/130532 , this is an attempt to fix the Google Testing issue
2023-08-02 20:20:39 +00:00
Greg Spencer
258382c594
Add menu dismiss localization ( #128613 )
...
## Description
Modifies the semantic label for popup and context menus to be "Dismiss menu" instead of just "Dismiss".
## Related Issues
- Fixes https://github.com/flutter/flutter/issues/118994
## Tests
- Updated tests
2023-07-19 22:48:40 +00:00
Bruno Leroux
ef312048e5
Fix finish translation for tab labels ( #130333 )
...
## Description
This PR update the finnish translations for tab label.
## Related Issue
fixes https://github.com/flutter/flutter/issues/110451
## Tests
Adds 2 tests.
2023-07-14 15:04:40 +00:00
Tae Hyung Kim
bd18e78c9c
Fix timeOfDayFormat
for Danish ( #130437 )
...
See title. According to
[CLDR](https://icu4c-demos.unicode.org/icu-bin/locexp?_=da_DK&d_=en&_l=da ),
proper time of day format should be `HH.mm`.
Fixes https://github.com/flutter/flutter/issues/130234 .
2023-07-13 16:46:49 -07:00
luckysmg
e0ad12969f
[framework] Add textField OCR support for framework side ( #96637 )
...
iOS OCR keyboard input support.
2023-07-06 08:51:06 -07:00
Tomasz Gucio
2520838afb
Fixes in Cupertino translations ( #127872 )
2023-06-01 11:17:36 +02:00
chunhtai
5764404f5c
fix localization typo for expansionTileExpandedHint ( #125212 )
...
as title
2023-04-20 18:23:06 +00:00
Justin McCandless
8abeefef91
Localize the 'No Replacements Found' spell check string ( #124259 )
...
Localize the 'No Replacements Found' spell check string
2023-04-12 22:15:05 +00:00
Nabeel Parkar
6d01ae1377
Bug report 2 issue template ( #122385 )
...
Bug report 2 issue template
2023-04-12 11:06:16 +00:00
Tae Hyung Kim
c0c5901c0b
Fix gen_date_localizations script and regenerate ( #124547 )
...
Internal bug: b/256596915
Turns out we need to regenerate date localizations in order for the
`intl` package to be setup properly within Flutter. This PR fixes the
script (since it assumes the use of the old `.packages` way of handling
packages), and regenerates the `generated_date_localizations.dart` file.
2023-04-11 16:54:54 -07:00
chunhtai
f662f2efe8
ExpansionTile audit ( #124281 )
...
ExpansionTile audit
2023-04-10 20:22:54 +00:00
Xilai Zhang
e749db6f91
Revert "Refactor reorderable list semantics" ( #124368 )
...
Revert "Refactor reorderable list semantics"
2023-04-07 01:46:06 +00:00
chunhtai
94327e7aa8
Refactor reorderable list semantics ( #123263 )
...
Refactor reorderable list semantics
2023-04-06 22:01:03 +00:00
chunhtai
9e4b5fb7d9
Adds i18n to widget layer ( #123620 )
...
Adds i18n to widget layer
2023-04-04 22:57:35 +00:00
godofredoc
89caeebd10
Update localizations. ( #124099 )
2023-04-04 09:00:17 -07:00
Tae Hyung Kim
fb6e83a6fd
Add Welsh to Material Flutter (and update some other translations) ( #124094 )
...
Reverts flutter/flutter#124088
This PR should properly incorporate the new Welsh translations into
Flutter (and maybe some other strings that seem to be updated in TC).
I think the other translation changes come from this issue:
https://github.com/flutter/flutter/issues/115181 .
Fixes https://github.com/flutter/flutter/issues/120124 .
2023-04-03 21:36:04 -07:00
Zachary Anderson
10587456a5
Revert "Add Welsh to Material Flutter (and update some other translations)" ( #124088 )
...
Revert "Add Welsh to Material Flutter (and update some other translations)"
2023-04-04 01:59:40 +00:00
Tae Hyung Kim
b3146897f2
Add Welsh to Material Flutter (and update some other translations) ( #123575 )
...
This PR should properly incorporate the new Welsh translations into
Flutter (and maybe some other strings that seem to be updated in TC).
I think the other translation changes come from this issue:
https://github.com/flutter/flutter/issues/115181 .
Fixes #120124 .
2023-04-03 17:55:37 -07:00
Xilai Zhang
153fce4d45
Revert "Fix ExpansionTile
hint for Android ( #120881 )" ( #121624 )
...
This reverts commit fd65fd1b16
.
2023-02-28 13:15:47 -08:00
Skandar Munir
681b72c304
fixes Show Week Day in CupertinoDatePicker with CupertinoDatePickerMo… ( #120052 )
...
fixes Show Week Day in CupertinoDatePicker with CupertinoDatePickerMoâ¦
2023-02-28 01:52:51 +00:00
Taha Tesser
fd65fd1b16
Fix ExpansionTile
hint for Android ( #120881 )
...
Fix `ExpansionTile` double tap to collapse/expanded and expanded/collapsed states semantics announcements
2023-02-27 18:40:17 +00:00
Michael Goderbauer
a63e19ba0f
Remove unnecessary null checks in flutter_localizations ( #118863 )
2023-01-23 19:26:07 +00:00
Tae Hyung Kim
b13f83a2ba
Fix Finnish TimeOfDate format ( #118204 )
...
* init
* add test
2023-01-10 17:41:54 -08:00
harperl-lgtm
7f7a8778d8
Implemented Scrim Focus for BottomSheet ( #116743 )
...
* Implemented Scrim Focus for BottomSheet so that assistive technology users can focus and tap on the scrim to close the BottomSheet, which they could not do before the change . The Scrim Focus's size changes to avoid overlapping the BottomSheet.
2022-12-20 10:02:22 -05:00
Greg Spencer
ecf9b2d20a
Update localization of shortcut labels in menus ( #116681 )
...
* Fix Menu shortcut labels
* Remove invalid localizations
* Add more localization for Shift
* Add generated localizations
* Fix Test
2022-12-16 19:57:17 +00:00
harperl-lgtm
a570fd25d8
Date picker special labeling for currentDate with localization and te… ( #116433 )
...
* Date picker special labeling for currentDate with localization and tests.
* Updated CalendarDatePicker semantics test
* removed recursive import
* changed labeling for current date to be less verbose
2022-12-07 09:21:44 -05:00
Tae Hyung Kim
700de09fd5
Change button and label text to sentence case for Material 3 ( #115187 )
...
* init
* upper case only when material 2
* fix test
* fix test
* fix tests again
* Add all tests
* analyze"
* fix stepper
2022-11-15 20:57:09 +00:00
Tae Hyung Kim
e3b851a634
Fix Tamil DateTime representation of AM/PM ( #108185 )
...
* init
* testS
* init
* accidentally committed wrong file
2022-07-25 11:33:06 -07:00
godofredoc
fb5ad6e8a7
Update localizations for flutter. ( #106759 )
2022-06-29 18:24:05 +00:00
Nils Reichardt
64db621980
Remove new
keyword in a few files ( #104438 )
2022-06-06 16:08:06 -07:00
Pierre-Louis
74cfc3db67
Use curly_braces_in_flow_control_structures
for non-flutter
packages ( #104629 )
...
* Use `curly_braces_in_flow_control_structures` for `packages/flutter_driver`
* Use `curly_braces_in_flow_control_structures` for `packages/flutter_goldens`
* Use `curly_braces_in_flow_control_structures` for `packages/flutter_goldens_client`
* Use `curly_braces_in_flow_control_structures` for `packages/flutter_localizations`
* Use `curly_braces_in_flow_control_structures` for `packages/flutter_test`
* Use `curly_braces_in_flow_control_structures` for `packages/flutter_web_plugins`
* fix comments
* Use `curly_braces_in_flow_control_structures` for `packages/integration_test`
* fix indentation
2022-05-25 20:01:11 +02:00
Pierre-Louis
9a35b569b9
Use correct time separator for Indonesian locale ( #104070 )
...
* Update material_id.arb
* Update README.md
* Update generated_material_localizations.dart
* Update README.md
* remove trailing whitespace
2022-05-19 11:24:19 +02:00
Greg Spencer
6504f2896c
Adds menuBarMenuLabel
, and removes unneeded key localizations ( #102100 )
...
When I added localizations for shortcut keys, I added some that actually can't be shortcut keys, so I'm removing them again. These are mostly Japanese-specific keys that don't even appear on modern keyboards for the most part.
Also, added menuBarMenuLabel for an accessibility label for menu bar menus.
I modified the code for the localization generation scripts to add a --remove-undefined flag that will remove any localizations that don't appear in the canonical locale.
2022-05-09 09:25:52 -07:00
Jonah Williams
29d814b700
[intl] speed up localization generation and regenerate symbols ( #102614 )
2022-04-27 11:14:05 -07:00
Kate Lovett
ff5e27f0fc
Remove deprecated FlatButton ( #98545 )
2022-04-11 16:22:47 -05:00