I believe that this is (still?) carried out on the ground and simply converts the SSR code issued by ATC to read a callsign on the radar.
Depends, there are quite a few routes in europe where all aircraft on that route squawk the same code (1000) and callsign display for the controller is done via the mode s callsign.