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.