Oops - for ts(), you don't need the key or the default, just:
    ts("Edit " + (@chapter.posted? ? "" : "New ") + "Chapter")