KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: XLIFF Resources with the same name
PRODUCT: 4D | VERSION: 11.2 | PLATFORM: Mac & Win
Published On: October 23, 2008

If multiple XLIFF String resources have the same trans-unit element resname attribute value and the ":xliff:resname" syntax is used then the last one to load is used by 4D. 4D loads its own internal XLIFF files first, then loads XLIFF files from the Resources folder in alphabetical order.

For example, if the following two resources were in one file, the second one would be used if the call was to ":xliff:sample" in 4D:

<group id="15001" resname="test group">
  <trans-unit id="1" resname="sample">
    <source>4D is great</source>
    <target>4D is great</target>
  </trans-unit>
</group>

<group id="15002" resname="another test group">
  <trans-unit id="1" resname="sample">
    <source>This resource will be displayed</source>
    <target>This resource will be displayed</target>
  </trans-unit>
</group>