mrkara / gtranslator

A fork of the original 2-91 branch of Gtranslator from http://projects.gnome.org/gtranslator
GNU General Public License v3.0
1 stars 0 forks source link

[bgo#514195] add filters #84

Open mrkara opened 7 years ago

mrkara commented 7 years ago

it would be really useful to have some kind of dropdown in the toolbar with options like: -untranslated -translated -fuzzy -untranslated+fuzzy -custom1 -custom2

which every option filters the strings from the current loaded po to show just the ones selected

the custom ones is the bonus, make a small interface (don't know if it has to be really complex) to add advanced filters to apply and have the ability to store them (in gconf, .gtranslator or whatever location)

don't know if I explained properly, if not just ask :)

Originally reported by Gil Forcada at https://bugzilla.gnome.org/show_bug.cgi?id=514195

mrkara commented 7 years ago

You already can sort the list. why do you want to see only some strings? Maybe to save only that kind of strings?

Originally posted by Ignacio Casal Quinteiro (nacho)

mrkara commented 7 years ago

Well, seeing all the strings "at once" is not really a problem in small files. In large translations, though, it is useful to be able to see only the untranslated strings, for example. Firstly, because it allows you to see all of them at once. Secondly, because yes, you may want to save a certain type of strings i.eg. send the "untranslated strings file" -strings you were not able to translate- to your team list, to see if someone can quickly take a look at the (short) file and translate them (dunno, just thinking aloud). Lastly, because REALLY large files are much slower to load; if we view only a certain type of strings, it will be faster, won't it?

my 3 cents.

Originally posted by Sílvia Miranda

mrkara commented 7 years ago

I like the idea. Probably not to gtranslator 2.0 because we need a strong core before thinking in new features, but I'll take into account for next releases.

Originally posted by Pablo Sanxiao

mrkara commented 7 years ago

This is really easy to implement if i understand well: 1) An option like Save with filter: Where you can choose the type of messages you want to save. 2) Populate the list with only the type of message you want.

Is this correct?

If it is, it is quite easy, but i don't know if i should do this for 2.2 version and fix another bugs more important.

Originally posted by Ignacio Casal Quinteiro (nacho)

mrkara commented 7 years ago

Created attachment 113783 filter-save

This is the plugin to save new files with an specific kind of message. It needs some work that is going to do Pablo because it has some problems with the header stuff.

Originally posted by Ignacio Casal Quinteiro (nacho)

Attachment: https://bugzilla.gnome.org/attachment.cgi?id=113783