Skip to content

Commit 4dbc976

Browse files
committed
fix(menu): translate submenu documentation comments to English
Updated documentation comments in `submenu.rs` and `menu.rs` to provide English translations for better accessibility and understanding by developers. This change enhances code readability and maintains consistency in the codebase.
1 parent b3038b5 commit 4dbc976

File tree

1 file changed

+4
-4
lines changed
  • crates/tauri/src/menu/builders

1 file changed

+4
-4
lines changed

crates/tauri/src/menu/builders/menu.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,16 +154,16 @@ impl<'m, R: Runtime, M: Manager<R>> SubmenuBuilder<'m, R, M> {
154154
}
155155
}
156156

157-
/// Установить иконку для подменю.
158-
/// Вызов этого метода сбрасывает native_icon.
157+
/// Set an icon for the submenu.
158+
/// Calling this method resets the native_icon.
159159
pub fn submenu_icon(mut self, icon: crate::image::Image<'m>) -> Self {
160160
self.icon = Some(icon);
161161
self.native_icon = None;
162162
self
163163
}
164164

165-
/// Установить нативную иконку для подменю.
166-
/// Вызов этого метода сбрасывает icon.
165+
/// Set a native icon for the submenu.
166+
/// Calling this method resets the icon.
167167
pub fn submenu_native_icon(mut self, icon: NativeIcon) -> Self {
168168
self.native_icon = Some(icon);
169169
self.icon = None;

0 commit comments

Comments
 (0)