From 509c81313548bc26b72c54304f22622d3351beed Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Mon, 6 Sep 2021 14:00:17 +0200 Subject: [PATCH] Add mainwindow Tooltips in tr files --- linphone-app/assets/languages/en.ts | 15 +++++++++++++++ linphone-app/ui/views/App/Main/MainWindow.qml | 11 +++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/linphone-app/assets/languages/en.ts b/linphone-app/assets/languages/en.ts index 4b82db9ba..e95cbf74a 100644 --- a/linphone-app/assets/languages/en.ts +++ b/linphone-app/assets/languages/en.ts @@ -1274,6 +1274,21 @@ Click here: <a href="%1">%1</a> 'Open Conference' : Tooltip to illustrate a button Open Conference + + hideTimeline + 'Hide Timeline' : Tooltip for a button that hide the timeline + Hide Timeline + + + openTimeline + 'Open Timeline' : Tooltip for a button that open the timeline + Open Timeline + + + openHome + 'Open Home' : Tooltip for a button that open the home view + Open Home + MainWindowMenuBar diff --git a/linphone-app/ui/views/App/Main/MainWindow.qml b/linphone-app/ui/views/App/Main/MainWindow.qml index 9f82a79be..7d816cb4e 100644 --- a/linphone-app/ui/views/App/Main/MainWindow.qml +++ b/linphone-app/ui/views/App/Main/MainWindow.qml @@ -104,14 +104,19 @@ ApplicationWindow { ActionButton { icon: (leftPanel.visible?'panel_shown':'panel_hidden') - tooltipText : (leftPanel.visible?'Open Timeline':'Hide Timeline') + + //: 'Hide Timeline' : Tooltip for a button that hide the timeline + tooltipText : (leftPanel.visible?qsTr('hideTimeline') + //: 'Open Timeline' : Tooltip for a button that open the timeline + :qsTr('openTimeline')) iconSize: MainWindowStyle.panelButtonSize //autoIcon: true onClicked: leftPanel.visible = !leftPanel.visible } ActionButton { icon: 'home' - tooltipText : 'Open Home' + //: 'Open Home' : Tooltip for a button that open the home view + tooltipText : qsTr('openHome') iconSize: MainWindowStyle.homeButtonSize //autoIcon: true onClicked: setView('Home') @@ -123,8 +128,6 @@ ApplicationWindow { Layout.preferredHeight: parent.height Layout.preferredWidth: MainWindowStyle.accountStatus.width Layout.fillWidth: false - //height: parent.height - //width: MainWindowStyle.accountStatus.width TooltipArea { text: AccountSettingsModel.sipAddress