AL icon indicating copy to clipboard operation
AL copied to clipboard

Error after translation #1518 is back

Open MarkusWinBI opened this issue 7 years ago • 4 comments

Describe the bug The bug described in "Error after translation #1518" is back

To Reproduce Steps and to reproduce the behavior:

  1. Create an extension, use translate with xlif and use "german umlauts" in translation file -> You get the error... Processing of message 'al/createPackage' failed with error: 'Value cannot be null. Parameter name: value'
  2. Replace the german umlauts in the de.xlif file according to html reference -> Package can be created and published again

Expected behavior Translations can be done even with german. :-)

Versions:

  • Visual Studio Code: 1.32.3
  • AL Language: 0.12.28462

MarkusWinBI avatar May 03 '19 14:05 MarkusWinBI

Edit / correction: the package is built and published, but all (!) translations from the xlif are completely ignored!

MarkusWinBI avatar May 03 '19 14:05 MarkusWinBI

Found the problem: I had an empty caption in a page (without a comment entry). This caused a cascade of errors. After replacing the umlauts with the html tags I could build again, but the xlif was completely ignored.

After building up my xlif file trans-unit by trans-unit I found an entry resulting from an empty caption from a grid layout on a page I created:

group("general") { Caption = 'General', comment='Allgemein'; grid(Gen_Grid) { GridLayout = Rows; // ShowCaption = false; Caption = '';

As the "ShowCaption" is no more supported for grids I was forced to use an empty caption.

Now I replaced this Section with

group("general") { Caption = 'General', comment='Allgemein'; grid(Gen_Grid) { GridLayout = Rows; // ShowCaption = false; Caption = '', comment = '';

and everything was okay again...

MarkusWinBI avatar May 03 '19 15:05 MarkusWinBI

Thank you for sharing. it appears that you find a workaround. I still think that this case should be covered therefor tag the issue as a bug.

/Pooya

PooyaKharamesh avatar May 06 '19 10:05 PooyaKharamesh

This bug is fixed in the newer versions. I suggest you to use the latest version of AL language extension.

/Pooya

PooyaKharamesh avatar May 07 '19 08:05 PooyaKharamesh