jwikman / nab-al-tools

The code repository for NAB AL Tools, an AL tool for VS Code
https://marketplace.visualstudio.com/items?itemName=nabsolutions.nab-al-tools
MIT License
19 stars 8 forks source link

System Actions adds trans-units in g.xlf #458

Closed jwikman closed 4 months ago

jwikman commented 4 months ago

Describe the bug The action type "systemaction" is not yet supported

To Reproduce Steps to reproduce the behavior:

Create a promptdialog page with these acitons:

    actions
    {
        area(SystemActions)
        {
            systemaction(Generate)
            {
                Caption = 'Generate';
                ToolTip = 'Generate function proposals with Dynamics 365 Copilot.';

                trigger OnAction()
                begin
                    RunGeneration();
                end;
            }
            systemaction(OK)
            {
                Caption = 'Confirm';
                ToolTip = 'Proceed with the selected functions.';
            }
            systemaction(Cancel)
            {
                Caption = 'Discard';
                ToolTip = 'Discard the function proposals by Dynamics 365 Copilot.';
            }
            systemaction(Regenerate)
            {
                Caption = 'Regenerate';
                ToolTip = 'Regenerate function proposals with Dynamics 365 Copilot.';
            }
        }
    }

Use any of the functions that updates g.xlf.

A few trans-units are added for the action called SystemActions. They should not be there.