Where ever you're trading is handled go to the method which is called to offer/retrieve items and get the correct String ids for the box text and put:
c.getPA().sendFrame126(o.playerName + " has " + c.getItems().freeSlots() + " free inventory space.", ###);
Obviously that's not the correct message, but you get the idea.