puckipedia/BeLocalized

Hide Translated filter

Perelandra0x309 opened this issue · 1 comments

The Hide Translated filter is incorrectly hiding untranslated text. Error is in TranslationView::_Filter(TranslationUnit *unit), here is the correction:

diff --git a/shared/TranslationView.cpp b/shared/TranslationView.cpp
index d5d394f..651baed 100644
--- a/shared/TranslationView.cpp
+++ b/shared/TranslationView.cpp
@@ -178,7 +178,7 @@ TranslationView::_Filter(TranslationUnit *unit)
        BString translated = unit->Translated();
        BString text = unit->Source();
        BString searchText = mSearchControl->Text();
-       if (mHideTranslated && (translated.Length() > 0 || translated == text))
+       if (mHideTranslated && translated.Length() > 0 && translated != text)
                return false;
 
        if (text.IFindFirst(searchText) < 0 && translated.IFindFirst(searchText) < 0)

Issue can be closed.