Skip to content

Commit

Permalink
mid-5668 polystring tracing deltas
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Mar 29, 2020
1 parent 0571481 commit 4d0e980
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -587,12 +587,15 @@ public String toHumanReadableString() {
// (displaying the aux information in user-visible context). But for e.g. deltas we need this information.
PolyString ps = (PolyString) this.value;
StringBuilder sb = new StringBuilder();
sb.append(ps.getOrig());
sb.append("orig=" + ps.getOrig());
if (ps.getTranslation() != null) {
sb.append(" (has translation key)");
sb.append(", translation="+ps.getTranslation().getKey());
}
if (ps.getLang() != null) {
sb.append(" (").append(ps.getLang().size()).append(" lang map entry/entries)");
sb.append("; lang:");
ps.getLang().keySet().forEach(langKey -> {
sb.append(" " + langKey + "=" + ps.getLang().get(langKey) + ",");
});
}
return sb.toString();
} else {
Expand Down

0 comments on commit 4d0e980

Please sign in to comment.