You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/power-platform/power-apps/create-and-use-apps/ribbon-issues-button-wrong-label.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: A button on the command bar has incorrect labels
3
3
description: Introduces how to troubleshoot issues with command buttons not showing the correct label text in Microsoft Power Apps.
4
4
ms.date: 09/10/2024
5
-
ms.reviewer: tahoon
5
+
ms.reviewer: tahoon, v-shaywood
6
6
ms.custom: sap:Configuring model-driven app commands\Command is not shown or hidden as expected
7
7
---
8
8
# A button on the command bar has wrong labels or translations
@@ -13,23 +13,23 @@ This article resolves the wrong label or translation issue with a modern or clas
13
13
14
14
You can customize labels and create translations for [modern commands](/power-apps/maker/model-driven-apps/use-command-designer) the same way as for forms and tables. If a modern command shows incorrect text, its label might not have been configured correctly.
15
15
16
-
####Check if correct translations are present in the solution
16
+
### Check if correct translations are present in the solution
17
17
18
18
[Export translations](/power-apps/maker/model-driven-apps/translate-localizable-text) for the [solution that contains the modern command](/power-apps/maker/model-driven-apps/manage-commands-in-solutions). Open the XML file and verify that the label has the correct translations.
19
19
20
20
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](/power-platform/admin/language-collations#language-and-associated-collation-used-with-dataverse) 1033 and 2052, corresponding to English (United States) and Simplified Chinese (China), respectively.
21
21
22
22
:::image type="content" source="media/ribbon-issues-button-wrong-label/modern-command-label-translations.png" alt-text="Screenshot shows an example of a translation file." lightbox="media/ribbon-issues-button-wrong-label/modern-command-label-translations.png":::
23
23
24
-
####Check solution layering
24
+
### Check solution layering
25
25
26
26
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](/power-apps/maker/data-platform/solution-layers#view-the-solution-layers-for-a-component) to check if there's text defined for the same label in a higher solution.
27
27
28
28
## Classic commands
29
29
30
30
You can [customize labels and create translations for classic commands](/power-apps/developer/model-driven-apps/use-localized-labels-ribbons) by adding them to the `<RibbonDiffXml>` element of a *customization.xml* file and [importing the XML file into a solution](/power-apps/developer/model-driven-apps/export-prepare-edit-import-ribbon).
31
31
32
-
####Check if correct translations are present
32
+
### Check if correct translations are present
33
33
34
34
1.[Enable Command checker and select the command button to inspect](ribbon-issues.md#use-command-checker).
35
35
1. The right pane shows four kinds of text that can be customized for a command button.
@@ -58,17 +58,21 @@ You can [customize labels and create translations for classic commands](/power-a
If the correct LocLabel is present in a solution, there might be other solutions that override it. [View label solution layers](#check-if-correct-translations-are-present) and check if a higher solution has defined the same LocLabel.
64
64
65
-
####Check if label IDs match exactly in the letter casing
65
+
### Check if label IDs match exactly in the letter casing
66
66
67
67
Label IDs are case-sensitive when matching IDs in the ribbon XML to localized label values. The button's **LabelText** should contain a valid LocLabel reference that exactly matches the casing of the ID of a LocLabel record.
68
68
69
-
####Regenerate command metadata
69
+
### Regenerate command metadata
70
70
71
-
Command checker may show this error in the LocalizationErrors section: `Missing object ID for translation lookup`. This error might be caused by missing or incorrect metadata after a solution update. Try [regenerating command metadata](./regenerate-ribbon-metadata.md).
71
+
The command checker might report the following error in the LocalizationErrors section:
72
+
73
+
> Missing object ID for translation lookup
74
+
75
+
Missing or incorrect metadata after a solution update can cause this error. To fix this issue, [regenerate the command metadata](./regenerate-ribbon-metadata.md).
0 commit comments