call the function pgettext with an argument 'String to return when truncating text', '%(truncated_text)s...', substitute the result for truncate.
truncate = pgettext ( 'String to return when truncating text' , '%(truncated_text)s...' )