robert-j-engdahl / ngettext-wpf

Proper internationalization support for WPF (via NGettext)
GNU Lesser General Public License v3.0
10 stars 12 forks source link

Mute the Translation not found for message id error messages #44

Closed D-Bullock closed 5 years ago

D-Bullock commented 5 years ago

Is it possible to mute the messages NGettext: Translation not found for message id? They are useful when checking for coverage - but when you're using the default (english) then it fires for every single translation attempt.

robert-j-engdahl commented 5 years ago

I agree, there should be no spam.

robert-j-engdahl commented 5 years ago

Oh, this is printed by NGettext and not NGettext.Wpf. I'll check if they have some option to suppress this.

robert-j-engdahl commented 5 years ago

It's here (not in our code):

https://github.com/VitaliiTsilnyk/NGettext/blob/a701ac67a9822f71539ac7f81d671d6281790c9d/src/NGettext/Catalog.cs#L286

No options to disable it.

If you create an English .po file and load it into PoEdit, you can do CTRL+B while selecting all, to have them all return their msgids.

I also think the NGettext authors are happy to accept issues and pull requests :)

Anyway, since this issue is in a component build by a different organization, I'm closing this issue. We can continue the conversation in here anyway :)

D-Bullock commented 5 years ago

I didn't even think to check there - I was scratching my head trying to work out where the writeline was coming from. Thanks for the tip with POEdit - I'll use that to get rid of the spam

robert-j-engdahl commented 5 years ago

@VitaliiTsilnyk agrees and will fix this very soon (according to the above linked issue thread)