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
Hi, first of all thank you for this very useful tool.
It happens something strange when i try to use it. I have and angular application and i extracted an xlf file named messages.xlf using ng i18n-extract ( it is the file attached to the issue ), i copied and renamed it into messages.it.xlf. Then i run ng i18n-extract again because some translations have been added to the app, so the messages.xlf now contains more entries. Here comes xliff sync tool: when i run
the file messages.it.xlf is correctly merged, but in the console i get a lot of errors like this
Exception calling "ImportNode" with "2" argument(s): "Cannot import a null node."
At C:\Program Files\WindowsPowerShell\Modules\XliffSync\1.0.0.0\Model\XlfDocument.ps1:509 char:21
Hi @simooo985,
A bit of a late reply, but I found out what the issue is.
The module was build specifically for files from the XLIFF Generator that ships with the "AL Compiler for Microsoft Dynamics 365 Business Central apps". The thing is, in these XLIFF files the xml:space="preserve" attribute is added to trans-units and so the NextSibling-method also treats whitespace as siblings. The PowerShell module was built with the assumption of this always being the behaviour of the NextSibling/PreviousSibling method, but that is not the case.
I will make a change to take this attribute into account.
Hi, first of all thank you for this very useful tool.
It happens something strange when i try to use it. I have and angular application and i extracted an xlf file named messages.xlf using ng i18n-extract ( it is the file attached to the issue ), i copied and renamed it into messages.it.xlf. Then i run ng i18n-extract again because some translations have been added to the app, so the messages.xlf now contains more entries. Here comes xliff sync tool: when i run
Sync-XliffTranslations -sourcePath "src\locale\messages.xlf" -targetPath "src\locale\messages.it.xlf"
the file messages.it.xlf is correctly merged, but in the console i get a lot of errors like this
Exception calling "ImportNode" with "2" argument(s): "Cannot import a null node."
At C:\Program Files\WindowsPowerShell\Modules\XliffSync\1.0.0.0\Model\XlfDocument.ps1:509 char:21
why? how can i get rid of these errors?
Thank you very much in advance
messages.zip
The text was updated successfully, but these errors were encountered: