mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:42:44 +00:00
Merge pull request #9426 from dotCooCoo/fix/canvas-widget-accessible-names
Translate canvas widget accessibility text
This commit is contained in:
@@ -260,7 +260,7 @@ pub(super) struct SelectionWidgets {
|
||||
|
||||
impl SelectionWidgets {
|
||||
fn new(layout: Layout) -> Self {
|
||||
SelectionWidgets { common: Common::new(), layout, presses: vec![] }.label("Selection widgets")
|
||||
SelectionWidgets { common: Common::new(), layout, presses: vec![] }.label(tl!("Selection widgets"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -275,7 +275,7 @@ impl ShapeWidgets {
|
||||
}
|
||||
|
||||
fn new(marks: Vec<Mark>) -> Self {
|
||||
ShapeWidgets { common: Common::new(), marks }.label("Shape widgets")
|
||||
ShapeWidgets { common: Common::new(), marks }.label(tl!("Shape widgets"))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -334,7 +334,7 @@ impl Component for ShapeWidgets {
|
||||
}
|
||||
|
||||
fn access(&self, access: &mut Access, _: &Cx<'_, Self>) {
|
||||
access.description("Shape widgets");
|
||||
access.description(tl!("Shape widgets"));
|
||||
}
|
||||
|
||||
fn finish(self, cx: Cx<'_, Self>) -> Response {
|
||||
|
||||
Reference in New Issue
Block a user