Make lib/** share.php strings extractable for translation

They were not ready for translation as they had no placeholders
and/nor wrapper function to be translated

This should fix: #8011

**NOTE: The commit was https://github.com/owncloud/core/pull/8013 but I re-committed it due to some problems.**