The latest build of this product (v25.1.1) was released 4 months ago, which was before this thread was created.
Posted 2 months ago by Procam
Version: 25.1.1
Avatar

Hello,

I am using:

result = ActiproSoftware.Windows.Controls.ThemedMessageBox.Show(message, ApplicationInfo.ProductName, MessageBoxButton.YesNo,
MessageBoxImage.Question, MessageBoxResult.No);

how can I achieve the buttons Yes, No, Cancel, etc, to be localized?

Comments (5)

Posted 2 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Unfortunately, we are not able to automatically localize the common button captions like the Win32 MessageBox does, but all of the default button captions do support localization.  The following topic goes into more detail if you want to localize those values:

https://www.actiprosoftware.com/docs/controls/wpf/shared/windows-controls/user-prompt/localization


Actipro Software Support

Posted 2 months ago by Procam
Avatar

Thanks for thr answer. And where can I find the following strings?

UICustomizeMenuItemShowQatBelowRibbonText
UICustomizeMenuItemShowBelowRibbonText Show
UICustomizeMenuItemShowQatAboveRibbonText
UICustomizeMenuItemShowAboveRibbonText Show
UICustomizeMenuItemMinimizeRibbonText
UICommandMakeFloatingWindowText Floating
UICommandMakeDockedWindowText Docked
UICommandMakeDocumentWindowText
UIToolWindowContainerToggleAutoHideButtonTooltip
UICommandToggleWindowAutoHideStateText
UICommandCloseWindowText Close
UIToolWindowContainerCloseButtonToolTip
UIToolWindowContainerMaximizeButtonToolTip
UIScreenTipToggleMinimizationDownHeader
UIToolWindowContainerMinimizeButtonToolTip
UIScreenTipToggleMinimizationUpHeader
UIToolWindowContainerRestoreButtonToolTip
UIWindowControlRestoreButtonToolTip
UIScreenTipToggleMinimizationDownDescription
UIScreenTipToggleMinimizationUpDescription

and more...

They were in ActiproSoftware.Products.Docking and ActiproSoftware.Products.Ribbon but now it is mnot reconized under ActiproSoftware.Products namespace.

Posted 2 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

They should still be in those namespaces you listed in v25.1.1. 

Note that in v26.1, they will be migrating to ActiproSoftware.Properties.* namespaces, but that change isn't until the next major version.


Actipro Software Support

Posted 25 days ago by Procam
Avatar

Thansk! I found for more of them. But I can not find for Close, Minimize, Maximize, Restore. I tried with all e.g. '...Çlose... found in the resources from the sample app.. I put them also in App.xaml.cs but still I do not see the correct translated string.

Posted 24 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

In the latest build, the "ActiproSoftware.Products.Shared.SRName" enum has entries like:

  • UICloseButtonToolTip
  • UIMaximizeButtonToolTip
  • UIMinimizeButtonToolTip
  • UIMoveButtonToolTip
  • UIRestoreButtonToolTip
  • UISizeButtonToolTip
  • UICommandCloseWindowText
  • UICommandMaximizeWindowText
  • UICommandMinimizeWindowText
  • UICommandMoveWindowText
  • UICommandRestoreWindowText
  • UICommandSizeWindowText

The "ToolTip" resources are used for tooltips by the window caption buttons (minimize, maximize, close, etc.).  The "Text" resources are used as the primary text for buttons or menu options.

So if you're trying to change the tooltip of the close caption button in the titlebar of the themed messagebox, you'd change the "UICloseButtonToolTip" resource.  If you wanted to change the label of a close button shown as one of the response buttons of the themed messagebox, you'd change the "UICommandCloseWindowText".

Some string resources are only loaded once during an application session and cannot be changed after they are applied, so it's important to make sure you customize the string resources before you load any UI elements.  If you aren't seeing the localization being applied, that could be why.

If you are still not seeing your localized strings applied, please let us know exactly which UI element you are trying to localize and we can confirm which string resource should apply there.


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.