Refactor translation code in GTK torrent and filtertree views