Skip to content

Commit

Permalink
- Fixes share title
Browse files Browse the repository at this point in the history
  • Loading branch information
glushchenko committed Sep 2, 2024
1 parent 2042435 commit d6cc1c0
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 1 deletion.
70 changes: 70 additions & 0 deletions FSNotes iOS/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -9530,6 +9530,76 @@
}
}
},
"Update Web Page" : {
"localizations" : {
"cs" : {
"stringUnit" : {
"state" : "translated",
"value" : "Aktualizovat webovou stránku"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Geteilte aktualisieren"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Mettre à jour la page Web"
}
},
"hi" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "वेब पेज अपडेट करें"
}
},
"it" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Aggiorna la pagina web"
}
},
"ja" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Web ページの更新"
}
},
"nl-NL" : {
"stringUnit" : {
"state" : "translated",
"value" : "Webpagina bijwerken"
}
},
"pt-PT" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Atualizar página da Web"
}
},
"ru" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Обновить веб-страницу"
}
},
"uk" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "Оновити веб-сторінку"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "更新网页"
}
}
}
},
"Use First Line as Title" : {
"localizations" : {
"cs" : {
Expand Down
6 changes: 5 additions & 1 deletion FSNotes iOS/View/NotesTableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,11 @@ class NotesTableView: UITableView,
let shareImage = UIImage(systemName: "square.and.arrow.up")
actions.append(UIAction(title: shareTitle, image: shareImage, identifier: UIAction.Identifier("share"), handler: handler))

let shareWebTitle = NSLocalizedString("Create Web Page", comment: "")
var shareWebTitle = NSLocalizedString("Create Web Page", comment: "")
if note.apiId != nil {
shareWebTitle = NSLocalizedString("Update Web Page", comment: "")
}

let shareWebImage = UIImage(systemName: "newspaper")
actions.append(UIAction(title: shareWebTitle, image: shareWebImage, identifier: UIAction.Identifier("shareWeb"), handler: handler))

Expand Down

0 comments on commit d6cc1c0

Please sign in to comment.