tern: fix translation source lookup