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#514508] Lock Tags + Validate Tags options #41

Open mrkara opened 7 years ago

mrkara commented 7 years ago

Yes, I'm here again, I'm a pain in the neck. sorry about that :P (working as a translator, I use a number of different CAT tools; so, every time I see something that could be useful for gtranslator, I report it. you can punch me if you want me to shut up, though ^^)

A "Lock Tags" option would be very useful; specially when translating documentation, there are a lot of tags that we don't have to translate; they distract us from the actual content we are translating and, besides, we may accidentally delete part of the tag. Currently, tags have different colors; that's great, but adding a Lock tags option would be even better.

In addition, a Validate tags option could be added. I know we can do a msgfmt in the console, but having an option in gtranslator would be very convenient (i.e. when I started translating, I didn't know about msgfmt!).

Originally reported by Sílvia Miranda at https://bugzilla.gnome.org/show_bug.cgi?id=514508

mrkara commented 7 years ago

I've got a request from Jorge González about a feature like this. He request something like the kbabel option to add tags. About locking the tags would be great but i think it is not possible because there are lots of languages that use the tags in different positions. About errors: I added some time ago a feature that if you have an error in your current message and you try to go to another message a message area error appear with explainning the error you have, (The same errors you get with msgfmt) and you can't change the message until you fix the current message.

Originally posted by Ignacio Casal Quinteiro (nacho)

mrkara commented 7 years ago

With the plugin I added this should be fixed.

Originally posted by Ignacio Casal Quinteiro (nacho)

mrkara commented 7 years ago

Some imprevements that can be made in the plugin:

Originally posted by Ignacio Casal Quinteiro (nacho)

mrkara commented 7 years ago

Created attachment 119610 Proposed amendment for inset-tags

Here's my proposed amendmend to insert-tags. This version adds tags with next/previous. And makes next tag bold so that translator easily see which tags it will insert.

It does not check tags since it's not necessary and mandatory to have all tags.

Originally posted by Baris Cicek

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