Hard to do i18n on: job[%s] executing %r with env %r in cwd %r

Bug #1584017 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Converged
Fix Released
Low
Po-Hsu Lin

Bug Description

This string:
logger.debug(_("job[%s] executing %r with env %r in cwd %r"),
                             job.id, cmd, env, cwd_dir

In py/sudo_with_pass_ctrl.py from the checkbox-touch provider is hard to translate, as the variables here are not indexed. Translators might be unable to retain this format in other languages.

A possible solution is to use format(), or use something like:
logger.debug(_("job[%(ID)s] executing %(CMD)r with env %(ENV)r in cwd %(DIR)r), {"JOB":job.id, "CMD":cmd, "ENV":env, "DIR":cwd_dir}

Related branches

Po-Hsu Lin (cypressyew)
Changed in checkbox-converged:
importance: Undecided → Low
Po-Hsu Lin (cypressyew)
Changed in checkbox-converged:
assignee: nobody → Po-Hsu Lin (cypressyew)
status: New → In Progress
Po-Hsu Lin (cypressyew)
Changed in checkbox-converged:
milestone: none → 1.3
status: In Progress → Fix Committed
Pierre Equoy (pieq)
Changed in checkbox-converged:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.