diff --git a/src/Calculator/Controls/EquationTextBox.cpp b/src/Calculator/Controls/EquationTextBox.cpp index a5d6d69..759ce71 100644 --- a/src/Calculator/Controls/EquationTextBox.cpp +++ b/src/Calculator/Controls/EquationTextBox.cpp @@ -62,8 +62,11 @@ void EquationTextBox::OnApplyTemplate() m_equationButton->Click += ref new RoutedEventHandler(this, &EquationTextBox::OnEquationButtonClicked); auto toolTip = ref new ToolTip(); - auto equationButtonMessage = m_equationButton->IsChecked->Value ? resProvider->GetResourceString(L"showEquationButtonToolTip") - : resProvider->GetResourceString(L"hideEquationButtonToolTip"); + + auto equationButtonMessage = LocalizationStringUtil::GetLocalizedString( + m_equationButton->IsChecked->Value ? resProvider->GetResourceString(L"showEquationButtonToolTip") + : resProvider->GetResourceString(L"hideEquationButtonToolTip")); + toolTip->Content = equationButtonMessage; ToolTipService::SetToolTip(m_equationButton, toolTip); AutomationProperties::SetName(m_equationButton, equationButtonMessage); @@ -202,8 +205,11 @@ void EquationTextBox::OnEquationButtonClicked(Object ^ sender, RoutedEventArgs ^ auto toolTip = ref new ToolTip(); auto resProvider = AppResourceProvider::GetInstance(); - auto equationButtonMessage = m_equationButton->IsChecked->Value ? resProvider->GetResourceString(L"showEquationButtonToolTip") - : resProvider->GetResourceString(L"hideEquationButtonToolTip"); + + auto equationButtonMessage = LocalizationStringUtil::GetLocalizedString( + m_equationButton->IsChecked->Value ? resProvider->GetResourceString(L"showEquationButtonToolTip") + : resProvider->GetResourceString(L"hideEquationButtonToolTip")); + toolTip->Content = equationButtonMessage; ToolTipService::SetToolTip(m_equationButton, toolTip); AutomationProperties::SetName(m_equationButton, equationButtonMessage); diff --git a/src/Calculator/Resources/en-US/Resources.resw b/src/Calculator/Resources/en-US/Resources.resw index 4e9d2df..e6a3580 100644 --- a/src/Calculator/Resources/en-US/Resources.resw +++ b/src/Calculator/Resources/en-US/Resources.resw @@ -3876,7 +3876,7 @@ {Locked}This is the shortcut for the zoom reset button. - Reset View + Reset View (Ctrl + 0) This is the tool tip automation name for the Calculator zoom reset button. @@ -3884,7 +3884,7 @@ Screen reader prompt for the reset zoom button. - Zoom In + Zoom In (Ctrl + plus) This is the tool tip automation name for the Calculator zoom in button. @@ -3892,7 +3892,7 @@ Screen reader prompt for the zoom in button. - Zoom Out + Zoom Out (Ctrl + minus) This is the tool tip automation name for the Calculator zoom out button. @@ -4159,12 +4159,12 @@ This is the text for the for the equation style context menu command - Show - This is the tooltip/automation name shown when visibility is set to hidden in the graphing calculator + Show equation %1 + {Locked="%1"}, This is the tooltip/automation name shown when visibility is set to hidden in the graphing calculator. %1 is the equation number. - Hide - This is the tooltip/automation name shown when visibility is set to visible in the graphing calculator + Hide equation %1 + {Locked="%1"}, This is the tooltip/automation name shown when visibility is set to visible in the graphing calculator. %1 is the equation number. Stop tracing @@ -4258,4 +4258,4 @@ Enter an equation this is the placeholder text used by the textbox to enter an equation - \ No newline at end of file +