Skip to content

Commit d322a42

Browse files
committed
initial edits
1 parent 0d389e1 commit d322a42

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

support/power-platform/power-apps/create-and-use-apps/ribbon-issues-button-wrong-label.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: A button on the command bar has incorrect labels
33
description: Introduces how to troubleshoot issues with command buttons not showing the correct label text in Microsoft Power Apps.
44
ms.date: 09/10/2024
5-
ms.reviewer: tahoon
5+
ms.reviewer: tahoon, v-shaywood
66
ms.custom: sap:Configuring model-driven app commands\Command is not shown or hidden as expected
77
---
88
# 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
1313

1414
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.
1515

16-
#### Check if correct translations are present in the solution
16+
### Check if correct translations are present in the solution
1717

1818
[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.
1919

2020
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.
2121

2222
:::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":::
2323

24-
#### Check solution layering
24+
### Check solution layering
2525

2626
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.
2727

2828
## Classic commands
2929

3030
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).
3131

32-
#### Check if correct translations are present
32+
### Check if correct translations are present
3333

3434
1. [Enable Command checker and select the command button to inspect](ribbon-issues.md#use-command-checker).
3535
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
5858

5959
:::image type="content" source="media/ribbon-issues-button-wrong-label/translations-in-ribbondiff.png" alt-text="Screenshot shows the Command checker's loclabel pane." lightbox="media/ribbon-issues-button-wrong-label/translations-in-ribbondiff.png" border="false":::
6060

61-
#### Check solution layering
61+
### Check solution layering
6262

6363
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.
6464

65-
#### Check if label IDs match exactly in the letter casing
65+
### Check if label IDs match exactly in the letter casing
6666

6767
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.
6868

69-
#### Regenerate command metadata
69+
### Regenerate command metadata
7070

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).
7276

7377
## Reference
7478

0 commit comments

Comments
 (0)