A button on the command bar has wrong labels or translations

This article resolves the wrong label or translation issue with a modern or classic command button in Microsoft Power Apps.

Modern commands

You can customize labels and create translations for modern commands the same way as for forms and tables. If a modern command shows incorrect text, its label might not have been configured correctly.

Check if correct translations are present in the solution

Export translations for the solution that contains the modern command. Open the XML file and verify that the label has the correct translations.

The following screenshot shows a translation file opened in Microsoft Excel. The last three rows are for a modern command's description, tooltip, and label. The last two columns show the text used for LCIDs 1033 and 2052, corresponding to English (United States) and Simplified Chinese (China), respectively.

Screenshot shows an example of a translation file.

Check solution layering

If the correct text is present in the translation file, there might be other solutions that override it. View the solution layers for the label to check if there's text defined for the same label in a higher solution.

Classic commands

You can customize labels and create translations for classic commands by adding them to the <RibbonDiffXml> element of a customization.xml file and importing the XML file into a solution.

Check if correct translations are present

  1. Enable Command checker and select the command button to inspect.

  2. The right pane shows four kinds of text that can be customized for a command button.

    Screenshot shows the text that can be customized for a command button.

    • Alt: The label used by screen readers.
    • LabelText: The label displayed for the command button.
    • ToolTipTitle: The tooltip heading of the command button.
    • ToolTipDescription: The tooltip body text of the command button.

    For button label issues, the relevant property is LabelText.

  3. At the bottom of the text property, select View label solution layers. This option won't appear if the text hasn't been customized.

    Screenshot shows the View label solution layers option.

    Note

    Some label customizations for system commands don't use <RibbonDiffXml> and hence can't be inspected in Command checker.

  4. Solutions that have customized the text are listed. In this example, only one solution has a customized LabelText.

    Screenshot shows the solution that has customized the text.

  5. Select the solution to see all the LocLabel translations it contains. Verify that the correct text is present.

    Screenshot shows the Command checker's loclabel pane.

Check solution layering

If the correct LocLabel is present in a solution, there might be other solutions that override it. View label solution layers and check if a higher solution has defined the same LocLabel.

Reference

Command checker for model-driven app ribbons