I think it should be:
```Lua
text = _("Writing screen to ")..screenshot_name,
```
Otherwise gettext will not be able to translate the string.