Dynamic localizations in nicknames world a little differently, if given out via an event. In this case, it scopes to whomever receives the event (the father or mother of the Prince)
Ah, I see it now.
Do you know the circumstances under which this bug appears? I tried it out and had a prince marry someone, and they acquired the correct realm name -- so it only happens sometimes?