The replicators from star trek are machines that produce items from raw matter. Much like the matter compilers from Neal Stephenson's diamond age they would probably operate using nanotechnology.
The replicators from stargate seem to be self replicating robots. Not sure what they have to do with nanotechnology. You probably know better than me since I never managed to watch a whole episode.