calculate document translation progress on translation submit