You can't insert arbitrary text into a string before you pass it to `gettext`: translators can't provide translations for every possible string under the sun. Instead, you need to translate a string that has a placeholder, and then insert the content into the translated string. For example:

```js
var translated_tpl = gettext("Successfully started task to rescore problem <%= problem %> for all students. Click the 'Show Background Task History for Problem' button to see the status of the task.")
var translated = _.template(translated_tpl, {problem: problem_to_reset})
```

In this example, I'm using [`_.template`](http://underscorejs.org/#template) as my templating language, but you can use whatever you want.