Fix path subst for referenced libraries.

Need to do both substitutions because referenced libraries can point to
either the preview image (inside the library) or the master image,
depending on whether or not the photo has been edited.
Update language files from Transifex.