code: protected void addStringsFromRelationships(final BuildData buildData, final List<Relationship> relationships, final String roleName,
              final Map<String, TranslationDetails> translations) {
          final boolean useFixedUrls = buildData.isUseFixedUrls();
  
          for (final Relationship relationship : relationships) {
              final SpecNode relatedNode;
              if (relationship instanceof TopicRelationship) {
                  relatedNode = ((TopicRelationship) relationship).getSecondaryRelationship();
              } else {
                  relatedNode = ((TargetRelationship) relationship).getSecondaryRelationship();
              }
  
              final String xrefString = DocBookUtilities.buildXRef(relatedNode.getUniqueLinkId(useFixedUrls), roleName);
              translations.put(xrefString, new TranslationDetails(xrefString, false, "para"));
          }
      }
docs: Add the translation strings from a list of relationships.
  
  @param buildData     Information and data structures for the build.
  @param relationships The list of relationships to add strings for.
  @param roleName      The role name to be used on the relationship xrefs.
  @param translations  The mapping of original strings to translation strings, that will be used to build the po/pot files.