ruby-gettext / gettext

Gettext gem is a pure Ruby Localization(L10n) library and tool which is modeled after the GNU gettext package.
https://ruby-gettext.github.io/
69 stars 28 forks source link

use fuzzy vs warn about fuzzy #3

Closed grosser closed 12 years ago

grosser commented 12 years ago

I currently have this pull open on fast_gettext, but I feel gettext would be the better place for it, so that everyone using something gettexty can benefit.

It distinguishes between using fuzzy and warning about fuzzy, so I can get warnings but do not have to use fuzzy. Are you ok with adding this to gettext ?

kou commented 12 years ago

Thanks for the notification!

I confirmed gettext's source code and found that GetText::PoParser already has ignore_fuzzy? and report_warning options! Wow! Are they what you need?

Should I extract GetText::PoParser and create a new gem for it? If I do it, we will be able to maintain the gem together.

grosser commented 12 years ago

Ops, I said that wrong, the desired behavior is to use fuzzy and get fuzzy warnings.

I am not sure if it makes sense to extract the po-parser, e.g. fast_gettext needs po and mo, i18n only needs po, maybe copying the file is the simplest solution :)

kou commented 12 years ago

I understand. I've supported your request!

And thanks for tell me your opinion about extracting the po-parser. I'll not extract it. :-)

grosser commented 12 years ago

Thanks!