Comment 35 for bug 44

Revision history for this message
Christopher Yeleighton (giecrilj) wrote :

The method, if you know the PO file, is:
1. download the file from Launchpad.
2. Locate the offending place in the PO file. Note the line number.
3. Execute the command
(
line=1 &&
while read
do [[ "${REPLY:0:2}" == '#:' ]] && echo "${REPLY} ${line}"
let line="${line}"+1
done
)<"${POFILE}" | sort | less
This will give you the messages with line numbers appended, sorted by source file.
4. Use binary search to find the offending line online.
Hint:
The query parameter 'start' is the binary search pointer; the PO line number is not listed online but the target source position is.
Since the view of step 4 is sorted by that (more or less), you can use binary search to look for that entry in the view.
This will give you the line number, and, accordingly, whether you have shot too far or too near (after you compare it with the original line number).
This process is a little cumbersome but it can be automated client-side only with some effort.