Wish: View source function
Bug #912008 reported by
Byrial Jensen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PoProofRead. poproofread has MOVED to github |
Invalid
|
Wishlist
|
TLE |
Bug Description
When I proofread a po-file, I sometimes feel a need to check the context by looking at the source file that the message comes from.
So it would be great if clicking on a source comment, would open an editor with the source file positioned at the line indicated in the comment.
You would of course need supply the command to open the editor, and the place where the sources for the program is located.
Changed in poproofread: | |
status: | Confirmed → Invalid |
To post a comment you must log in.
Hallo Byrial
I think this sounds like an interesting idea.
There are a few challenges to be tackled before something like this can be implemented.
1) How to handle editor support. I would prefer not to have to keep a list with all the editors out there. Probably the best way to do it is to keep a short list and allow the user to supply the command for editors not in the list.
2) How do we handle non up-todate source trees? Essentially the po-file could be for any revision of any branch for a specific module.
a) The simple solution is to say that we don't handle it at all, simply use the file as is (if it exists).
b) The next simplest solution is to check if the misgid is at the line it is claimed to be and otherwise search for at (assuming an updated file)
c) The somewhat more complicated is to update the branch provided we can guess the version control system (obviously that would be something you could deactivate so you don't mess with your own development)
e) The not not simple solution at all is to teach it to both shift branch and update, but I really don't want to implement that.
If think will be put a little while down on the prioritized list.
Regards Kenneth