Change relation template to get localized table names

Use the content info method to get table name instead os using the
title so it can use translations.