angular-gettext-tools icon indicating copy to clipboard operation
angular-gettext-tools copied to clipboard

Ignoring extraction when key === value

Open intellix opened this issue 9 years ago • 4 comments

Our translators seem to have a thing for translating English to English even if they change nothing (maybe they like 100% completion in their tool of choice?).

After extraction, we have something like:

{
    "en-GB": {
        "Home": "Home",
        "Account": "Account",
        "Support": "Support"
    }
}

We could slap the translators and tell them to remove them all, but think a few would still slip by. I think it'd be great if extraction just did a key===value check and ignored the entry in such a case.

intellix avatar Jul 30 '15 10:07 intellix

I'm not entirely sure what it is that you are proposing.

Extraction doesn't know anything about translated strings.

Care to shed some light on this?

rubenv avatar Jul 30 '15 11:07 rubenv

Apologies for saying extraction. I meant compilation :) when the PO is processed and the JSON is created. Would be good to skip entries where key === value

intellix avatar Jul 31 '15 08:07 intellix

Oh, right!

Makes sense. One minor thing: this would conflict with the (admittedly rather useless) debug mode.

rubenv avatar Jul 31 '15 08:07 rubenv

How come it would conflict? o:

alfaproject avatar Jul 31 '15 12:07 alfaproject