ezsystems/ezpublish — pull request #528 by edorfaus (2012-12-18 16:40:02+00:00)
Title: Fix translation for some search messages when using ezfind

I noticed that when using eZ Find with eZ Publish 4.6, some of the messages on the search page are not localized, including the main "Search" header.

This is because the eZ Find extension includes those messages in its translation.ts files, just marked with type="unfinished". As mentioned [here](http://share.ez.no/forums/developer/problem-with-translations-marked-as-unfinished-on-ezp-4.7.0), this used to work just fine, making this a regression in later versions. It was introduced by commit cb0878b3b00aa393f060dce9d4905c4c04f346b4, which makes sure unfinished translations are cached but also made them overwrite the actual translations from the base translation files.

This patch fixes the problem by not replacing existing translations with ones that are marked unfinished, while leaving the behaviour unchanged for all other cases.