forked from organicmaps/organicmaps-tmp
Fixed sharing bookmarks string usage
This commit is contained in:
parent
ee56ab2e1f
commit
8cfc3d192e
3 changed files with 3 additions and 5 deletions
|
@ -214,9 +214,7 @@ public enum SharingHelper
|
|||
String name = new File(result.getSharingPath()).getName();
|
||||
shareOutside(new LocalFileShareable(context, result.getSharingPath(),
|
||||
"application/vnd.google-earth.kmz")
|
||||
// TODO fix translation for some languages, that doesn't contain holder
|
||||
// for filename
|
||||
.setText(context.getString(R.string.share_bookmarks_email_body, name))
|
||||
.setText(context.getString(R.string.share_bookmarks_email_body))
|
||||
.setSubject(R.string.share_bookmarks_email_subject));
|
||||
break;
|
||||
case BookmarkSharingResult.EMPTY_CATEGORY:
|
||||
|
|
|
@ -450,7 +450,7 @@
|
|||
auto myData = [[NSData alloc] initWithBytes:data.data() length:data.size()];
|
||||
[mailVC addAttachmentData:myData mimeType:mimeType fileName:[NSString stringWithFormat:@"%@%@", catName, fileExtension]];
|
||||
}
|
||||
[mailVC setMessageBody:[NSString stringWithFormat:L(@"share_bookmarks_email_body"), catName] isHTML:NO];
|
||||
[mailVC setMessageBody:L(@"share_bookmarks_email_body") isHTML:NO];
|
||||
[self presentViewController:mailVC animated:YES completion:nil];
|
||||
}
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ final class BMCViewController: MWMViewController {
|
|||
let shareOnSuccess = { [viewModel] (url: URL) in
|
||||
typealias AVC = MWMActivityViewController
|
||||
let fileName = (url.lastPathComponent as NSString).deletingPathExtension
|
||||
let message = String(coreFormat: L("share_bookmarks_email_body"), arguments: [fileName])
|
||||
let message = L("share_bookmarks_email_body")
|
||||
let shareController = AVC.share(for: url, message: message) { [viewModel] _, _, _, _ in
|
||||
viewModel?.finishShareCategory()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue