translate / virtaal

Easy-to-use and powerful offline translation tool
https://virtaal.translatehouse.org
GNU General Public License v2.0
300 stars 58 forks source link

Add support for Poedit bookmarks as a mode in Virtaal #1574

Open dwaynebailey opened 14 years ago

dwaynebailey commented 14 years ago

Poedit can store up to 10 bookmarks. Using Alt+0... Alt+9 to set and Ctrl+0... Ctrl+9 to jump to that bookmark.

These are stored in the header as follows: "X-Poedit-Bookmarks: 0,2,-1,-1,-1,-1,-1,-1,-1,-1\n"

Basic plan

1) Read the Poedit bookmarks. Should return a list of unit numbers. We want to keep the positions since they mean something in Poedit but we won't care about them. 2) Set bookmarks. I'd prefer Ctrl-B or similar to tag a unit as a bookmark and to allow an unlimited number. For the first 10 we fill in any missing ones for POedit. Beyond 10 we add our own X-Bookmark entry (do we want users?) 3) Mode: Accelerate first 10, show this and use ellipses to limit length.

  1. Save As...
  2. Open the file for ...

    Advanced plan

1) When a user selects Ctrl-B to add a bookmark they can annotate it. Something like "Please check the wording", we already support (review) in PO. It is good to keep this clean of normal translator comments. 2) Make it easier to find and delete (review) comments i.e. have a start and finish.

friedelwolff commented 14 years ago

I'm not particularly keen, to be honest. It doesn't seem very useful (although I can see some use for it). Is this very common in existing PO files? Would users use this?

dwaynebailey commented 14 years ago

(In reply to BZ-IMPORT::comment #1)

I'm not particularly keen, to be honest. It doesn't seem very useful (although I can see some use for it). Is this very common in existing PO files? Would users use this?

I think with comments its very useful, without comments it can be used as markers for things you want to review at a later date. Think of it as releasable fuzzy.

About 550 files with it so no not very common at all.

Users using it probably depends on how intuitive and accessible it is. I don't think the Poedit method is easy as you manually select a marker.