Ribbon built-in texts translations

Ribbon for WPF Forum

Posted 3 months ago by Procam
Version: 21.1.2
Avatar

Hello, there is some way how to access/translate the following texts in the following places?:

  •  Texts in the popup menu that appears when right-clicking somewhere in the ribbons:
    1. Add to Quick Access Toolbar
    2. Customize Quick Access Toolbar
    3. Show Quick Access Toolbar Below the Ribbon
  • Text in the popup menu that appears when right-clicking on the header of some pane window:
    1. Float
    2. Dock
    3. Dock as Document
    4. Auto Hide
    5. Close
  • Or when clicking at the Qat button:
    1. Customize Quick Access toolbar
    2. More Commands
    3. Show below the Ribbon
    4. Minimize the Ribbon

For localization-translations we are not using .NET string resources but binding the Dependency property of  Dependency object <= this is a little bit explained in this post:

https://www.actiprosoftware.com/community/thread/25865/category-name-translation

Regards

Comments (3)

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

Hello,

All of those text UI strings are string resources, which can be customized per this documentation topic.

If you open our Sample Browser app, you can click the View button on the upper right, and select the String Resource Browser menu item to see a utility that lets you browse through all string resources in each assembly.  It also can code generate the programmatic customization lines for you.


Actipro Software Support

Posted 2 months ago by Procam
Avatar

Hello,

I was able to translate the strings even during the application life cycle, except for the string resources at the top right corner (Minimize, Maximize, Restore, Close). These were changed only when I put the code at the beginning of OnStartup in the App class.

Why some can be changed later and some only at startup?

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

Hello,

Some string resources are set in XAML templates, and WPF templates are typically only applied when a control/window first loads.  That is the case with the tooltips for the window title bar buttons (they are set in our template for Window), and is why we recommend restarting an application after changing string resources.  That way you ensure everything is updated properly.


Actipro Software Support

The latest build of this product (v22.1.3) was released 23 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.