Localization fixes

This pull request fixes two localization bugs. It adds a missing textdomain parameter and fixes some faulty logic concerning the localization of media gallery titles.
@WTurunen : I think this change is unnecessary unless the only thing is that it's more readable.
Can you please care to explain this change.
I think the previous code is working fine.