Where is stored the messages results from T-SQL?
The message you're seeing is not generated by SQL Server itself; it just returns "12".

SQL Server Management Studio generates the complete message; it's a .NET application so it's probably coming from a .resx file which gets compiled into the application package. With a decompiler or DLL analyzer you might be able to find it among the other messages.