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
I have a messages.xlf file generated by angular, which has several sources, where there are <x/> nodes inside the source: <source><x id="PH" equiv-text="olderThanParam"/> day</source>.
When using -copyFromSource param to copy this to the messages.en-US.xlf file, the source is copied just fine, but the target is either incomplete or completely missing.
If the x node is in the beginning of the source, it is missing completely, if it's in somewhere in the source (but not at the start), the target gets filled until the x node.
<source><xid="PH"equiv-text="olderThanParam" /> day</source>
<targetstate="needs-translation" />
<source>Should have <xid="PH"equiv-text="olderThanParam" /> days</source>
<targetstate="translated">Should have </target>
I have a
messages.xlf
file generated by angular, which has several sources, where there are<x/>
nodes inside the source:<source><x id="PH" equiv-text="olderThanParam"/> day</source>
.When using
-copyFromSource
param to copy this to themessages.en-US.xlf
file, the source is copied just fine, but the target is either incomplete or completely missing.If the x node is in the beginning of the source, it is missing completely, if it's in somewhere in the source (but not at the start), the target gets filled until the x node.
Command used:
Sync-XliffTranslations -sourcePath "messages.xlf" -targetPath "messages.en-US.xlf" -copyFromSource
The
messages.xlf
generating this problem:The text was updated successfully, but these errors were encountered: